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
CreateTags
action.- 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 CreateTagsRequest
clone()
Creates a shallow clone of this request.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; useful for testing and debugging.CreateTagsRequest
withResourceName(String resourceName)
The Amazon Resource Name (ARN) to which you want to add the tag or tags.CreateTagsRequest
withTags(Tag... tags)
One or more name/value pairs to add as tags to the specified resource.CreateTagsRequest
withTags(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
Key
and the corresponding value is passed in with the parameterValue
. TheKey
andValue
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"
.- Returns:
- 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 parameterValue
. TheKey
andValue
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"
.
-
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
Key
and the corresponding value is passed in with the parameterValue
. TheKey
andValue
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"
.- Parameters:
tags
- One or more name/value pairs to add as tags to the specified resource. Each tag name is passed in with the parameterKey
and the corresponding value is passed in with the parameterValue
. TheKey
andValue
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"
.
-
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
Key
and the corresponding value is passed in with the parameterValue
. TheKey
andValue
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)
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 parameterKey
and the corresponding value is passed in with the parameterValue
. TheKey
andValue
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"
.- 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
Key
and the corresponding value is passed in with the parameterValue
. TheKey
andValue
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"
.- Parameters:
tags
- One or more name/value pairs to add as tags to the specified resource. Each tag name is passed in with the parameterKey
and the corresponding value is passed in with the parameterValue
. TheKey
andValue
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"
.- 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateTagsRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-