Class Tag
- All Implemented Interfaces:
Serializable
,Cloneable
Specifies a key value pair for a resource tag.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getKey()
Specifies theTagKey
, the name of the tag.getValue()
Specifies theTagValue
, the value assigned to the corresponding tag key.int
hashCode()
void
Specifies theTagKey
, the name of the tag.void
Specifies theTagValue
, the value assigned to the corresponding tag key.toString()
Returns a string representation of this object; useful for testing and debugging.Specifies theTagKey
, the name of the tag.Specifies theTagValue
, the value assigned to the corresponding tag key.
-
Constructor Details
-
Tag
public Tag()
-
-
Method Details
-
setKey
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
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
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
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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-