public class Tag extends Object implements Serializable, Cloneable
Specifies a key value pair for a resource tag.
Constructor and Description |
---|
Tag() |
Modifier and Type | Method and Description |
---|---|
Tag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
Specifies the
TagKey , the name of the tag. |
String |
getValue()
Specifies the
TagValue , the value assigned to the
corresponding tag key. |
int |
hashCode() |
void |
setKey(String key)
Specifies the
TagKey , the name of the tag. |
void |
setValue(String value)
Specifies the
TagValue , 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 the
TagKey , the name of the tag. |
Tag |
withValue(String value)
Specifies the
TagValue , the value assigned to the
corresponding tag key. |
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.
key
- Specifies the TagKey
, the name of the tag. Tag keys
must be unique for the Elasticsearch domain to which they are
attached.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.
TagKey
, the name of the tag. Tag keys
must be unique for the Elasticsearch domain to which they are
attached.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.
key
- Specifies the TagKey
, the name of the tag. Tag keys
must be unique for the Elasticsearch domain to which they are
attached.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
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
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
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
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
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
public String toString()
toString
in class Object
Object.toString()
Copyright © 2018. All rights reserved.