Class AttributePayload

    • Constructor Detail

      • AttributePayload

        public AttributePayload()
    • 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.
      • 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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object