@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) |
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; 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\"}}
{\"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
.
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 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
.
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
.
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 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
.
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 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.