@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Tag extends Object implements Serializable, Cloneable, StructuredPojo
A key:value pair associated with an Amazon Web Services resource. The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each Amazon Web Services resource.
Constructor and Description |
---|
Tag() |
Modifier and Type | Method and Description |
---|---|
Tag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The part of the key:value pair that defines a tag.
|
String |
getValue()
The part of the key:value pair that defines a tag.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKey(String key)
The part of the key:value pair that defines a tag.
|
void |
setValue(String value)
The part of the key:value pair that defines a tag.
|
String |
toString()
Returns a string representation of this object.
|
Tag |
withKey(String key)
The part of the key:value pair that defines a tag.
|
Tag |
withValue(String value)
The part of the key:value pair that defines a tag.
|
public void setKey(String key)
The part of the key:value pair that defines a tag. You can use a tag key to describe a category of information, such as "customer." Tag keys are case-sensitive.
key
- The part of the key:value pair that defines a tag. You can use a tag key to describe a category of
information, such as "customer." Tag keys are case-sensitive.public String getKey()
The part of the key:value pair that defines a tag. You can use a tag key to describe a category of information, such as "customer." Tag keys are case-sensitive.
public Tag withKey(String key)
The part of the key:value pair that defines a tag. You can use a tag key to describe a category of information, such as "customer." Tag keys are case-sensitive.
key
- The part of the key:value pair that defines a tag. You can use a tag key to describe a category of
information, such as "customer." Tag keys are case-sensitive.public void setValue(String value)
The part of the key:value pair that defines a tag. You can use a tag value to describe a specific value within a category, such as "companyA" or "companyB." Tag values are case-sensitive.
value
- The part of the key:value pair that defines a tag. You can use a tag value to describe a specific value
within a category, such as "companyA" or "companyB." Tag values are case-sensitive.public String getValue()
The part of the key:value pair that defines a tag. You can use a tag value to describe a specific value within a category, such as "companyA" or "companyB." Tag values are case-sensitive.
public Tag withValue(String value)
The part of the key:value pair that defines a tag. You can use a tag value to describe a specific value within a category, such as "companyA" or "companyB." Tag values are case-sensitive.
value
- The part of the key:value pair that defines a tag. You can use a tag value to describe a specific value
within a category, such as "companyA" or "companyB." Tag values are case-sensitive.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.