public class Tag extends Object implements Serializable
Metadata assigned to the stream, consisting of a key-value pair.
Constructor and Description |
---|
Tag() |
Modifier and Type | Method and Description |
---|---|
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 |
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 String getKey()
A unique identifier for the tag. Maximum length: 128 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
Constraints:
Length: 1 - 128
A unique identifier for the tag. Maximum length: 128 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
public void setKey(String key)
A unique identifier for the tag. Maximum length: 128 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
Constraints:
Length: 1 - 128
key
- 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, _ . / = + - % @
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
key
- A unique identifier for the tag. Maximum length: 128 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, _ . / = + - % @
Constraints:
Length: 0 - 256
An optional string, typically used to describe or define the tag. Maximum length: 256 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, _ . / = + - % @
Constraints:
Length: 0 - 256
value
- 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, _ . / = + - % @
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 256
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 Object
Object.toString()
Copyright © 2017. All rights reserved.