java.lang.Object
com.amazonaws.services.elasticsearch.model.Tag
All Implemented Interfaces:
Serializable, Cloneable

public class Tag extends Object implements Serializable, Cloneable

Specifies a key value pair for a resource tag.

See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Tag()
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
     
    Specifies the TagKey, the name of the tag.
    Specifies the TagValue, the value assigned to the corresponding tag key.
    int
     
    void
    Specifies the TagKey, the name of the tag.
    void
    Specifies the TagValue, the value assigned to the corresponding tag key.
    Returns a string representation of this object; useful for testing and debugging.
    Specifies the TagKey, the name of the tag.
    Specifies the TagValue, the value assigned to the corresponding tag key.

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Tag

      public Tag()
  • Method Details

    • setKey

      public void setKey(String key)

      Specifies the TagKey, the name of the tag. Tag keys must be unique for the Elasticsearch domain to which they are attached.

      Parameters:
      key - Specifies the TagKey, the name of the tag. Tag keys must be unique for the Elasticsearch domain to which they are attached.
    • getKey

      public String getKey()

      Specifies the TagKey, the name of the tag. Tag keys must be unique for the Elasticsearch domain to which they are attached.

      Returns:
      Specifies the TagKey, the name of the tag. Tag keys must be unique for the Elasticsearch domain to which they are attached.
    • withKey

      public Tag withKey(String key)

      Specifies the TagKey, the name of the tag. Tag keys must be unique for the Elasticsearch domain to which they are attached.

      Parameters:
      key - Specifies the TagKey, the name of the tag. Tag keys must be unique for the Elasticsearch domain to which they are attached.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setValue

      public void setValue(String value)

      Specifies the TagValue, the value assigned to the corresponding tag key. Tag values can be null and do not have to be unique in a tag set. For example, you can have a key value pair in a tag set of project : Trinity and cost-center : Trinity

      Parameters:
      value - Specifies the TagValue, the value assigned to the corresponding tag key. Tag values can be null and do not have to be unique in a tag set. For example, you can have a key value pair in a tag set of project : Trinity and cost-center : Trinity
    • getValue

      public String getValue()

      Specifies the TagValue, the value assigned to the corresponding tag key. Tag values can be null and do not have to be unique in a tag set. For example, you can have a key value pair in a tag set of project : Trinity and cost-center : Trinity

      Returns:
      Specifies the TagValue, the value assigned to the corresponding tag key. Tag values can be null and do not have to be unique in a tag set. For example, you can have a key value pair in a tag set of project : Trinity and cost-center : Trinity
    • withValue

      public Tag withValue(String value)

      Specifies the TagValue, the value assigned to the corresponding tag key. Tag values can be null and do not have to be unique in a tag set. For example, you can have a key value pair in a tag set of project : Trinity and cost-center : Trinity

      Parameters:
      value - Specifies the TagValue, the value assigned to the corresponding tag key. Tag values can be null and do not have to be unique in a tag set. For example, you can have a key value pair in a tag set of project : Trinity and cost-center : Trinity
      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 Tag clone()
      Overrides:
      clone in class Object