public static final class CfnDeviceDefinition.DeviceProperty.Builder
extends java.lang.Object
CfnDeviceDefinition.DeviceProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnDeviceDefinition.DeviceProperty |
build()
Builds the configured instance.
|
CfnDeviceDefinition.DeviceProperty.Builder |
certificateArn(java.lang.String certificateArn)
Sets the value of
CfnDeviceDefinition.DeviceProperty.getCertificateArn() |
CfnDeviceDefinition.DeviceProperty.Builder |
id(java.lang.String id)
Sets the value of
CfnDeviceDefinition.DeviceProperty.getId() |
CfnDeviceDefinition.DeviceProperty.Builder |
syncShadow(java.lang.Boolean syncShadow)
Sets the value of
CfnDeviceDefinition.DeviceProperty.getSyncShadow() |
CfnDeviceDefinition.DeviceProperty.Builder |
syncShadow(IResolvable syncShadow)
Sets the value of
CfnDeviceDefinition.DeviceProperty.getSyncShadow() |
CfnDeviceDefinition.DeviceProperty.Builder |
thingArn(java.lang.String thingArn)
Sets the value of
CfnDeviceDefinition.DeviceProperty.getThingArn() |
public CfnDeviceDefinition.DeviceProperty.Builder certificateArn(java.lang.String certificateArn)
CfnDeviceDefinition.DeviceProperty.getCertificateArn()
certificateArn
- The Amazon Resource Name (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.this
public CfnDeviceDefinition.DeviceProperty.Builder id(java.lang.String id)
CfnDeviceDefinition.DeviceProperty.getId()
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:_-]+
.this
public CfnDeviceDefinition.DeviceProperty.Builder thingArn(java.lang.String thingArn)
CfnDeviceDefinition.DeviceProperty.getThingArn()
thingArn
- The ARN of the device, which is an AWS IoT device (thing). This parameter is required.this
public CfnDeviceDefinition.DeviceProperty.Builder syncShadow(java.lang.Boolean syncShadow)
CfnDeviceDefinition.DeviceProperty.getSyncShadow()
syncShadow
- Indicates whether the device's local shadow is synced with the cloud automatically.this
public CfnDeviceDefinition.DeviceProperty.Builder syncShadow(IResolvable syncShadow)
CfnDeviceDefinition.DeviceProperty.getSyncShadow()
syncShadow
- Indicates whether the device's local shadow is synced with the cloud automatically.this
public CfnDeviceDefinition.DeviceProperty build()
CfnDeviceDefinition.DeviceProperty
java.lang.NullPointerException
- if any required attribute was not provided