public class AddTagsRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
This input identifies a cluster and a list of tags to attach.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
resourceId
The Amazon EMR resource identifier to which tags will be added.
|
private SdkInternalList<Tag> |
tags
A list of tags to associate with a cluster and propagate to Amazon EC2
instances.
|
NOOP
Constructor and Description |
---|
AddTagsRequest()
Default constructor for AddTagsRequest object.
|
AddTagsRequest(java.lang.String resourceId)
Constructs a new AddTagsRequest object.
|
AddTagsRequest(java.lang.String resourceId,
java.util.List<Tag> tags)
Constructs a new AddTagsRequest object.
|
Modifier and Type | Method and Description |
---|---|
AddTagsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getResourceId()
The Amazon EMR resource identifier to which tags will be added.
|
java.util.List<Tag> |
getTags()
A list of tags to associate with a cluster and propagate to Amazon EC2
instances.
|
int |
hashCode() |
void |
setResourceId(java.lang.String resourceId)
The Amazon EMR resource identifier to which tags will be added.
|
void |
setTags(java.util.Collection<Tag> tags)
A list of tags to associate with a cluster and propagate to Amazon EC2
instances.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AddTagsRequest |
withResourceId(java.lang.String resourceId)
The Amazon EMR resource identifier to which tags will be added.
|
AddTagsRequest |
withTags(java.util.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, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String resourceId
The Amazon EMR resource identifier to which tags will be added. This value must be a cluster identifier.
private SdkInternalList<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.
public AddTagsRequest()
public AddTagsRequest(java.lang.String resourceId)
resourceId
- The Amazon EMR resource identifier to which tags will be added.
This value must be a cluster identifier.public AddTagsRequest(java.lang.String resourceId, java.util.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 void setResourceId(java.lang.String resourceId)
The Amazon EMR resource identifier to which tags will be added. This value must be a cluster identifier.
resourceId
- The Amazon EMR resource identifier to which tags will be added.
This value must be a cluster identifier.public java.lang.String getResourceId()
The Amazon EMR resource identifier to which tags will be added. This value must be a cluster identifier.
public AddTagsRequest withResourceId(java.lang.String resourceId)
The Amazon EMR resource identifier to which tags will be added. This value must be a cluster identifier.
resourceId
- The Amazon EMR resource identifier to which tags will be added.
This value must be a cluster identifier.public java.util.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.
public void setTags(java.util.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.
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)
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)
or
withTags(java.util.Collection)
if you want to override the
existing values.
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(java.util.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.
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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AddTagsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()