Class RemoveTagsRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.elasticmapreduce.model.RemoveTagsRequest
All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable

public class RemoveTagsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable

This input identifies a cluster and a list of tags to remove.

See Also:
  • Constructor Details

    • RemoveTagsRequest

      public RemoveTagsRequest()
      Default constructor for RemoveTagsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
    • RemoveTagsRequest

      public RemoveTagsRequest(String resourceId)
      Constructs a new RemoveTagsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      Parameters:
      resourceId - The Amazon EMR resource identifier from which tags will be removed. This value must be a cluster identifier.
    • RemoveTagsRequest

      public RemoveTagsRequest(String resourceId, List<String> tagKeys)
      Constructs a new RemoveTagsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      Parameters:
      resourceId - The Amazon EMR resource identifier from which tags will be removed. This value must be a cluster identifier.
      tagKeys - A list of tag keys to remove from a resource.
  • Method Details

    • setResourceId

      public void setResourceId(String resourceId)

      The Amazon EMR resource identifier from which tags will be removed. This value must be a cluster identifier.

      Parameters:
      resourceId - The Amazon EMR resource identifier from which tags will be removed. This value must be a cluster identifier.
    • getResourceId

      public String getResourceId()

      The Amazon EMR resource identifier from which tags will be removed. This value must be a cluster identifier.

      Returns:
      The Amazon EMR resource identifier from which tags will be removed. This value must be a cluster identifier.
    • withResourceId

      public RemoveTagsRequest withResourceId(String resourceId)

      The Amazon EMR resource identifier from which tags will be removed. This value must be a cluster identifier.

      Parameters:
      resourceId - The Amazon EMR resource identifier from which tags will be removed. This value must be a cluster identifier.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getTagKeys

      public List<String> getTagKeys()

      A list of tag keys to remove from a resource.

      Returns:
      A list of tag keys to remove from a resource.
    • setTagKeys

      public void setTagKeys(Collection<String> tagKeys)

      A list of tag keys to remove from a resource.

      Parameters:
      tagKeys - A list of tag keys to remove from a resource.
    • withTagKeys

      public RemoveTagsRequest withTagKeys(String... tagKeys)

      A list of tag keys to remove from a resource.

      NOTE: This method appends the values to the existing list (if any). Use setTagKeys(java.util.Collection) or withTagKeys(java.util.Collection) if you want to override the existing values.

      Parameters:
      tagKeys - A list of tag keys to remove from a resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withTagKeys

      public RemoveTagsRequest withTagKeys(Collection<String> tagKeys)

      A list of tag keys to remove from a resource.

      Parameters:
      tagKeys - A list of tag keys to remove from a resource.
      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 RemoveTagsRequest 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: