Class CfnDeviceProps.Builder
java.lang.Object
software.amazon.awscdk.services.iot1click.CfnDeviceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeviceProps>
- Enclosing interface:
CfnDeviceProps
@Stability(Stable)
public static final class CfnDeviceProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeviceProps>
A builder for
CfnDeviceProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnDeviceProps.getDeviceId()
Sets the value ofCfnDeviceProps.getEnabled()
enabled
(IResolvable enabled) Sets the value ofCfnDeviceProps.getEnabled()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deviceId
Sets the value ofCfnDeviceProps.getDeviceId()
- Parameters:
deviceId
- The ID of the device, such asG030PX0312744DWM
. This parameter is required.- Returns:
this
-
enabled
Sets the value ofCfnDeviceProps.getEnabled()
- Parameters:
enabled
- A Boolean value indicating whether the device is enabled (true
) or not (false
). This parameter is required.- Returns:
this
-
enabled
Sets the value ofCfnDeviceProps.getEnabled()
- Parameters:
enabled
- A Boolean value indicating whether the device is enabled (true
) or not (false
). This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDeviceProps>
- Returns:
- a new instance of
CfnDeviceProps
- Throws:
NullPointerException
- if any required attribute was not provided
-