public class Tag extends Object implements Serializable, Cloneable
A tag is a pair of key and value. The allowed characters in keys and values are letters, whitespace, and numbers, representable in UTF-8, and the characters '+', '-', '=', '.', '_', ':', and '/'.
Constructor and Description |
---|
Tag() |
Modifier and Type | Method and Description |
---|---|
Tag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
Tag key, a string.
|
String |
getValue()
Value of the tag key.
|
int |
hashCode() |
void |
setKey(String key)
Tag key, a string.
|
void |
setValue(String value)
Value of the tag key.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Tag |
withKey(String key)
Tag key, a string.
|
Tag |
withValue(String value)
Value of the tag key.
|
public void setKey(String key)
Tag key, a string. The key must not start with "aws:".
key
- Tag key, a string. The key must not start with "aws:".public String getKey()
Tag key, a string. The key must not start with "aws:".
public Tag withKey(String key)
Tag key, a string. The key must not start with "aws:".
key
- Tag key, a string. The key must not start with "aws:".public void setValue(String value)
Value of the tag key.
value
- Value of the tag key.public String getValue()
Value of the tag key.
public Tag withValue(String value)
Value of the tag key.
value
- Value of the tag key.public String toString()
toString
in class Object
Object.toString()
Copyright © 2018. All rights reserved.