@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Tag extends Object implements Serializable, Cloneable, StructuredPojo
Creates a key-value pair for a specific resource. Tags are metadata that you can use to search for and group a
resource for various purposes. You can apply tags to capabilities, partnerships, profiles and transformers. A tag key
can take more than one value. For example, to group capabilities for accounting purposes, you might create a tag
called Group
and assign the values Research
and Accounting
to that group.
Constructor and Description |
---|
Tag() |
Modifier and Type | Method and Description |
---|---|
Tag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
Specifies the name assigned to the tag that you create.
|
String |
getValue()
Contains one or more values that you assigned to the key name that you create.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKey(String key)
Specifies the name assigned to the tag that you create.
|
void |
setValue(String value)
Contains one or more values that you assigned to the key name that you create.
|
String |
toString()
Returns a string representation of this object.
|
Tag |
withKey(String key)
Specifies the name assigned to the tag that you create.
|
Tag |
withValue(String value)
Contains one or more values that you assigned to the key name that you create.
|
public void setKey(String key)
Specifies the name assigned to the tag that you create.
key
- Specifies the name assigned to the tag that you create.public String getKey()
Specifies the name assigned to the tag that you create.
public Tag withKey(String key)
Specifies the name assigned to the tag that you create.
key
- Specifies the name assigned to the tag that you create.public void setValue(String value)
Contains one or more values that you assigned to the key name that you create.
value
- Contains one or more values that you assigned to the key name that you create.public String getValue()
Contains one or more values that you assigned to the key name that you create.
public Tag withValue(String value)
Contains one or more values that you assigned to the key name that you create.
value
- Contains one or more values that you assigned to the key name that you create.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.