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:
  • 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

      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 Details

    • 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) or withTags(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:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public AddTagsRequest 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 class AmazonWebServiceRequest
      See Also: