public class AttributePayload extends Object implements Serializable
The attribute payload, a JSON string containing up to three key-value pairs (for example, {\"attributes\":{\"string1\":\"string2\"}}).
| Constructor and Description |
|---|
AttributePayload() |
| Modifier and Type | Method and Description |
|---|---|
AttributePayload |
addAttributesEntry(String key,
String value)
A JSON string containing up to three key-value pair in JSON format
(for example, {\"attributes\":{\"string1\":\"string2\"}}).
|
AttributePayload |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
boolean |
equals(Object obj) |
Map<String,String> |
getAttributes()
A JSON string containing up to three key-value pair in JSON format
(for example, {\"attributes\":{\"string1\":\"string2\"}}).
|
int |
hashCode() |
void |
setAttributes(Map<String,String> attributes)
A JSON string containing up to three key-value pair in JSON format
(for example, {\"attributes\":{\"string1\":\"string2\"}}).
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AttributePayload |
withAttributes(Map<String,String> attributes)
A JSON string containing up to three key-value pair in JSON format
(for example, {\"attributes\":{\"string1\":\"string2\"}}).
|
public Map<String,String> getAttributes()
public void setAttributes(Map<String,String> attributes)
attributes - A JSON string containing up to three key-value pair in JSON format
(for example, {\"attributes\":{\"string1\":\"string2\"}}).public AttributePayload withAttributes(Map<String,String> attributes)
Returns a reference to this object so that method calls can be chained together.
attributes - A JSON string containing up to three key-value pair in JSON format
(for example, {\"attributes\":{\"string1\":\"string2\"}}).public AttributePayload addAttributesEntry(String key, String value)
The method adds a new key-value pair into Attributes parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into Attributes.value - The corresponding value of the entry to be added into Attributes.public AttributePayload clearAttributesEntries()
Returns a reference to this object so that method calls can be chained together.
public String toString()
toString in class ObjectObject.toString()Copyright © 2016. All rights reserved.