Interface AttributePayload.Builder

    • Method Detail

      • attributes

        AttributePayload.Builder attributes​(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.
      • merge

        AttributePayload.Builder merge​(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.

        Parameters:
        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:
        Returns a reference to this object so that method calls can be chained together.