public static interface CreateThingRequest.Builder extends IotRequest.Builder, SdkPojo, CopyableBuilder<CreateThingRequest.Builder,CreateThingRequest>
Modifier and Type | Method and Description |
---|---|
CreateThingRequest.Builder |
attributePayload(AttributePayload attributePayload)
The attribute payload, which consists of up to three name/value pairs in a JSON document.
|
default CreateThingRequest.Builder |
attributePayload(Consumer<AttributePayload.Builder> attributePayload)
The attribute payload, which consists of up to three name/value pairs in a JSON document.
|
CreateThingRequest.Builder |
billingGroupName(String billingGroupName)
The name of the billing group the thing will be added to.
|
CreateThingRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
CreateThingRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
CreateThingRequest.Builder |
thingName(String thingName)
The name of the thing to create.
|
CreateThingRequest.Builder |
thingTypeName(String thingTypeName)
The name of the thing type associated with the new thing.
|
build
overrideConfiguration
equalsBySdkFields, sdkFields
copy
applyMutation, build
CreateThingRequest.Builder thingName(String 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.
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.
CreateThingRequest.Builder thingTypeName(String thingTypeName)
The name of the thing type associated with the new thing.
thingTypeName
- The name of the thing type associated with the new thing.CreateThingRequest.Builder attributePayload(AttributePayload attributePayload)
The attribute payload, which consists of up to three name/value pairs in a JSON document. For example:
{\"attributes\":{\"string1\":\"string2\"}}
attributePayload
- The attribute payload, which consists of up to three name/value pairs in a JSON document. For
example:
{\"attributes\":{\"string1\":\"string2\"}}
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:
{\"attributes\":{\"string1\":\"string2\"}}
AttributePayload.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)
CreateThingRequest.Builder billingGroupName(String billingGroupName)
The name of the billing group the thing will be added to.
billingGroupName
- The name of the billing group the thing will be added to.CreateThingRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration
in interface AwsRequest.Builder
CreateThingRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration
in interface AwsRequest.Builder
Copyright © 2023. All rights reserved.