Interface CreateThingRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateThingRequest.Builder,,CreateThingRequest> IotRequest.Builder,SdkBuilder<CreateThingRequest.Builder,,CreateThingRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateThingRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateThingRequest.BuilderattributePayload(Consumer<AttributePayload.Builder> attributePayload) The attribute payload, which consists of up to three name/value pairs in a JSON document.attributePayload(AttributePayload attributePayload) The attribute payload, which consists of up to three name/value pairs in a JSON document.billingGroupName(String billingGroupName) The name of the billing group the thing will be added to.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The name of the thing to create.thingTypeName(String thingTypeName) The name of the thing type associated with the new thing.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 create.
You can't change a thing's name after you create it. 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 create.You can't change a thing's name after you create it. 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 associated with the new thing.
- Parameters:
thingTypeName- The name of the thing type associated with the new thing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributePayload
The attribute payload, which consists of up to three name/value pairs in a JSON document. For example:
{\"attributes\":{\"string1\":\"string2\"}}- Parameters:
attributePayload- The attribute payload, which consists of up to three name/value pairs in a JSON document. For example:{\"attributes\":{\"string1\":\"string2\"}}- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributePayload
default CreateThingRequest.Builder attributePayload(Consumer<AttributePayload.Builder> attributePayload) The attribute payload, which consists of up to three name/value pairs in a JSON document. For example:
This is a convenience method that creates an instance of the{\"attributes\":{\"string1\":\"string2\"}}AttributePayload.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:
-
billingGroupName
The name of the billing group the thing will be added to.
- Parameters:
billingGroupName- The name of the billing group the thing will be added to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateThingRequest.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
CreateThingRequest.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.
-