public class YouTube.Comments.SetModerationStatus extends YouTubeRequest<Void>
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
USER_AGENT_SUFFIX
Modifier | Constructor and Description |
---|---|
protected |
SetModerationStatus(List<String> id,
String moderationStatus)
Sets the moderation status of one or more comments.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
getBanAuthor()
If set to true the author of the comment gets added to the ban list.
|
List<String> |
getId()
Modifies the moderation status of the comments with the given IDs
|
String |
getModerationStatus()
Specifies the requested moderation status.
|
boolean |
isBanAuthor()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
YouTube.Comments.SetModerationStatus |
set(String parameterName,
Object value) |
YouTube.Comments.SetModerationStatus |
set$Xgafv(String $Xgafv)
V1 error format.
|
YouTube.Comments.SetModerationStatus |
setAccessToken(String accessToken)
OAuth access token.
|
YouTube.Comments.SetModerationStatus |
setAlt(String alt)
Data format for response.
|
YouTube.Comments.SetModerationStatus |
setBanAuthor(Boolean banAuthor)
If set to true the author of the comment gets added to the ban list.
|
YouTube.Comments.SetModerationStatus |
setCallback(String callback)
JSONP
|
YouTube.Comments.SetModerationStatus |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
YouTube.Comments.SetModerationStatus |
setId(List<String> id)
Modifies the moderation status of the comments with the given IDs
|
YouTube.Comments.SetModerationStatus |
setKey(String key)
API key.
|
YouTube.Comments.SetModerationStatus |
setModerationStatus(String moderationStatus)
Specifies the requested moderation status.
|
YouTube.Comments.SetModerationStatus |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
YouTube.Comments.SetModerationStatus |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
YouTube.Comments.SetModerationStatus |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
YouTube.Comments.SetModerationStatus |
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
|
YouTube.Comments.SetModerationStatus |
setUploadType(String uploadType)
Legacy upload protocol for media (e.g.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStream
clone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toString
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
protected SetModerationStatus(List<String> id, String moderationStatus)
AbstractGoogleClientRequest.execute()
method to invoke the remote
operation. SetModerationStatus#initialize(com.google.api.client.googleapis.services.
AbstractGoogleClientRequest)
must be called to initialize this instance immediately after
invoking the constructor.
id
- Modifies the moderation status of the comments with the given IDsmoderationStatus
- Specifies the requested moderation status. Note, comments can be in statuses, which are not
available through this call. For example, this call does not allow to mark a comment as
'likely spam'. Valid values: MODERATION_STATUS_PUBLISHED,
MODERATION_STATUS_HELD_FOR_REVIEW, MODERATION_STATUS_REJECTED.public YouTube.Comments.SetModerationStatus set$Xgafv(String $Xgafv)
YouTubeRequest
set$Xgafv
in class YouTubeRequest<Void>
public YouTube.Comments.SetModerationStatus setAccessToken(String accessToken)
YouTubeRequest
setAccessToken
in class YouTubeRequest<Void>
public YouTube.Comments.SetModerationStatus setAlt(String alt)
YouTubeRequest
setAlt
in class YouTubeRequest<Void>
public YouTube.Comments.SetModerationStatus setCallback(String callback)
YouTubeRequest
setCallback
in class YouTubeRequest<Void>
public YouTube.Comments.SetModerationStatus setFields(String fields)
YouTubeRequest
setFields
in class YouTubeRequest<Void>
public YouTube.Comments.SetModerationStatus setKey(String key)
YouTubeRequest
setKey
in class YouTubeRequest<Void>
public YouTube.Comments.SetModerationStatus setOauthToken(String oauthToken)
YouTubeRequest
setOauthToken
in class YouTubeRequest<Void>
public YouTube.Comments.SetModerationStatus setPrettyPrint(Boolean prettyPrint)
YouTubeRequest
setPrettyPrint
in class YouTubeRequest<Void>
public YouTube.Comments.SetModerationStatus setQuotaUser(String quotaUser)
YouTubeRequest
setQuotaUser
in class YouTubeRequest<Void>
public YouTube.Comments.SetModerationStatus setUploadType(String uploadType)
YouTubeRequest
setUploadType
in class YouTubeRequest<Void>
public YouTube.Comments.SetModerationStatus setUploadProtocol(String uploadProtocol)
YouTubeRequest
setUploadProtocol
in class YouTubeRequest<Void>
public YouTube.Comments.SetModerationStatus setId(List<String> id)
public String getModerationStatus()
public YouTube.Comments.SetModerationStatus setModerationStatus(String moderationStatus)
public Boolean getBanAuthor()
public YouTube.Comments.SetModerationStatus setBanAuthor(Boolean banAuthor)
public boolean isBanAuthor()
Boolean.TRUE
or Boolean.FALSE
.
Boolean properties can have four possible values:
null
, Data.NULL_BOOLEAN
, Boolean.TRUE
or Boolean.FALSE
.
This method returns Boolean.TRUE
if the default of the property is Boolean.TRUE
and it is null
or Data.NULL_BOOLEAN
.
Boolean.FALSE
is returned if the default of the property is Boolean.FALSE
and
it is null
or Data.NULL_BOOLEAN
.
If set to true the author of the comment gets added to the ban list. This means all future comments of the author will autmomatically be rejected. Only valid in combination with STATUS_REJECTED.
public YouTube.Comments.SetModerationStatus set(String parameterName, Object value)
set
in class YouTubeRequest<Void>
Copyright © 2011–2021 Google. All rights reserved.