Class CfnProject.DeviceTemplateProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot1click.CfnProject.DeviceTemplateProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProject.DeviceTemplateProperty>
- Enclosing interface:
- CfnProject.DeviceTemplateProperty
@Stability(Stable)
public static final class CfnProject.DeviceTemplateProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProject.DeviceTemplateProperty>
A builder for
CfnProject.DeviceTemplateProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.callbackOverrides(Object callbackOverrides) Sets the value ofCfnProject.DeviceTemplateProperty.getCallbackOverrides()deviceType(String deviceType) Sets the value ofCfnProject.DeviceTemplateProperty.getDeviceType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
callbackOverrides
@Stability(Stable) public CfnProject.DeviceTemplateProperty.Builder callbackOverrides(Object callbackOverrides) Sets the value ofCfnProject.DeviceTemplateProperty.getCallbackOverrides()- Parameters:
callbackOverrides- An optional AWS Lambda function to invoke instead of the default AWS Lambda function provided by the placement template.- Returns:
this
-
deviceType
Sets the value ofCfnProject.DeviceTemplateProperty.getDeviceType()- Parameters:
deviceType- The device type, which currently must be"button".- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnProject.DeviceTemplateProperty>- Returns:
- a new instance of
CfnProject.DeviceTemplateProperty - Throws:
NullPointerException- if any required attribute was not provided
-