public static interface UpdateThingRequest.Builder extends IotRequest.Builder, SdkPojo, 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 |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
UpdateThingRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
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.
|
build
overrideConfiguration
copy
applyMutation, 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.
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.Builder
attributePayload(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 association is removed.
removeThingType
- Remove a thing type association. If true, the association is removed.UpdateThingRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.UpdateThingRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.