@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TagResourceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Adds or updates Tags on a gievn resource.
NOOP| Constructor and Description |
|---|
TagResourceRequest() |
| Modifier and Type | Method and Description |
|---|---|
TagResourceRequest |
addTagsEntry(String key,
String value) |
TagResourceRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
TagResourceRequest |
clone() |
boolean |
equals(Object obj) |
String |
getResourceArn()
[Required] The ARN of a resource that can be tagged.
|
Map<String,String> |
getTags()
[Required] Key/Value map of strings.
|
int |
hashCode() |
void |
setResourceArn(String resourceArn)
[Required] The ARN of a resource that can be tagged.
|
void |
setTags(Map<String,String> tags)
[Required] Key/Value map of strings.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
TagResourceRequest |
withResourceArn(String resourceArn)
[Required] The ARN of a resource that can be tagged.
|
TagResourceRequest |
withTags(Map<String,String> tags)
[Required] Key/Value map of strings.
|
addHandlerContext, copyBaseTo, 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 setResourceArn(String resourceArn)
[Required] The ARN of a resource that can be tagged. At present, Stage is the only taggable resource.
resourceArn - [Required] The ARN of a resource that can be tagged. At present, Stage is the only taggable
resource.public String getResourceArn()
[Required] The ARN of a resource that can be tagged. At present, Stage is the only taggable resource.
public TagResourceRequest withResourceArn(String resourceArn)
[Required] The ARN of a resource that can be tagged. At present, Stage is the only taggable resource.
resourceArn - [Required] The ARN of a resource that can be tagged. At present, Stage is the only taggable
resource.public Map<String,String> getTags()
[Required] Key/Value map of strings. Valid character set is [a-zA-Z+-=._:/]. Tag key can be up to 128 characters and must not start with "aws:". Tag value can be up to 256 characters.
public void setTags(Map<String,String> tags)
[Required] Key/Value map of strings. Valid character set is [a-zA-Z+-=._:/]. Tag key can be up to 128 characters and must not start with "aws:". Tag value can be up to 256 characters.
tags - [Required] Key/Value map of strings. Valid character set is [a-zA-Z+-=._:/]. Tag key can be up to 128
characters and must not start with "aws:". Tag value can be up to 256 characters.public TagResourceRequest withTags(Map<String,String> tags)
[Required] Key/Value map of strings. Valid character set is [a-zA-Z+-=._:/]. Tag key can be up to 128 characters and must not start with "aws:". Tag value can be up to 256 characters.
tags - [Required] Key/Value map of strings. Valid character set is [a-zA-Z+-=._:/]. Tag key can be up to 128
characters and must not start with "aws:". Tag value can be up to 256 characters.public TagResourceRequest addTagsEntry(String key, String value)
public TagResourceRequest clearTagsEntries()
public String toString()
toString in class ObjectObject.toString()public TagResourceRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2018. All rights reserved.