@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateLabelsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
CreateLabelsRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateLabelsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAuthenticationToken()
Amazon WorkDocs authentication token.
|
List<String> |
getLabels()
List of labels to add to the resource.
|
String |
getResourceId()
The ID of the resource.
|
int |
hashCode() |
void |
setAuthenticationToken(String authenticationToken)
Amazon WorkDocs authentication token.
|
void |
setLabels(Collection<String> labels)
List of labels to add to the resource.
|
void |
setResourceId(String resourceId)
The ID of the resource.
|
String |
toString()
Returns a string representation of this object.
|
CreateLabelsRequest |
withAuthenticationToken(String authenticationToken)
Amazon WorkDocs authentication token.
|
CreateLabelsRequest |
withLabels(Collection<String> labels)
List of labels to add to the resource.
|
CreateLabelsRequest |
withLabels(String... labels)
List of labels to add to the resource.
|
CreateLabelsRequest |
withResourceId(String resourceId)
The ID of the resource.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setResourceId(String resourceId)
The ID of the resource.
resourceId - The ID of the resource.public String getResourceId()
The ID of the resource.
public CreateLabelsRequest withResourceId(String resourceId)
The ID of the resource.
resourceId - The ID of the resource.public List<String> getLabels()
List of labels to add to the resource.
public void setLabels(Collection<String> labels)
List of labels to add to the resource.
labels - List of labels to add to the resource.public CreateLabelsRequest withLabels(String... labels)
List of labels to add to the resource.
NOTE: This method appends the values to the existing list (if any). Use
setLabels(java.util.Collection) or withLabels(java.util.Collection) if you want to override the
existing values.
labels - List of labels to add to the resource.public CreateLabelsRequest withLabels(Collection<String> labels)
List of labels to add to the resource.
labels - List of labels to add to the resource.public void setAuthenticationToken(String authenticationToken)
Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
authenticationToken - Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the
API.public String getAuthenticationToken()
Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
public CreateLabelsRequest withAuthenticationToken(String authenticationToken)
Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
authenticationToken - Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the
API.public String toString()
toString in class ObjectObject.toString()public CreateLabelsRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()