@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Tag extends Object implements Serializable, Cloneable, StructuredPojo
A complex data type that contains a tag key and tag value.
Constructor and Description |
---|
Tag() |
Modifier and Type | Method and Description |
---|---|
Tag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
A string that contains a tag key.
|
String |
getValue()
A string that contains an optional tag value.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKey(String key)
A string that contains a tag key.
|
void |
setValue(String value)
A string that contains an optional tag value.
|
String |
toString()
Returns a string representation of this object.
|
Tag |
withKey(String key)
A string that contains a tag key.
|
Tag |
withValue(String value)
A string that contains an optional tag value.
|
public void setKey(String key)
A string that contains a tag key. The string length should be between 1 and 128 characters. Valid characters include a-z, A-Z, 0-9, space, and the special characters _ - . : / = + @.
key
- A string that contains a tag key. The string length should be between 1 and 128 characters. Valid
characters include a-z, A-Z, 0-9, space, and the special characters _ - . : / = + @.public String getKey()
A string that contains a tag key. The string length should be between 1 and 128 characters. Valid characters include a-z, A-Z, 0-9, space, and the special characters _ - . : / = + @.
public Tag withKey(String key)
A string that contains a tag key. The string length should be between 1 and 128 characters. Valid characters include a-z, A-Z, 0-9, space, and the special characters _ - . : / = + @.
key
- A string that contains a tag key. The string length should be between 1 and 128 characters. Valid
characters include a-z, A-Z, 0-9, space, and the special characters _ - . : / = + @.public void setValue(String value)
A string that contains an optional tag value. The string length should be between 0 and 256 characters. Valid characters include a-z, A-Z, 0-9, space, and the special characters _ - . : / = + @.
value
- A string that contains an optional tag value. The string length should be between 0 and 256 characters.
Valid characters include a-z, A-Z, 0-9, space, and the special characters _ - . : / = + @.public String getValue()
A string that contains an optional tag value. The string length should be between 0 and 256 characters. Valid characters include a-z, A-Z, 0-9, space, and the special characters _ - . : / = + @.
public Tag withValue(String value)
A string that contains an optional tag value. The string length should be between 0 and 256 characters. Valid characters include a-z, A-Z, 0-9, space, and the special characters _ - . : / = + @.
value
- A string that contains an optional tag value. The string length should be between 0 and 256 characters.
Valid characters include a-z, A-Z, 0-9, space, and the special characters _ - . : / = + @.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.