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:
  • Constructor Details

    • AttributePayload

      public AttributePayload()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public AttributePayload clone()
      Overrides:
      clone in class Object