@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Tag extends Object implements Serializable, Cloneable, StructuredPojo
Tags are key-value pairs that can be associated with Step Functions state machines and activities.
An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide, and Controlling Access Using IAM Tags.
Tags may only contain Unicode letters, digits, white space, or these symbols: _ . : / = + - @
.
Constructor and Description |
---|
Tag() |
Modifier and Type | Method and Description |
---|---|
Tag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The key of a tag.
|
String |
getValue()
The value of a tag.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKey(String key)
The key of a tag.
|
void |
setValue(String value)
The value of a tag.
|
String |
toString()
Returns a string representation of this object.
|
Tag |
withKey(String key)
The key of a tag.
|
Tag |
withValue(String value)
The value of a tag.
|
public void setKey(String key)
The key of a tag.
key
- The key of a tag.public String getKey()
The key of a tag.
public Tag withKey(String key)
The key of a tag.
key
- The key of a tag.public void setValue(String value)
The value of a tag.
value
- The value of a tag.public String getValue()
The value of a tag.
public Tag withValue(String value)
The value of a tag.
value
- The value of a tag.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.