@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Tag extends Object implements Serializable, Cloneable, StructuredPojo
A tag that can be assigned to a Voice ID resource.
| Constructor and Description |
|---|
Tag() |
| Modifier and Type | Method and Description |
|---|---|
Tag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The first part of a key:value pair that forms a tag associated with a given resource.
|
String |
getValue()
The second part of a key:value pair that forms a tag associated with a given resource.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setKey(String key)
The first part of a key:value pair that forms a tag associated with a given resource.
|
void |
setValue(String value)
The second part of a key:value pair that forms a tag associated with a given resource.
|
String |
toString()
Returns a string representation of this object.
|
Tag |
withKey(String key)
The first part of a key:value pair that forms a tag associated with a given resource.
|
Tag |
withValue(String value)
The second part of a key:value pair that forms a tag associated with a given resource.
|
public void setKey(String key)
The first part of a key:value pair that forms a tag associated with a given resource. For example, in the tag ‘Department’:’Sales’, the key is 'Department'.
key - The first part of a key:value pair that forms a tag associated with a given resource. For example, in the
tag ‘Department’:’Sales’, the key is 'Department'.public String getKey()
The first part of a key:value pair that forms a tag associated with a given resource. For example, in the tag ‘Department’:’Sales’, the key is 'Department'.
public Tag withKey(String key)
The first part of a key:value pair that forms a tag associated with a given resource. For example, in the tag ‘Department’:’Sales’, the key is 'Department'.
key - The first part of a key:value pair that forms a tag associated with a given resource. For example, in the
tag ‘Department’:’Sales’, the key is 'Department'.public void setValue(String value)
The second part of a key:value pair that forms a tag associated with a given resource. For example, in the tag ‘Department’:’Sales’, the value is 'Sales'.
value - The second part of a key:value pair that forms a tag associated with a given resource. For example, in the
tag ‘Department’:’Sales’, the value is 'Sales'.public String getValue()
The second part of a key:value pair that forms a tag associated with a given resource. For example, in the tag ‘Department’:’Sales’, the value is 'Sales'.
public Tag withValue(String value)
The second part of a key:value pair that forms a tag associated with a given resource. For example, in the tag ‘Department’:’Sales’, the value is 'Sales'.
value - The second part of a key:value pair that forms a tag associated with a given resource. For example, in the
tag ‘Department’:’Sales’, the value is 'Sales'.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2021. All rights reserved.