@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AttributePayload extends Object implements Serializable, Cloneable, StructuredPojo
The attribute payload.
Constructor and Description |
---|
AttributePayload() |
Modifier and Type | Method and Description |
---|---|
AttributePayload |
addAttributesEntry(String key,
String value)
Add a single Attributes entry
|
AttributePayload |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
AttributePayload |
clone() |
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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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.
|
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\"}}
{\"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\"}}
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)
public AttributePayload clearAttributesEntries()
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
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 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
.
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(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 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
.
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 String toString()
toString
in class Object
Object.toString()
public AttributePayload clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.