public class AddTagsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
AddTags operation.
Adds tags to an Amazon EMR resource. Tags make it easier to associate clusters in various ways, such as grouping clusters to track your Amazon EMR resource allocation costs. For more information, see Tagging Amazon EMR Resources .
NOOP| Constructor and Description |
|---|
AddTagsRequest()
Default constructor for a new AddTagsRequest object.
|
AddTagsRequest(String resourceId)
Constructs a new AddTagsRequest object.
|
AddTagsRequest(String resourceId,
List<Tag> tags)
Constructs a new AddTagsRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
AddTagsRequest |
clone() |
boolean |
equals(Object obj) |
String |
getResourceId()
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.
|
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.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AddTagsRequest |
withResourceId(String resourceId)
The Amazon EMR resource identifier to which tags will be added.
|
AddTagsRequest |
withTags(Collection<Tag> tags)
A list of tags to associate with a cluster and propagate to Amazon EC2
instances.
|
AddTagsRequest |
withTags(Tag... tags)
A list of tags to associate with a cluster and propagate to Amazon EC2
instances.
|
copyBaseTo, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic AddTagsRequest()
public AddTagsRequest(String resourceId)
resourceId - The Amazon EMR resource identifier to which tags
will be added. This value must be a cluster identifier.public AddTagsRequest(String resourceId, List<Tag> tags)
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.public String getResourceId()
public void setResourceId(String resourceId)
resourceId - The Amazon EMR resource identifier to which tags will be added. This
value must be a cluster identifier.public AddTagsRequest withResourceId(String resourceId)
Returns a reference to this object so that method calls can be chained together.
resourceId - The Amazon EMR resource identifier to which tags will be added. This
value must be a cluster identifier.public List<Tag> getTags()
public void setTags(Collection<Tag> tags)
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.public AddTagsRequest withTags(Tag... tags)
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.
Returns a reference to this object so that method calls can be chained together.
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.public AddTagsRequest withTags(Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
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.public String toString()
toString in class ObjectObject.toString()public AddTagsRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2015. All rights reserved.