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(String id,
String moderationStatus)
Sets the moderation status of one or more comments.
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getBanAuthor()
The banAuthor parameter lets you indicate that you want to automatically reject any additional
comments written by the comment's author.
|
String |
getId()
The id parameter specifies a comma-separated list of IDs that identify the comments for which you
are updating the moderation status.
|
String |
getModerationStatus()
Identifies the new moderation status of the specified comments.
|
boolean |
isBanAuthor()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE. |
YouTube.Comments.SetModerationStatus |
set(String parameterName,
Object value) |
YouTube.Comments.SetModerationStatus |
setAlt(String alt)
Data format for the response.
|
YouTube.Comments.SetModerationStatus |
setBanAuthor(Boolean banAuthor)
The banAuthor parameter lets you indicate that you want to automatically reject any
additional comments written by the comment's author.
|
YouTube.Comments.SetModerationStatus |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
YouTube.Comments.SetModerationStatus |
setId(String id)
The id parameter specifies a comma-separated list of IDs that identify the comments for
which you are updating the moderation status.
|
YouTube.Comments.SetModerationStatus |
setKey(String key)
API key.
|
YouTube.Comments.SetModerationStatus |
setModerationStatus(String moderationStatus)
Identifies the new moderation status of the specified comments.
|
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)
An opaque string that represents a user for quota purposes.
|
YouTube.Comments.SetModerationStatus |
setUserIp(String userIp)
Deprecated.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, 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(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 - The id parameter specifies a comma-separated list of IDs that identify the comments for which you
are updating the moderation status.moderationStatus - Identifies the new moderation status of the specified comments.public YouTube.Comments.SetModerationStatus setAlt(String alt)
YouTubeRequestsetAlt 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 setUserIp(String userIp)
YouTubeRequestsetUserIp in class YouTubeRequest<Void>public String getId()
public YouTube.Comments.SetModerationStatus setId(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.
The banAuthor parameter lets you indicate that you want to automatically reject any additional comments written by the comment's author. Set the parameter value to true to ban the author. Note: This parameter is only valid if the moderationStatus parameter is also set to rejected.
public YouTube.Comments.SetModerationStatus set(String parameterName, Object value)
set in class YouTubeRequest<Void>Copyright © 2011–2019 Google. All rights reserved.