Interface CreateProvisioningTemplateRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateProvisioningTemplateRequest.Builder,
,CreateProvisioningTemplateRequest> IotRequest.Builder
,SdkBuilder<CreateProvisioningTemplateRequest.Builder,
,CreateProvisioningTemplateRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateProvisioningTemplateRequest
-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) The description of the provisioning template.True to enable the provisioning template, otherwise false.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.preProvisioningHook
(Consumer<ProvisioningHook.Builder> preProvisioningHook) Creates a pre-provisioning hook template.preProvisioningHook
(ProvisioningHook preProvisioningHook) Creates a pre-provisioning hook template.provisioningRoleArn
(String provisioningRoleArn) The role ARN for the role associated with the provisioning template.tags
(Collection<Tag> tags) Metadata which can be used to manage the provisioning template.tags
(Consumer<Tag.Builder>... tags) Metadata which can be used to manage the provisioning template.Metadata which can be used to manage the provisioning template.templateBody
(String templateBody) The JSON formatted contents of the provisioning template.templateName
(String templateName) The name of the provisioning template.The type you define in a provisioning template.type
(TemplateType type) The type you define in a provisioning template.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.iot.model.IotRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
templateName
The name of the provisioning template.
- Parameters:
templateName
- The name of the provisioning template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the provisioning template.
- Parameters:
description
- The description of the provisioning template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templateBody
The JSON formatted contents of the provisioning template.
- Parameters:
templateBody
- The JSON formatted contents of the provisioning template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enabled
True to enable the provisioning template, otherwise false.
- Parameters:
enabled
- True to enable the provisioning template, otherwise false.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
provisioningRoleArn
The role ARN for the role associated with the provisioning template. This IoT role grants permission to provision a device.
- Parameters:
provisioningRoleArn
- The role ARN for the role associated with the provisioning template. This IoT role grants permission to provision a device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
preProvisioningHook
Creates a pre-provisioning hook template. Only supports template of type
FLEET_PROVISIONING
. For more information about provisioning template types, see type.- Parameters:
preProvisioningHook
- Creates a pre-provisioning hook template. Only supports template of typeFLEET_PROVISIONING
. For more information about provisioning template types, see type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
preProvisioningHook
default CreateProvisioningTemplateRequest.Builder preProvisioningHook(Consumer<ProvisioningHook.Builder> preProvisioningHook) Creates a pre-provisioning hook template. Only supports template of type
This is a convenience method that creates an instance of theFLEET_PROVISIONING
. For more information about provisioning template types, see type.ProvisioningHook.Builder
avoiding the need to create one manually viaProvisioningHook.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topreProvisioningHook(ProvisioningHook)
.- Parameters:
preProvisioningHook
- a consumer that will call methods onProvisioningHook.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
Metadata which can be used to manage the provisioning template.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
- Parameters:
tags
- Metadata which can be used to manage the provisioning template.For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Metadata which can be used to manage the provisioning template.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
- Parameters:
tags
- Metadata which can be used to manage the provisioning template.For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Metadata which can be used to manage the provisioning template.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
Tag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type you define in a provisioning template. You can create a template with only one type. You can't change the template type after its creation. The default value is
FLEET_PROVISIONING
. For more information about provisioning template, see: Provisioning template.- Parameters:
type
- The type you define in a provisioning template. You can create a template with only one type. You can't change the template type after its creation. The default value isFLEET_PROVISIONING
. For more information about provisioning template, see: Provisioning template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type you define in a provisioning template. You can create a template with only one type. You can't change the template type after its creation. The default value is
FLEET_PROVISIONING
. For more information about provisioning template, see: Provisioning template.- Parameters:
type
- The type you define in a provisioning template. You can create a template with only one type. You can't change the template type after its creation. The default value isFLEET_PROVISIONING
. For more information about provisioning template, see: Provisioning template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateProvisioningTemplateRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateProvisioningTemplateRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-