@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Tag extends Object implements Serializable, Cloneable
A tag that can be added to an ElastiCache cluster or replication group. Tags are composed of a Key/Value pair. You can use tags to categorize and track all your ElastiCache resources, with the exception of global replication group. When you add or remove tags on replication groups, those actions will be replicated to all nodes in the replication group. A tag with a null Value is permitted.
Constructor and Description |
---|
Tag() |
Modifier and Type | Method and Description |
---|---|
Tag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The key for the tag.
|
String |
getValue()
The tag's value.
|
int |
hashCode() |
void |
setKey(String key)
The key for the tag.
|
void |
setValue(String value)
The tag's value.
|
String |
toString()
Returns a string representation of this object.
|
Tag |
withKey(String key)
The key for the tag.
|
Tag |
withValue(String value)
The tag's value.
|
public void setKey(String key)
The key for the tag. May not be null.
key
- The key for the tag. May not be null.public String getKey()
The key for the tag. May not be null.
public Tag withKey(String key)
The key for the tag. May not be null.
key
- The key for the tag. May not be null.public void setValue(String value)
The tag's value. May be null.
value
- The tag's value. May be null.public String getValue()
The tag's value. May be null.
public Tag withValue(String value)
The tag's value. May be null.
value
- The tag's value. May be null.public String toString()
toString
in class Object
Object.toString()