@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Tag extends Object implements Serializable, Cloneable, StructuredPojo
A tag is a label consisting of a user-defined key and value. The form for tags is {"Key", "Value"}
| Constructor and Description |
|---|
Tag() |
| Modifier and Type | Method and Description |
|---|---|
Tag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The key portion of a tag.
|
String |
getValue()
The value portion of tag.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setKey(String key)
The key portion of a tag.
|
void |
setValue(String value)
The value portion of tag.
|
String |
toString()
Returns a string representation of this object.
|
Tag |
withKey(String key)
The key portion of a tag.
|
Tag |
withValue(String value)
The value portion of tag.
|
public void setKey(String key)
The key portion of a tag. Tag keys are case sensitive.
key - The key portion of a tag. Tag keys are case sensitive.public String getKey()
The key portion of a tag. Tag keys are case sensitive.
public Tag withKey(String key)
The key portion of a tag. Tag keys are case sensitive.
key - The key portion of a tag. Tag keys are case sensitive.public void setValue(String value)
The value portion of tag. Tag values are case sensitive.
value - The value portion of tag. Tag values are case sensitive.public String getValue()
The value portion of tag. Tag values are case sensitive.
public Tag withValue(String value)
The value portion of tag. Tag values are case sensitive.
value - The value portion of tag. Tag values are case sensitive.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2022. All rights reserved.