public class AttributePayload
extends java.lang.Object
implements java.io.Serializable
The attribute payload.
Constructor and Description |
---|
AttributePayload() |
Modifier and Type | Method and Description |
---|---|
AttributePayload |
addattributesEntry(java.lang.String key,
java.lang.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(java.lang.Object obj) |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
A JSON string containing up to three key-value pair in JSON format.
|
java.lang.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() |
java.lang.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(java.util.Map<java.lang.String,java.lang.String> attributes)
A JSON string containing up to three key-value pair in JSON format.
|
void |
setMerge(java.lang.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. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AttributePayload |
withAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
A JSON string containing up to three key-value pair in JSON format.
|
AttributePayload |
withMerge(java.lang.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 java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.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(java.lang.String key, java.lang.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 java.lang.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
or UpdateThingGroup
.
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
or UpdateThingGroup
.
public java.lang.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
or UpdateThingGroup
.
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
or UpdateThingGroup
.
public void setMerge(java.lang.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
or UpdateThingGroup
.
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
or UpdateThingGroup
.
public AttributePayload withMerge(java.lang.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
or UpdateThingGroup
.
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
or UpdateThingGroup
.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.