@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Tag extends Object implements Serializable, Cloneable, StructuredPojo
A key value pair for a resource tag.
| Constructor and Description |
|---|
Tag() |
| Modifier and Type | Method and Description |
|---|---|
Tag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The
TagKey, the name of the tag. |
String |
getValue()
The
TagValue, the value assigned to the corresponding tag key. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setKey(String key)
The
TagKey, the name of the tag. |
void |
setValue(String value)
The
TagValue, the value assigned to the corresponding tag key. |
String |
toString()
Returns a string representation of this object.
|
Tag |
withKey(String key)
The
TagKey, the name of the tag. |
Tag |
withValue(String value)
The
TagValue, the value assigned to the corresponding tag key. |
public void setKey(String key)
The TagKey, the name of the tag. Tag keys must be unique for the domain to which they are attached.
key - The TagKey, the name of the tag. Tag keys must be unique for the domain to which they are
attached.public String getKey()
The TagKey, the name of the tag. Tag keys must be unique for the domain to which they are attached.
TagKey, the name of the tag. Tag keys must be unique for the domain to which they are
attached.public Tag withKey(String key)
The TagKey, the name of the tag. Tag keys must be unique for the domain to which they are attached.
key - The TagKey, the name of the tag. Tag keys must be unique for the domain to which they are
attached.public void setValue(String value)
The TagValue, the value assigned to the corresponding tag key. Tag values can be null and don't have
to be unique in a tag set. For example, you can have a key value pair in a tag set of
project : Trinity and cost-center : Trinity
value - The TagValue, the value assigned to the corresponding tag key. Tag values can be null and
don't have to be unique in a tag set. For example, you can have a key value pair in a tag set of
project : Trinity and cost-center : Trinitypublic String getValue()
The TagValue, the value assigned to the corresponding tag key. Tag values can be null and don't have
to be unique in a tag set. For example, you can have a key value pair in a tag set of
project : Trinity and cost-center : Trinity
TagValue, the value assigned to the corresponding tag key. Tag values can be null and
don't have to be unique in a tag set. For example, you can have a key value pair in a tag set of
project : Trinity and cost-center : Trinitypublic Tag withValue(String value)
The TagValue, the value assigned to the corresponding tag key. Tag values can be null and don't have
to be unique in a tag set. For example, you can have a key value pair in a tag set of
project : Trinity and cost-center : Trinity
value - The TagValue, the value assigned to the corresponding tag key. Tag values can be null and
don't have to be unique in a tag set. For example, you can have a key value pair in a tag set of
project : Trinity and cost-center : Trinitypublic String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2022. All rights reserved.