Class CreateTagsRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.redshift.model.CreateTagsRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class CreateTagsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Contains the output from the
CreateTagsaction.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateTagsRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateTagsRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetResourceName()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.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.StringtoString()Returns a string representation of this object; useful for testing and debugging.CreateTagsRequestwithResourceName(String resourceName)The Amazon Resource Name (ARN) to which you want to add the tag or tags.CreateTagsRequestwithTags(Tag... tags)One or more name/value pairs to add as tags to the specified resource.CreateTagsRequestwithTags(Collection<Tag> tags)One or more name/value pairs to add as tags to the specified resource.-
Methods inherited from class com.amazonaws.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
-
-
-
-
Method Detail
-
setResourceName
public 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-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
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-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
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-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
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
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
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
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
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
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
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
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateTagsRequest 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:
Object.clone()
-
-