public class Tag extends Object implements Serializable, Cloneable
| 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)
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()
public Tag withKey(String key)
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)
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()
public Tag withValue(String value)
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 © 2016. All rights reserved.