Class Tag
java.lang.Object
com.amazonaws.services.elasticache.model.Tag
- All Implemented Interfaces:
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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getKey()
The key for the tag.getValue()
The tag's value.int
hashCode()
void
The key for the tag.void
The tag's value.toString()
Returns a string representation of this object; useful for testing and debugging.The key for the tag.The tag's value.
-
Constructor Details
-
Tag
public Tag()
-
-
Method Details
-
setKey
The key for the tag.
- Parameters:
key
- The key for the tag.
-
getKey
The key for the tag.
- Returns:
- The key for the tag.
-
withKey
The key for the tag.
- Parameters:
key
- The key for the tag.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setValue
The tag's value. May not be null.
- Parameters:
value
- The tag's value. May not be null.
-
getValue
The tag's value. May not be null.
- Returns:
- The tag's value. May not be null.
-
withValue
The tag's value. May not be null.
- Parameters:
value
- The tag's value. May not be null.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-