Class CreateTagsRequest
- All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable
Contains the output from the CreateTags action.
- See Also:
-
Field Summary
Fields inherited from class AmazonWebServiceRequest
NOOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a shallow clone of this request.booleanThe Amazon Resource Name (ARN) to which you want to add the tag or tags.getTags()One or more name/value pairs to add as tags to the specified resource.inthashCode()voidsetResourceName(String resourceName) The Amazon Resource Name (ARN) to which you want to add the tag or tags.voidsetTags(Collection<Tag> tags) One or more name/value pairs to add as tags to the specified resource.toString()Returns a string representation of this object; useful for testing and debugging.withResourceName(String resourceName) The Amazon Resource Name (ARN) to which you want to add the tag or tags.One or more name/value pairs to add as tags to the specified resource.withTags(Collection<Tag> tags) One or more name/value pairs to add as tags to the specified resource.Methods inherited from class AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
CreateTagsRequest
public CreateTagsRequest()
-
-
Method Details
-
setResourceName
The Amazon Resource Name (ARN) to which you want to add the tag or tags. For example,
arn:aws:redshift:us-east-1:123456789:cluster:t1.- Parameters:
resourceName- The Amazon Resource Name (ARN) to which you want to add the tag or tags. For example,arn:aws:redshift:us-east-1:123456789:cluster:t1.
-
getResourceName
The Amazon Resource Name (ARN) to which you want to add the tag or tags. For example,
arn:aws:redshift:us-east-1:123456789:cluster:t1.- Returns:
- The Amazon Resource Name (ARN) to which you want to add the tag
or tags. For example,
arn:aws:redshift:us-east-1:123456789:cluster:t1.
-
withResourceName
The Amazon Resource Name (ARN) to which you want to add the tag or tags. For example,
arn:aws:redshift:us-east-1:123456789:cluster:t1.- Parameters:
resourceName- The Amazon Resource Name (ARN) to which you want to add the tag or tags. For example,arn:aws:redshift:us-east-1:123456789:cluster:t1.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTags
One or more name/value pairs to add as tags to the specified resource. Each tag name is passed in with the parameter
Keyand the corresponding value is passed in with the parameterValue. TheKeyandValueparameters are separated by a comma (,). Separate multiple tags with a space. For example,--tags "Key"="owner","Value"="admin" "Key"="environment","Value"="test" "Key"="version","Value"="1.0".- Returns:
- One or more name/value pairs to add as tags to the specified
resource. Each tag name is passed in with the parameter
Keyand the corresponding value is passed in with the parameterValue. TheKeyandValueparameters are separated by a comma (,). Separate multiple tags with a space. For example,--tags "Key"="owner","Value"="admin" "Key"="environment","Value"="test" "Key"="version","Value"="1.0".
-
setTags
One or more name/value pairs to add as tags to the specified resource. Each tag name is passed in with the parameter
Keyand the corresponding value is passed in with the parameterValue. TheKeyandValueparameters are separated by a comma (,). Separate multiple tags with a space. For example,--tags "Key"="owner","Value"="admin" "Key"="environment","Value"="test" "Key"="version","Value"="1.0".- Parameters:
tags- One or more name/value pairs to add as tags to the specified resource. Each tag name is passed in with the parameterKeyand the corresponding value is passed in with the parameterValue. TheKeyandValueparameters are separated by a comma (,). Separate multiple tags with a space. For example,--tags "Key"="owner","Value"="admin" "Key"="environment","Value"="test" "Key"="version","Value"="1.0".
-
withTags
One or more name/value pairs to add as tags to the specified resource. Each tag name is passed in with the parameter
Keyand the corresponding value is passed in with the parameterValue. TheKeyandValueparameters are separated by a comma (,). Separate multiple tags with a space. For example,--tags "Key"="owner","Value"="admin" "Key"="environment","Value"="test" "Key"="version","Value"="1.0".NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)orwithTags(java.util.Collection)if you want to override the existing values.- Parameters:
tags- One or more name/value pairs to add as tags to the specified resource. Each tag name is passed in with the parameterKeyand the corresponding value is passed in with the parameterValue. TheKeyandValueparameters are separated by a comma (,). Separate multiple tags with a space. For example,--tags "Key"="owner","Value"="admin" "Key"="environment","Value"="test" "Key"="version","Value"="1.0".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
One or more name/value pairs to add as tags to the specified resource. Each tag name is passed in with the parameter
Keyand the corresponding value is passed in with the parameterValue. TheKeyandValueparameters are separated by a comma (,). Separate multiple tags with a space. For example,--tags "Key"="owner","Value"="admin" "Key"="environment","Value"="test" "Key"="version","Value"="1.0".- Parameters:
tags- One or more name/value pairs to add as tags to the specified resource. Each tag name is passed in with the parameterKeyand the corresponding value is passed in with the parameterValue. TheKeyandValueparameters are separated by a comma (,). Separate multiple tags with a space. For example,--tags "Key"="owner","Value"="admin" "Key"="environment","Value"="test" "Key"="version","Value"="1.0".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
-
equals
-
hashCode
-
clone
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
-