public class YouTube.Comments.SetModerationStatus extends YouTubeRequest<Void>
GenericData.FlagsAbstractMap.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, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, 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, setReturnRawInputStreamclone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toStringclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected 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)
YouTubeRequestset$Xgafv in class YouTubeRequest<Void>public YouTube.Comments.SetModerationStatus setAccessToken(String accessToken)
YouTubeRequestsetAccessToken in class YouTubeRequest<Void>public YouTube.Comments.SetModerationStatus setAlt(String alt)
YouTubeRequestsetAlt in class YouTubeRequest<Void>public YouTube.Comments.SetModerationStatus setCallback(String callback)
YouTubeRequestsetCallback in class YouTubeRequest<Void>public YouTube.Comments.SetModerationStatus setFields(String fields)
YouTubeRequestsetFields in class YouTubeRequest<Void>public YouTube.Comments.SetModerationStatus setKey(String key)
YouTubeRequestsetKey in class YouTubeRequest<Void>public YouTube.Comments.SetModerationStatus setOauthToken(String oauthToken)
YouTubeRequestsetOauthToken in class YouTubeRequest<Void>public YouTube.Comments.SetModerationStatus setPrettyPrint(Boolean prettyPrint)
YouTubeRequestsetPrettyPrint in class YouTubeRequest<Void>public YouTube.Comments.SetModerationStatus setQuotaUser(String quotaUser)
YouTubeRequestsetQuotaUser in class YouTubeRequest<Void>public YouTube.Comments.SetModerationStatus setUploadType(String uploadType)
YouTubeRequestsetUploadType in class YouTubeRequest<Void>public YouTube.Comments.SetModerationStatus setUploadProtocol(String uploadProtocol)
YouTubeRequestsetUploadProtocol 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.