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 Tag
clone()
boolean
equals(Object obj)
String
getKey()
Specifies theTagKey
, the name of the tag.String
getValue()
Specifies theTagValue
, the value assigned to the corresponding tag key.int
hashCode()
void
setKey(String key)
Specifies theTagKey
, the name of the tag.void
setValue(String value)
Specifies theTagValue
, the value assigned to the corresponding tag key.String
toString()
Returns a string representation of this object; useful for testing and debugging.Tag
withKey(String key)
Specifies theTagKey
, the name of the tag.Tag
withValue(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 : Trinity
andcost-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 : Trinity
andcost-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 : Trinity
andcost-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 : Trinity
andcost-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 : Trinity
andcost-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 : Trinity
andcost-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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-