Package com.amazonaws.services.iot.model
Class AttributePayload
- java.lang.Object
-
- com.amazonaws.services.iot.model.AttributePayload
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class AttributePayload extends Object implements Serializable, Cloneable
The attribute payload, a JSON string containing up to three key-value pairs (for example, {\"attributes\":{\"string1\":\"string2\"}}).
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AttributePayload()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 (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\"}}).
-
-
-
Method Detail
-
getAttributes
public Map<String,String> getAttributes()
A JSON string containing up to three key-value pair in JSON format (for example, {\"attributes\":{\"string1\":\"string2\"}}).
- Returns:
- A JSON string containing up to three key-value pair in JSON format (for example, {\"attributes\":{\"string1\":\"string2\"}}).
-
setAttributes
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\"}}).
- Parameters:
attributes
- A JSON string containing up to three key-value pair in JSON format (for example, {\"attributes\":{\"string1\":\"string2\"}}).
-
withAttributes
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\"}}).
- Parameters:
attributes
- A JSON string containing up to three key-value pair in JSON format (for example, {\"attributes\":{\"string1\":\"string2\"}}).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addAttributesEntry
public AttributePayload addAttributesEntry(String key, String value)
-
clearAttributesEntries
public AttributePayload clearAttributesEntries()
Removes all the entries added into Attributes. <p> Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public AttributePayload clone()
-
-