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