@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Tag extends Object implements Serializable, Cloneable
A cost allocation Tag that can be added to an ElastiCache cluster or replication group. Tags are composed of a Key/Value pair. 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; useful for testing and debugging.
|
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()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.