Class AddTagsRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.elasticmapreduce.model.AddTagsRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class AddTagsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
This input identifies a cluster and a list of tags to attach.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description AddTagsRequest()Default 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddTagsRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetResourceId()The Amazon EMR resource identifier to which tags will be added.List<Tag>getTags()A list of tags to associate with a cluster and propagate to Amazon EC2 instances.inthashCode()voidsetResourceId(String resourceId)The Amazon EMR resource identifier to which tags will be added.voidsetTags(Collection<Tag> tags)A list of tags to associate with a cluster and propagate to Amazon EC2 instances.StringtoString()Returns a string representation of this object; useful for testing and debugging.AddTagsRequestwithResourceId(String resourceId)The Amazon EMR resource identifier to which tags will be added.AddTagsRequestwithTags(Tag... tags)A list of tags to associate with a cluster and propagate to Amazon EC2 instances.AddTagsRequestwithTags(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 Detail
-
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
public AddTagsRequest(String resourceId)
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
public AddTagsRequest(String resourceId, List<Tag> tags)
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 Detail
-
setResourceId
public void setResourceId(String resourceId)
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
public String 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
public AddTagsRequest withResourceId(String resourceId)
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
public List<Tag> 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
public void setTags(Collection<Tag> 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.
- 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
public AddTagsRequest withTags(Tag... 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.
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
public AddTagsRequest withTags(Collection<Tag> 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.
- 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
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 AddTagsRequest 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()
-
-