Class CfnCoreDefinition.CoreProperty.Builder
java.lang.Object
software.amazon.awscdk.services.greengrass.CfnCoreDefinition.CoreProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCoreDefinition.CoreProperty>
- Enclosing interface:
CfnCoreDefinition.CoreProperty
@Stability(Stable)
public static final class CfnCoreDefinition.CoreProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCoreDefinition.CoreProperty>
A builder for
CfnCoreDefinition.CoreProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.certificateArn
(String certificateArn) Sets the value ofCfnCoreDefinition.CoreProperty.getCertificateArn()
Sets the value ofCfnCoreDefinition.CoreProperty.getId()
syncShadow
(Boolean syncShadow) Sets the value ofCfnCoreDefinition.CoreProperty.getSyncShadow()
syncShadow
(IResolvable syncShadow) Sets the value ofCfnCoreDefinition.CoreProperty.getSyncShadow()
Sets the value ofCfnCoreDefinition.CoreProperty.getThingArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
certificateArn
@Stability(Stable) public CfnCoreDefinition.CoreProperty.Builder certificateArn(String certificateArn) Sets the value ofCfnCoreDefinition.CoreProperty.getCertificateArn()
- Parameters:
certificateArn
- The Amazon Resource Name (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 ofCfnCoreDefinition.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 ofCfnCoreDefinition.CoreProperty.getThingArn()
- Parameters:
thingArn
- The ARN of the core, which is an AWS IoT device (thing). This parameter is required.- Returns:
this
-
syncShadow
Sets the value ofCfnCoreDefinition.CoreProperty.getSyncShadow()
- Parameters:
syncShadow
- Indicates whether the core's local shadow is synced with the cloud automatically. The default is false.- Returns:
this
-
syncShadow
Sets the value ofCfnCoreDefinition.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<CfnCoreDefinition.CoreProperty>
- Returns:
- a new instance of
CfnCoreDefinition.CoreProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-