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()
A JSON string containing up to three key-value pair in JSON format (for example, {\"attributes\":{\"string1\":\"string2\"}}).
A JSON string containing up to three key-value pair in JSON format (for example, {\"attributes\":{\"string1\":\"string2\"}}).
public void setAttributes(Map<String,String> attributes)
A JSON string containing up to three key-value pair in JSON format (for example, {\"attributes\":{\"string1\":\"string2\"}}).
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)
A JSON string containing up to three key-value pair in JSON format (for example, {\"attributes\":{\"string1\":\"string2\"}}).
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)
A JSON string containing up to three key-value pair in JSON format (for example, {\"attributes\":{\"string1\":\"string2\"}}).
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 © 2017. All rights reserved.