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