@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateTagsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Contains the output from the CreateTags action.
NOOP| Constructor and Description |
|---|
CreateTagsRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateTagsRequest |
clone() |
boolean |
equals(Object obj) |
String |
getResourceName()
The Amazon Resource Name (ARN) to which you want to add the tag or tags.
|
List<Tag> |
getTags()
One or more name/value pairs to add as tags to the specified resource.
|
int |
hashCode() |
void |
setResourceName(String resourceName)
The Amazon Resource Name (ARN) to which you want to add the tag or tags.
|
void |
setTags(Collection<Tag> tags)
One or more name/value pairs to add as tags to the specified resource.
|
String |
toString()
Returns a string representation of this object.
|
CreateTagsRequest |
withResourceName(String resourceName)
The Amazon Resource Name (ARN) to which you want to add the tag or tags.
|
CreateTagsRequest |
withTags(Collection<Tag> tags)
One or more name/value pairs to add as tags to the specified resource.
|
CreateTagsRequest |
withTags(Tag... tags)
One or more name/value pairs to add as tags to the specified resource.
|
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 setResourceName(String resourceName)
The Amazon Resource Name (ARN) to which you want to add the tag or tags. For example,
arn:aws:redshift:us-east-2:123456789:cluster:t1.
resourceName - The Amazon Resource Name (ARN) to which you want to add the tag or tags. For example,
arn:aws:redshift:us-east-2:123456789:cluster:t1.public String getResourceName()
The Amazon Resource Name (ARN) to which you want to add the tag or tags. For example,
arn:aws:redshift:us-east-2:123456789:cluster:t1.
arn:aws:redshift:us-east-2:123456789:cluster:t1.public CreateTagsRequest withResourceName(String resourceName)
The Amazon Resource Name (ARN) to which you want to add the tag or tags. For example,
arn:aws:redshift:us-east-2:123456789:cluster:t1.
resourceName - The Amazon Resource Name (ARN) to which you want to add the tag or tags. For example,
arn:aws:redshift:us-east-2:123456789:cluster:t1.public List<Tag> getTags()
One or more name/value pairs to add as tags to the specified resource. Each tag name is passed in with the
parameter Key and the corresponding value is passed in with the parameter Value. The
Key and Value parameters 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"
.
Key and the corresponding value is passed in with the parameter
Value. The Key and Value parameters 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"
.public void setTags(Collection<Tag> tags)
One or more name/value pairs to add as tags to the specified resource. Each tag name is passed in with the
parameter Key and the corresponding value is passed in with the parameter Value. The
Key and Value parameters 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"
.
tags - One or more name/value pairs to add as tags to the specified resource. Each tag name is passed in with the
parameter Key and the corresponding value is passed in with the parameter Value.
The Key and Value parameters 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"
.public CreateTagsRequest withTags(Tag... tags)
One or more name/value pairs to add as tags to the specified resource. Each tag name is passed in with the
parameter Key and the corresponding value is passed in with the parameter Value. The
Key and Value parameters 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) or withTags(java.util.Collection) if you want to override the
existing values.
tags - One or more name/value pairs to add as tags to the specified resource. Each tag name is passed in with the
parameter Key and the corresponding value is passed in with the parameter Value.
The Key and Value parameters 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"
.public CreateTagsRequest withTags(Collection<Tag> tags)
One or more name/value pairs to add as tags to the specified resource. Each tag name is passed in with the
parameter Key and the corresponding value is passed in with the parameter Value. The
Key and Value parameters 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"
.
tags - One or more name/value pairs to add as tags to the specified resource. Each tag name is passed in with the
parameter Key and the corresponding value is passed in with the parameter Value.
The Key and Value parameters 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"
.public String toString()
toString in class ObjectObject.toString()public CreateTagsRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2022. All rights reserved.