CopyableBuilder<UpdateThingRequest.Builder,UpdateThingRequest>
, SdkBuilder<UpdateThingRequest.Builder,UpdateThingRequest>
public static interface UpdateThingRequest.Builder extends CopyableBuilder<UpdateThingRequest.Builder,UpdateThingRequest>
Modifier and Type | Method | Description |
---|---|---|
UpdateThingRequest.Builder |
attributePayload(AttributePayload attributePayload) |
A list of thing attributes, a JSON string containing name-value pairs.
|
UpdateThingRequest.Builder |
expectedVersion(Long expectedVersion) |
The expected version of the thing record in the registry.
|
UpdateThingRequest.Builder |
removeThingType(Boolean removeThingType) |
Remove a thing type association.
|
UpdateThingRequest.Builder |
thingName(String thingName) |
The name of the thing to update.
|
UpdateThingRequest.Builder |
thingTypeName(String thingTypeName) |
The name of the thing type.
|
copy
apply, build
UpdateThingRequest.Builder thingName(String thingName)
The name of the thing to update.
thingName
- The name of the thing to update.UpdateThingRequest.Builder thingTypeName(String thingTypeName)
The name of the thing type.
thingTypeName
- The name of the thing type.UpdateThingRequest.Builder attributePayload(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.
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.
UpdateThingRequest.Builder expectedVersion(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
.
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
.UpdateThingRequest.Builder removeThingType(Boolean removeThingType)
Remove a thing type association. If true, the assocation is removed.
removeThingType
- Remove a thing type association. If true, the assocation is removed.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.