public class TagSet
extends java.lang.Object
implements java.io.Serializable
A tag set contains tag key and tag value.
| Constructor and Description |
|---|
TagSet() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKey()
The tag key in the tagSet.
|
java.lang.String |
getValue()
The tag value in the tagSet.
|
int |
hashCode() |
void |
setKey(java.lang.String key)
The tag key in the tagSet.
|
void |
setValue(java.lang.String value)
The tag value in the tagSet.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TagSet |
withKey(java.lang.String key)
The tag key in the tagSet.
|
TagSet |
withValue(java.lang.String value)
The tag value in the tagSet.
|
public java.lang.String getKey()
The tag key in the tagSet.
Constraints:
Length: 1 - 128
Pattern: ^(?!aws:)[a-zA-Z+-=._:/]+$
The tag key in the tagSet.
public void setKey(java.lang.String key)
The tag key in the tagSet.
Constraints:
Length: 1 - 128
Pattern: ^(?!aws:)[a-zA-Z+-=._:/]+$
key - The tag key in the tagSet.
public TagSet withKey(java.lang.String key)
The tag key in the tagSet.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: ^(?!aws:)[a-zA-Z+-=._:/]+$
key - The tag key in the tagSet.
public java.lang.String getValue()
The tag value in the tagSet.
Constraints:
Length: - 256
The tag value in the tagSet.
public void setValue(java.lang.String value)
The tag value in the tagSet.
Constraints:
Length: - 256
value - The tag value in the tagSet.
public TagSet withValue(java.lang.String value)
The tag value in the tagSet.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 256
value - The tag value in the tagSet.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object