Interface UpdateThingRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateThingRequest.Builder,,UpdateThingRequest> IotRequest.Builder,SdkBuilder<UpdateThingRequest.Builder,,UpdateThingRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateThingRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault UpdateThingRequest.BuilderattributePayload(Consumer<AttributePayload.Builder> attributePayload) A list of thing attributes, a JSON string containing name-value pairs.attributePayload(AttributePayload attributePayload) A list of thing attributes, a JSON string containing name-value pairs.expectedVersion(Long expectedVersion) The expected version of the thing record in the registry.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.removeThingType(Boolean removeThingType) Remove a thing type association.The name of the thing to update.thingTypeName(String thingTypeName) The name of the thing type.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.iot.model.IotRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
thingTypeName
The name of the thing type.
- Parameters:
thingTypeName- The name of the thing type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
attributePayload
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 method that creates an instance of theAttributePayload.Builderavoiding the need to create one manually viaAttributePayload.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toattributePayload(AttributePayload).- Parameters:
attributePayload- a consumer that will call methods onAttributePayload.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
UpdateThingrequest is rejected with aVersionConflictException.- Parameters:
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, theUpdateThingrequest is rejected with aVersionConflictException.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
removeThingType
Remove a thing type association. If true, the association is removed.
- Parameters:
removeThingType- Remove a thing type association. If true, the association is removed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateThingRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateThingRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-