@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AddTagsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
This input identifies an Amazon EMR resource and a list of tags to attach.
NOOP
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
AddTagsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
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 resource.
|
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 resource.
|
String |
toString()
Returns a string representation of this object.
|
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 resource.
|
AddTagsRequest |
withTags(Tag... tags)
A list of tags to associate with a resource.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public AddTagsRequest()
public AddTagsRequest(String resourceId)
resourceId
- The Amazon EMR resource identifier to which tags will be added. For example, a cluster identifier or an
Amazon EMR Studio ID.public AddTagsRequest(String resourceId, List<Tag> tags)
resourceId
- The Amazon EMR resource identifier to which tags will be added. For example, a cluster identifier or an
Amazon EMR Studio ID.tags
- A list of tags to associate with a resource. 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(String resourceId)
The Amazon EMR resource identifier to which tags will be added. For example, a cluster identifier or an Amazon EMR Studio ID.
resourceId
- The Amazon EMR resource identifier to which tags will be added. For example, a cluster identifier or an
Amazon EMR Studio ID.public String getResourceId()
The Amazon EMR resource identifier to which tags will be added. For example, a cluster identifier or an Amazon EMR Studio ID.
public AddTagsRequest withResourceId(String resourceId)
The Amazon EMR resource identifier to which tags will be added. For example, a cluster identifier or an Amazon EMR Studio ID.
resourceId
- The Amazon EMR resource identifier to which tags will be added. For example, a cluster identifier or an
Amazon EMR Studio ID.public List<Tag> getTags()
A list of tags to associate with a resource. 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(Collection<Tag> tags)
A list of tags to associate with a resource. 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 resource. 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 resource. 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 resource. 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)
A list of tags to associate with a resource. 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 resource. 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 Object
Object.toString()
public AddTagsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()