Class Tag
- 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Tag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tagclone()booleanequals(Object obj)StringgetKey()Specifies theTagKey, the name of the tag.StringgetValue()Specifies theTagValue, the value assigned to the corresponding tag key.inthashCode()voidsetKey(String key)Specifies theTagKey, the name of the tag.voidsetValue(String value)Specifies theTagValue, the value assigned to the corresponding tag key.StringtoString()Returns a string representation of this object; useful for testing and debugging.TagwithKey(String key)Specifies theTagKey, the name of the tag.TagwithValue(String value)Specifies theTagValue, the value assigned to the corresponding tag key.
-
-
-
Method Detail
-
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 theTagKey, 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 theTagKey, 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 ofproject : Trinityandcost-center : Trinity- Parameters:
value- Specifies theTagValue, 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 ofproject : Trinityandcost-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 ofproject : Trinityandcost-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 ofproject : Trinityandcost-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 ofproject : Trinityandcost-center : Trinity- Parameters:
value- Specifies theTagValue, 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 ofproject : Trinityandcost-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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-