@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Tag extends Object implements Serializable, Cloneable, StructuredPojo
A complex type that contains a Tag key and Tag value.
| Constructor and Description |
|---|
Tag() |
| Modifier and Type | Method and Description |
|---|---|
Tag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
A string that contains a
Tag key. |
String |
getValue()
A string that contains a
Tag value. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setKey(String key)
A string that contains a
Tag key. |
void |
setValue(String value)
A string that contains a
Tag value. |
String |
toString()
Returns a string representation of this object.
|
Tag |
withKey(String key)
A string that contains a
Tag key. |
Tag |
withValue(String value)
A string that contains a
Tag value. |
public void setKey(String key)
A string that contains a Tag key.
key - A string that contains a Tag key.public String getKey()
A string that contains a Tag key.
Tag key.public Tag withKey(String key)
A string that contains a Tag key.
key - A string that contains a Tag key.public void setValue(String value)
A string that contains a Tag value.
value - A string that contains a Tag value.public String getValue()
A string that contains a Tag value.
Tag value.public Tag withValue(String value)
A string that contains a Tag value.
value - A string that contains a Tag value.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.