@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Tag extends Object implements Serializable, Cloneable, StructuredPojo
A label that you can assign to a Amazon GameLift resource.
Learn more
Tagging Amazon Web Services Resources in the Amazon Web Services General Reference
Amazon Web Services Tagging Strategies
Related actions
Constructor and Description |
---|
Tag() |
Modifier and Type | Method and Description |
---|---|
Tag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The key for a developer-defined key value pair for tagging an Amazon Web Services resource.
|
String |
getValue()
The value for a developer-defined key value pair for tagging an Amazon Web Services resource.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKey(String key)
The key for a developer-defined key value pair for tagging an Amazon Web Services resource.
|
void |
setValue(String value)
The value for a developer-defined key value pair for tagging an Amazon Web Services resource.
|
String |
toString()
Returns a string representation of this object.
|
Tag |
withKey(String key)
The key for a developer-defined key value pair for tagging an Amazon Web Services resource.
|
Tag |
withValue(String value)
The value for a developer-defined key value pair for tagging an Amazon Web Services resource.
|
public void setKey(String key)
The key for a developer-defined key value pair for tagging an Amazon Web Services resource.
key
- The key for a developer-defined key value pair for tagging an Amazon Web Services resource.public String getKey()
The key for a developer-defined key value pair for tagging an Amazon Web Services resource.
public Tag withKey(String key)
The key for a developer-defined key value pair for tagging an Amazon Web Services resource.
key
- The key for a developer-defined key value pair for tagging an Amazon Web Services resource.public void setValue(String value)
The value for a developer-defined key value pair for tagging an Amazon Web Services resource.
value
- The value for a developer-defined key value pair for tagging an Amazon Web Services resource.public String getValue()
The value for a developer-defined key value pair for tagging an Amazon Web Services resource.
public Tag withValue(String value)
The value for a developer-defined key value pair for tagging an Amazon Web Services resource.
value
- The value for a developer-defined key value pair for tagging an Amazon Web Services resource.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.