public class Tag extends Object implements Serializable
The list of tags to be added to the specified topic.
| Constructor and Description |
|---|
Tag() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getKey()
The required key portion of the tag.
|
String |
getValue()
The optional value portion of the tag.
|
int |
hashCode() |
void |
setKey(String key)
The required key portion of the tag.
|
void |
setValue(String value)
The optional value portion of the tag.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Tag |
withKey(String key)
The required key portion of the tag.
|
Tag |
withValue(String value)
The optional value portion of the tag.
|
public String getKey()
The required key portion of the tag.
Constraints:
Length: 1 - 128
The required key portion of the tag.
public void setKey(String key)
The required key portion of the tag.
Constraints:
Length: 1 - 128
key - The required key portion of the tag.
public Tag withKey(String key)
The required key portion of the tag.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
key - The required key portion of the tag.
public String getValue()
The optional value portion of the tag.
Constraints:
Length: 0 - 256
The optional value portion of the tag.
public void setValue(String value)
The optional value portion of the tag.
Constraints:
Length: 0 - 256
value - The optional value portion of the tag.
public Tag withValue(String value)
The optional value portion of the tag.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 256
value - The optional value portion of the tag.
public String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.