Class CfnDevice.Builder

java.lang.Object
software.amazon.awscdk.services.iot1click.CfnDevice.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDevice>
Enclosing class:
CfnDevice

@Stability(Stable) public static final class CfnDevice.Builder extends Object implements software.amazon.jsii.Builder<CfnDevice>
A fluent builder for CfnDevice.
  • Method Details

    • create

      @Stability(Stable) public static CfnDevice.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnDevice.Builder.
    • deviceId

      @Stability(Stable) public CfnDevice.Builder deviceId(String deviceId)
      The ID of the device, such as G030PX0312744DWM .

      Parameters:
      deviceId - The ID of the device, such as G030PX0312744DWM . This parameter is required.
      Returns:
      this
    • enabled

      @Stability(Stable) public CfnDevice.Builder enabled(Boolean enabled)
      A Boolean value indicating whether the device is enabled ( true ) or not ( false ).

      Parameters:
      enabled - A Boolean value indicating whether the device is enabled ( true ) or not ( false ). This parameter is required.
      Returns:
      this
    • enabled

      @Stability(Stable) public CfnDevice.Builder enabled(IResolvable enabled)
      A Boolean value indicating whether the device is enabled ( true ) or not ( false ).

      Parameters:
      enabled - A Boolean value indicating whether the device is enabled ( true ) or not ( false ). This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnDevice build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnDevice>
      Returns:
      a newly built instance of CfnDevice.