@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 servers, users, and roles. A tag key can take more than one
value. For example, to group servers 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()
The name assigned to the tag that you create.
|
String |
getValue()
Contains one or more values that you assigned to the key name you create.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setKey(String key)
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 you create.
|
String |
toString()
Returns a string representation of this object.
|
Tag |
withKey(String key)
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 you create.
|
public void setKey(String key)
The name assigned to the tag that you create.
key - The name assigned to the tag that you create.public String getKey()
The name assigned to the tag that you create.
public Tag withKey(String key)
The name assigned to the tag that you create.
key - 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 you create.
value - Contains one or more values that you assigned to the key name you create.public String getValue()
Contains one or more values that you assigned to the key name you create.
public Tag withValue(String value)
Contains one or more values that you assigned to the key name you create.
value - Contains one or more values that you assigned to the key name you create.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2024. All rights reserved.