@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 AWS resource. In EventBridge, rules support tagging.
| Constructor and Description |
|---|
Tag() |
| Modifier and Type | Method and Description |
|---|---|
Tag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
A string that you can use to assign a value.
|
String |
getValue()
The value for the specified tag key.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setKey(String key)
A string that you can use to assign a value.
|
void |
setValue(String value)
The value for the specified tag key.
|
String |
toString()
Returns a string representation of this object.
|
Tag |
withKey(String key)
A string that you can use to assign a value.
|
Tag |
withValue(String value)
The value for the specified tag key.
|
public void setKey(String key)
A string that you can use to assign a value. The combination of tag keys and values can help you organize and categorize your resources.
key - A string that you can use to assign a value. The combination of tag keys and values can help you organize
and categorize your resources.public String getKey()
A string that you can use to assign a value. The combination of tag keys and values can help you organize and categorize your resources.
public Tag withKey(String key)
A string that you can use to assign a value. The combination of tag keys and values can help you organize and categorize your resources.
key - A string that you can use to assign a value. The combination of tag keys and values can help you organize
and categorize your resources.public void setValue(String value)
The value for the specified tag key.
value - The value for the specified tag key.public String getValue()
The value for the specified tag key.
public Tag withValue(String value)
The value for the specified tag key.
value - The value for the specified tag key.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2020. All rights reserved.