@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TagResourceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
TagResourceRequest() |
| Modifier and Type | Method and Description |
|---|---|
TagResourceRequest |
clone() |
boolean |
equals(Object obj) |
String |
getResourceArn()
ARN of the resource.
|
List<Tag> |
getTags()
List of tag key value pairs.
|
int |
hashCode() |
void |
setResourceArn(String resourceArn)
ARN of the resource.
|
void |
setTags(Collection<Tag> tags)
List of tag key value pairs.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
TagResourceRequest |
withResourceArn(String resourceArn)
ARN of the resource.
|
TagResourceRequest |
withTags(Collection<Tag> tags)
List of tag key value pairs.
|
TagResourceRequest |
withTags(Tag... tags)
List of tag key value pairs.
|
addHandlerContext, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setResourceArn(String resourceArn)
ARN of the resource. Tagging is only supported for directories.
resourceArn - ARN of the resource. Tagging is only supported for directories.public String getResourceArn()
ARN of the resource. Tagging is only supported for directories.
public TagResourceRequest withResourceArn(String resourceArn)
ARN of the resource. Tagging is only supported for directories.
resourceArn - ARN of the resource. Tagging is only supported for directories.public List<Tag> getTags()
List of tag key value pairs.
public void setTags(Collection<Tag> tags)
List of tag key value pairs.
tags - List of tag key value pairs.public TagResourceRequest withTags(Tag... tags)
List of tag key value pairs.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection) or withTags(java.util.Collection) if you want to override the
existing values.
tags - List of tag key value pairs.public TagResourceRequest withTags(Collection<Tag> tags)
List of tag key value pairs.
tags - List of tag key value pairs.public String toString()
toString in class ObjectObject.toString()public TagResourceRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2017. All rights reserved.