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