public static interface UpdateThingRequest.Builder extends IoTRequest.Builder, CopyableBuilder<UpdateThingRequest.Builder,UpdateThingRequest>
| Modifier and Type | Method and Description |
|---|---|
UpdateThingRequest.Builder |
attributePayload(AttributePayload attributePayload)
A list of thing attributes, a JSON string containing name-value pairs.
|
default UpdateThingRequest.Builder |
attributePayload(Consumer<AttributePayload.Builder> 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 |
requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
Add an optional request override configuration.
|
UpdateThingRequest.Builder |
requestOverrideConfig(Consumer<AwsRequestOverrideConfig.Builder> builderConsumer)
Add an optional request override configuration.
|
UpdateThingRequest.Builder |
thingName(String thingName)
The name of the thing to update.
|
UpdateThingRequest.Builder |
thingTypeName(String thingTypeName)
The name of the thing type.
|
buildrequestOverrideConfigcopyapply, buildUpdateThingRequest.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.
default UpdateThingRequest.Builder attributePayload(Consumer<AttributePayload.Builder> 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.
This is a convenience that creates an instance of theAttributePayload.Builder avoiding the need to
create one manually via AttributePayload.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to attributePayload(AttributePayload).attributePayload - a consumer that will call methods on AttributePayload.BuilderattributePayload(AttributePayload)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.UpdateThingRequest.Builder requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
AwsRequest.BuilderrequestOverrideConfig in interface AwsRequest.BuilderawsRequestOverrideConfig - The override configuration.UpdateThingRequest.Builder requestOverrideConfig(Consumer<AwsRequestOverrideConfig.Builder> builderConsumer)
AwsRequest.BuilderrequestOverrideConfig in interface AwsRequest.BuilderbuilderConsumer - A Consumer to which an empty AwsRequestOverrideConfig.Builder will be given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.