public class Tag extends Object implements Serializable, Cloneable
A single tag containing a key and value.
| Constructor and Description |
|---|
Tag() |
| Modifier and Type | Method and Description |
|---|---|
Tag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The key for a
Tag. |
String |
getValue()
The value for a
Tag. |
int |
hashCode() |
void |
setKey(String key)
The key for a
Tag. |
void |
setValue(String value)
The value for a
Tag. |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Tag |
withKey(String key)
The key for a
Tag. |
Tag |
withValue(String value)
The value for a
Tag. |
public void setKey(String key)
The key for a Tag.
key - The key for a Tag.public String getKey()
The key for a Tag.
Tag.public Tag withKey(String key)
The key for a Tag.
key - The key for a Tag.public void setValue(String value)
The value for a Tag.
value - The value for a Tag.public String getValue()
The value for a Tag.
Tag.public Tag withValue(String value)
The value for a Tag.
value - The value for a Tag.public String toString()
toString in class ObjectObject.toString()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.