Class CfnCoreDefinition.CoreDefinitionVersionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.greengrass.CfnCoreDefinition.CoreDefinitionVersionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCoreDefinition.CoreDefinitionVersionProperty>
- Enclosing interface:
CfnCoreDefinition.CoreDefinitionVersionProperty
@Stability(Stable)
public static final class CfnCoreDefinition.CoreDefinitionVersionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCoreDefinition.CoreDefinitionVersionProperty>
A builder for
CfnCoreDefinition.CoreDefinitionVersionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnCoreDefinition.CoreDefinitionVersionProperty.getCores()
cores
(IResolvable cores) Sets the value ofCfnCoreDefinition.CoreDefinitionVersionProperty.getCores()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cores
@Stability(Stable) public CfnCoreDefinition.CoreDefinitionVersionProperty.Builder cores(IResolvable cores) Sets the value ofCfnCoreDefinition.CoreDefinitionVersionProperty.getCores()
- Parameters:
cores
- The Greengrass core in this version. This parameter is required. Currently, theCores
property for a core definition version can contain only one core.- Returns:
this
-
cores
@Stability(Stable) public CfnCoreDefinition.CoreDefinitionVersionProperty.Builder cores(List<? extends Object> cores) Sets the value ofCfnCoreDefinition.CoreDefinitionVersionProperty.getCores()
- Parameters:
cores
- The Greengrass core in this version. This parameter is required. Currently, theCores
property for a core definition version can contain only one core.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCoreDefinition.CoreDefinitionVersionProperty>
- Returns:
- a new instance of
CfnCoreDefinition.CoreDefinitionVersionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-