Class UpdateThingRequest

    • Method Detail

      • thingName

        public final String thingName()

        The name of the thing to update.

        You can't change a thing's name. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.

        Returns:
        The name of the thing to update.

        You can't change a thing's name. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.

      • thingTypeName

        public final String thingTypeName()

        The name of the thing type.

        Returns:
        The name of the thing type.
      • attributePayload

        public final AttributePayload attributePayload()

        A list of thing attributes, a JSON string containing name-value pairs. For example:

        {\"attributes\":{\"name1\":\"value2\"}}

        This data is used to add new attributes or update existing attributes.

        Returns:
        A list of thing attributes, a JSON string containing name-value pairs. For example:

        {\"attributes\":{\"name1\":\"value2\"}}

        This data is used to add new attributes or update existing attributes.

      • expectedVersion

        public final Long expectedVersion()

        The expected version of the thing record in the registry. If the version of the record in the registry does not match the expected version specified in the request, the UpdateThing request is rejected with a VersionConflictException.

        Returns:
        The expected version of the thing record in the registry. If the version of the record in the registry does not match the expected version specified in the request, the UpdateThing request is rejected with a VersionConflictException.
      • removeThingType

        public final Boolean removeThingType()

        Remove a thing type association. If true, the association is removed.

        Returns:
        Remove a thing type association. If true, the association is removed.
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object