@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Tag extends Object implements Serializable, Cloneable, StructuredPojo
A key and value pair.
Constructor and Description |
---|
Tag() |
Modifier and Type | Method and Description |
---|---|
Tag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
A tag key.
|
String |
getValue()
A value assigned to a tag key.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKey(String key)
A tag key.
|
void |
setValue(String value)
A value assigned to a tag key.
|
String |
toString()
Returns a string representation of this object.
|
Tag |
withKey(String key)
A tag key.
|
Tag |
withValue(String value)
A value assigned to a tag key.
|
public void setKey(String key)
A tag key.
key
- A tag key.public String getKey()
A tag key.
public Tag withKey(String key)
A tag key.
key
- A tag key.public void setValue(String value)
A value assigned to a tag key.
value
- A value assigned to a tag key.public String getValue()
A value assigned to a tag key.
public Tag withValue(String value)
A value assigned to a tag key.
value
- A value assigned to a tag key.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.