public class AttributePayload extends Object implements Serializable
The attribute payload.
| 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.
|
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.
|
Boolean |
getMerge()
Specifies whether the list of attributes provided in the
AttributePayload is merged with the attributes stored in the
registry, instead of overwriting them. |
int |
hashCode() |
Boolean |
isMerge()
Specifies whether the list of attributes provided in the
AttributePayload is merged with the attributes stored in the
registry, instead of overwriting them. |
void |
setAttributes(Map<String,String> attributes)
A JSON string containing up to three key-value pair in JSON format.
|
void |
setMerge(Boolean merge)
Specifies whether the list of attributes provided in the
AttributePayload is merged with the attributes stored in the
registry, instead of overwriting them. |
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.
|
AttributePayload |
withMerge(Boolean merge)
Specifies whether the list of attributes provided in the
AttributePayload is merged with the attributes stored in the
registry, instead of overwriting them. |
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 Boolean isMerge()
Specifies whether the list of attributes provided in the
AttributePayload is merged with the attributes stored in the
registry, instead of overwriting them.
To remove an attribute, call UpdateThing with an empty
attribute value.
The merge attribute is only valid when calling
UpdateThing.
Specifies whether the list of attributes provided in the
AttributePayload is merged with the attributes
stored in the registry, instead of overwriting them.
To remove an attribute, call UpdateThing with an
empty attribute value.
The merge attribute is only valid when calling
UpdateThing.
public Boolean getMerge()
Specifies whether the list of attributes provided in the
AttributePayload is merged with the attributes stored in the
registry, instead of overwriting them.
To remove an attribute, call UpdateThing with an empty
attribute value.
The merge attribute is only valid when calling
UpdateThing.
Specifies whether the list of attributes provided in the
AttributePayload is merged with the attributes
stored in the registry, instead of overwriting them.
To remove an attribute, call UpdateThing with an
empty attribute value.
The merge attribute is only valid when calling
UpdateThing.
public void setMerge(Boolean merge)
Specifies whether the list of attributes provided in the
AttributePayload is merged with the attributes stored in the
registry, instead of overwriting them.
To remove an attribute, call UpdateThing with an empty
attribute value.
The merge attribute is only valid when calling
UpdateThing.
merge -
Specifies whether the list of attributes provided in the
AttributePayload is merged with the attributes
stored in the registry, instead of overwriting them.
To remove an attribute, call UpdateThing with an
empty attribute value.
The merge attribute is only valid when calling
UpdateThing.
public AttributePayload withMerge(Boolean merge)
Specifies whether the list of attributes provided in the
AttributePayload is merged with the attributes stored in the
registry, instead of overwriting them.
To remove an attribute, call UpdateThing with an empty
attribute value.
The merge attribute is only valid when calling
UpdateThing.
Returns a reference to this object so that method calls can be chained together.
merge -
Specifies whether the list of attributes provided in the
AttributePayload is merged with the attributes
stored in the registry, instead of overwriting them.
To remove an attribute, call UpdateThing with an
empty attribute value.
The merge attribute is only valid when calling
UpdateThing.
public String toString()
toString in class ObjectObject.toString()Copyright © 2017. All rights reserved.