Class CfnDeviceDefinitionVersion.DeviceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.greengrass.CfnDeviceDefinitionVersion.DeviceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeviceDefinitionVersion.DeviceProperty>
- Enclosing interface:
CfnDeviceDefinitionVersion.DeviceProperty
@Stability(Stable)
public static final class CfnDeviceDefinitionVersion.DeviceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeviceDefinitionVersion.DeviceProperty>
A builder for
CfnDeviceDefinitionVersion.DeviceProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.certificateArn
(String certificateArn) Sets the value ofCfnDeviceDefinitionVersion.DeviceProperty.getCertificateArn()
Sets the value ofCfnDeviceDefinitionVersion.DeviceProperty.getId()
syncShadow
(Boolean syncShadow) Sets the value ofCfnDeviceDefinitionVersion.DeviceProperty.getSyncShadow()
syncShadow
(IResolvable syncShadow) Sets the value ofCfnDeviceDefinitionVersion.DeviceProperty.getSyncShadow()
Sets the value ofCfnDeviceDefinitionVersion.DeviceProperty.getThingArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
certificateArn
@Stability(Stable) public CfnDeviceDefinitionVersion.DeviceProperty.Builder certificateArn(String certificateArn) Sets the value ofCfnDeviceDefinitionVersion.DeviceProperty.getCertificateArn()
- Parameters:
certificateArn
- The ARN of the device certificate for the device. This parameter is required. This X.509 certificate is used to authenticate the device with AWS IoT and AWS IoT Greengrass services.- Returns:
this
-
id
Sets the value ofCfnDeviceDefinitionVersion.DeviceProperty.getId()
- Parameters:
id
- A descriptive or arbitrary ID for the device. This parameter is required. This value must be unique within the device definition version. Maximum length is 128 characters with pattern[a-zA-Z0-9:_-]+
.- Returns:
this
-
thingArn
@Stability(Stable) public CfnDeviceDefinitionVersion.DeviceProperty.Builder thingArn(String thingArn) Sets the value ofCfnDeviceDefinitionVersion.DeviceProperty.getThingArn()
- Parameters:
thingArn
- The Amazon Resource Name (ARN) of the device, which is an AWS IoT device (thing). This parameter is required.- Returns:
this
-
syncShadow
@Stability(Stable) public CfnDeviceDefinitionVersion.DeviceProperty.Builder syncShadow(Boolean syncShadow) Sets the value ofCfnDeviceDefinitionVersion.DeviceProperty.getSyncShadow()
- Parameters:
syncShadow
- Indicates whether the device's local shadow is synced with the cloud automatically.- Returns:
this
-
syncShadow
@Stability(Stable) public CfnDeviceDefinitionVersion.DeviceProperty.Builder syncShadow(IResolvable syncShadow) Sets the value ofCfnDeviceDefinitionVersion.DeviceProperty.getSyncShadow()
- Parameters:
syncShadow
- Indicates whether the device's local shadow is synced with the cloud automatically.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDeviceDefinitionVersion.DeviceProperty>
- Returns:
- a new instance of
CfnDeviceDefinitionVersion.DeviceProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-