@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Tag extends Object implements Serializable, Cloneable
A complex type that contains 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
Tag key. |
String |
getValue()
A string that contains an optional
Tag value. |
int |
hashCode() |
void |
setKey(String key)
A string that contains
Tag key. |
void |
setValue(String value)
A string that contains an optional
Tag value. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Tag |
withKey(String key)
A string that contains
Tag key. |
Tag |
withValue(String value)
A string that contains an optional
Tag value. |
public void setKey(String key)
A string that contains 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 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 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 _ - . : / = + @.
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 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 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 _ - . : / = + @.
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 ObjectObject.toString()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.