@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Tag extends Object implements Serializable, Cloneable, StructuredPojo
Metadata assigned to the stream, consisting of a key-value pair.
| Constructor and Description |
|---|
Tag() |
| Modifier and Type | Method and Description |
|---|---|
Tag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
A unique identifier for the tag.
|
String |
getValue()
An optional string, typically used to describe or define the tag.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setKey(String key)
A unique identifier for the tag.
|
void |
setValue(String value)
An optional string, typically used to describe or define the tag.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Tag |
withKey(String key)
A unique identifier for the tag.
|
Tag |
withValue(String value)
An optional string, typically used to describe or define the tag.
|
public void setKey(String key)
A unique identifier for the tag. Maximum length: 128 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
key - A unique identifier for the tag. Maximum length: 128 characters. Valid characters: Unicode letters,
digits, white space, _ . / = + - % @public String getKey()
A unique identifier for the tag. Maximum length: 128 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
public Tag withKey(String key)
A unique identifier for the tag. Maximum length: 128 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
key - A unique identifier for the tag. Maximum length: 128 characters. Valid characters: Unicode letters,
digits, white space, _ . / = + - % @public void setValue(String value)
An optional string, typically used to describe or define the tag. Maximum length: 256 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
value - An optional string, typically used to describe or define the tag. Maximum length: 256 characters. Valid
characters: Unicode letters, digits, white space, _ . / = + - % @public String getValue()
An optional string, typically used to describe or define the tag. Maximum length: 256 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
public Tag withValue(String value)
An optional string, typically used to describe or define the tag. Maximum length: 256 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
value - An optional string, typically used to describe or define the tag. Maximum length: 256 characters. Valid
characters: Unicode letters, digits, white space, _ . / = + - % @public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.