Class AddTagsRequest

    • Constructor Detail

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

      • 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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object