@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 |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
TagResourceRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
TagResourceRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getResourceArn()
The Amazon Resource Name (ARN) of the resource whose tags you want to update.
|
Map<String,String> |
getTags()
Applies one or more tags to specific resource.
|
int |
hashCode() |
void |
setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the resource whose tags you want to update.
|
void |
setTags(Map<String,String> tags)
Applies one or more tags to specific resource.
|
String |
toString()
Returns a string representation of this object.
|
TagResourceRequest |
withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the resource whose tags you want to update.
|
TagResourceRequest |
withTags(Map<String,String> tags)
Applies one or more tags to specific 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, withSdkRequestTimeout
public void setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the resource whose tags you want to update.
Format example: arn:aws:geo:region:account-id:resourcetype/ExampleResource
resourceArn
- The Amazon Resource Name (ARN) of the resource whose tags you want to update.
Format example: arn:aws:geo:region:account-id:resourcetype/ExampleResource
public String getResourceArn()
The Amazon Resource Name (ARN) of the resource whose tags you want to update.
Format example: arn:aws:geo:region:account-id:resourcetype/ExampleResource
Format example: arn:aws:geo:region:account-id:resourcetype/ExampleResource
public TagResourceRequest withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the resource whose tags you want to update.
Format example: arn:aws:geo:region:account-id:resourcetype/ExampleResource
resourceArn
- The Amazon Resource Name (ARN) of the resource whose tags you want to update.
Format example: arn:aws:geo:region:account-id:resourcetype/ExampleResource
public Map<String,String> getTags()
Applies one or more tags to specific resource. A tag is a key-value pair that helps you manage, identify, search, and filter your resources.
Format: "key" : "value"
Restrictions:
Maximum 50 tags per resource.
Each tag key must be unique and must have exactly one associated value.
Maximum key length: 128 Unicode characters in UTF-8.
Maximum value length: 256 Unicode characters in UTF-8.
Can use alphanumeric characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : / @
Cannot use "aws:" as a prefix for a key.
Format: "key" : "value"
Restrictions:
Maximum 50 tags per resource.
Each tag key must be unique and must have exactly one associated value.
Maximum key length: 128 Unicode characters in UTF-8.
Maximum value length: 256 Unicode characters in UTF-8.
Can use alphanumeric characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : / @
Cannot use "aws:" as a prefix for a key.
public void setTags(Map<String,String> tags)
Applies one or more tags to specific resource. A tag is a key-value pair that helps you manage, identify, search, and filter your resources.
Format: "key" : "value"
Restrictions:
Maximum 50 tags per resource.
Each tag key must be unique and must have exactly one associated value.
Maximum key length: 128 Unicode characters in UTF-8.
Maximum value length: 256 Unicode characters in UTF-8.
Can use alphanumeric characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : / @
Cannot use "aws:" as a prefix for a key.
tags
- Applies one or more tags to specific resource. A tag is a key-value pair that helps you manage, identify,
search, and filter your resources.
Format: "key" : "value"
Restrictions:
Maximum 50 tags per resource.
Each tag key must be unique and must have exactly one associated value.
Maximum key length: 128 Unicode characters in UTF-8.
Maximum value length: 256 Unicode characters in UTF-8.
Can use alphanumeric characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : / @
Cannot use "aws:" as a prefix for a key.
public TagResourceRequest withTags(Map<String,String> tags)
Applies one or more tags to specific resource. A tag is a key-value pair that helps you manage, identify, search, and filter your resources.
Format: "key" : "value"
Restrictions:
Maximum 50 tags per resource.
Each tag key must be unique and must have exactly one associated value.
Maximum key length: 128 Unicode characters in UTF-8.
Maximum value length: 256 Unicode characters in UTF-8.
Can use alphanumeric characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : / @
Cannot use "aws:" as a prefix for a key.
tags
- Applies one or more tags to specific resource. A tag is a key-value pair that helps you manage, identify,
search, and filter your resources.
Format: "key" : "value"
Restrictions:
Maximum 50 tags per resource.
Each tag key must be unique and must have exactly one associated value.
Maximum key length: 128 Unicode characters in UTF-8.
Maximum value length: 256 Unicode characters in UTF-8.
Can use alphanumeric characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : / @
Cannot use "aws:" as a prefix for a key.
public TagResourceRequest addTagsEntry(String key, String value)
public TagResourceRequest clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public TagResourceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()