@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Tag extends Object implements Serializable, Cloneable, StructuredPojo
A tag that can be added to an MemoryDB resource. Tags are composed of a Key/Value pair. You can use tags to categorize and track all your MemoryDB resources. When you add or remove tags on clusters, those actions will be replicated to all nodes in the cluster. A tag with a null Value is permitted. For more information, see Tagging your MemoryDB resources
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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.