Class CfnProvisioningTemplateProps.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnProvisioningTemplateProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProvisioningTemplateProps>
- Enclosing interface:
CfnProvisioningTemplateProps
@Stability(Stable)
public static final class CfnProvisioningTemplateProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProvisioningTemplateProps>
A builder for
CfnProvisioningTemplateProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnProvisioningTemplateProps.getDescription()
Sets the value ofCfnProvisioningTemplateProps.getEnabled()
enabled
(IResolvable enabled) Sets the value ofCfnProvisioningTemplateProps.getEnabled()
preProvisioningHook
(IResolvable preProvisioningHook) Sets the value ofCfnProvisioningTemplateProps.getPreProvisioningHook()
preProvisioningHook
(CfnProvisioningTemplate.ProvisioningHookProperty preProvisioningHook) Sets the value ofCfnProvisioningTemplateProps.getPreProvisioningHook()
provisioningRoleArn
(String provisioningRoleArn) Sets the value ofCfnProvisioningTemplateProps.getProvisioningRoleArn()
Sets the value ofCfnProvisioningTemplateProps.getTags()
templateBody
(String templateBody) Sets the value ofCfnProvisioningTemplateProps.getTemplateBody()
templateName
(String templateName) Sets the value ofCfnProvisioningTemplateProps.getTemplateName()
templateType
(String templateType) Sets the value ofCfnProvisioningTemplateProps.getTemplateType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
provisioningRoleArn
@Stability(Stable) public CfnProvisioningTemplateProps.Builder provisioningRoleArn(String provisioningRoleArn) Sets the value ofCfnProvisioningTemplateProps.getProvisioningRoleArn()
- Parameters:
provisioningRoleArn
- The role ARN for the role associated with the fleet provisioning template. This parameter is required. This IoT role grants permission to provision a device.- Returns:
this
-
templateBody
Sets the value ofCfnProvisioningTemplateProps.getTemplateBody()
- Parameters:
templateBody
- The JSON formatted contents of the fleet provisioning template version. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnProvisioningTemplateProps.getDescription()
- Parameters:
description
- The description of the fleet provisioning template.- Returns:
this
-
enabled
Sets the value ofCfnProvisioningTemplateProps.getEnabled()
- Parameters:
enabled
- True to enable the fleet provisioning template, otherwise false.- Returns:
this
-
enabled
Sets the value ofCfnProvisioningTemplateProps.getEnabled()
- Parameters:
enabled
- True to enable the fleet provisioning template, otherwise false.- Returns:
this
-
preProvisioningHook
@Stability(Stable) public CfnProvisioningTemplateProps.Builder preProvisioningHook(IResolvable preProvisioningHook) Sets the value ofCfnProvisioningTemplateProps.getPreProvisioningHook()
- Parameters:
preProvisioningHook
- Creates a pre-provisioning hook template.- Returns:
this
-
preProvisioningHook
@Stability(Stable) public CfnProvisioningTemplateProps.Builder preProvisioningHook(CfnProvisioningTemplate.ProvisioningHookProperty preProvisioningHook) Sets the value ofCfnProvisioningTemplateProps.getPreProvisioningHook()
- Parameters:
preProvisioningHook
- Creates a pre-provisioning hook template.- Returns:
this
-
tags
Sets the value ofCfnProvisioningTemplateProps.getTags()
- Parameters:
tags
- Metadata that can be used to manage the fleet provisioning template.- Returns:
this
-
templateName
Sets the value ofCfnProvisioningTemplateProps.getTemplateName()
- Parameters:
templateName
- The name of the fleet provisioning template.- Returns:
this
-
templateType
Sets the value ofCfnProvisioningTemplateProps.getTemplateType()
- Parameters:
templateType
- The type of the provisioning template.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnProvisioningTemplateProps>
- Returns:
- a new instance of
CfnProvisioningTemplateProps
- Throws:
NullPointerException
- if any required attribute was not provided
-