Class AddTagsRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
This input identifies a cluster and a list of tags to attach.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for AddTagsRequest object.AddTagsRequest
(String resourceId) Constructs a new AddTagsRequest object.AddTagsRequest
(String resourceId, List<Tag> tags) Constructs a new AddTagsRequest object. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
The Amazon EMR resource identifier to which tags will be added.getTags()
A list of tags to associate with a cluster and propagate to Amazon EC2 instances.int
hashCode()
void
setResourceId
(String resourceId) The Amazon EMR resource identifier to which tags will be added.void
setTags
(Collection<Tag> tags) A list of tags to associate with a cluster and propagate to Amazon EC2 instances.toString()
Returns a string representation of this object; useful for testing and debugging.withResourceId
(String resourceId) The Amazon EMR resource identifier to which tags will be added.A list of tags to associate with a cluster and propagate to Amazon EC2 instances.withTags
(Collection<Tag> tags) A list of tags to associate with a cluster and propagate to Amazon EC2 instances.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
-
Constructor Details
-
AddTagsRequest
public AddTagsRequest()Default constructor for AddTagsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
AddTagsRequest
Constructs a new AddTagsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
resourceId
- The Amazon EMR resource identifier to which tags will be added. This value must be a cluster identifier.
-
AddTagsRequest
Constructs a new AddTagsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
resourceId
- The Amazon EMR resource identifier to which tags will be added. This value must be a cluster identifier.tags
- A list of tags to associate with a cluster and propagate to Amazon EC2 instances. Tags are user-defined key/value pairs that consist of a required key string with a maximum of 128 characters, and an optional value string with a maximum of 256 characters.
-
-
Method Details
-
setResourceId
The Amazon EMR resource identifier to which tags will be added. This value must be a cluster identifier.
- Parameters:
resourceId
- The Amazon EMR resource identifier to which tags will be added. This value must be a cluster identifier.
-
getResourceId
The Amazon EMR resource identifier to which tags will be added. This value must be a cluster identifier.
- Returns:
- The Amazon EMR resource identifier to which tags will be added. This value must be a cluster identifier.
-
withResourceId
The Amazon EMR resource identifier to which tags will be added. This value must be a cluster identifier.
- Parameters:
resourceId
- The Amazon EMR resource identifier to which tags will be added. This value must be a cluster identifier.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTags
A list of tags to associate with a cluster and propagate to Amazon EC2 instances. Tags are user-defined key/value pairs that consist of a required key string with a maximum of 128 characters, and an optional value string with a maximum of 256 characters.
- Returns:
- A list of tags to associate with a cluster and propagate to Amazon EC2 instances. Tags are user-defined key/value pairs that consist of a required key string with a maximum of 128 characters, and an optional value string with a maximum of 256 characters.
-
setTags
A list of tags to associate with a cluster and propagate to Amazon EC2 instances. Tags are user-defined key/value pairs that consist of a required key string with a maximum of 128 characters, and an optional value string with a maximum of 256 characters.
- Parameters:
tags
- A list of tags to associate with a cluster and propagate to Amazon EC2 instances. Tags are user-defined key/value pairs that consist of a required key string with a maximum of 128 characters, and an optional value string with a maximum of 256 characters.
-
withTags
A list of tags to associate with a cluster and propagate to Amazon EC2 instances. Tags are user-defined key/value pairs that consist of a required key string with a maximum of 128 characters, and an optional value string with a maximum of 256 characters.
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
- A list of tags to associate with a cluster and propagate to Amazon EC2 instances. Tags are user-defined key/value pairs that consist of a required key string with a maximum of 128 characters, and an optional value string with a maximum of 256 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
A list of tags to associate with a cluster and propagate to Amazon EC2 instances. Tags are user-defined key/value pairs that consist of a required key string with a maximum of 128 characters, and an optional value string with a maximum of 256 characters.
- Parameters:
tags
- A list of tags to associate with a cluster and propagate to Amazon EC2 instances. Tags are user-defined key/value pairs that consist of a required key string with a maximum of 128 characters, and an optional value string with a maximum of 256 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
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:
-