Class CfnClusterPropsMixin.ClusterCapacityRequirementsProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnClusterPropsMixin.ClusterCapacityRequirementsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterPropsMixin.ClusterCapacityRequirementsProperty>
- Enclosing interface:
CfnClusterPropsMixin.ClusterCapacityRequirementsProperty
@Stability(Stable)
public static final class CfnClusterPropsMixin.ClusterCapacityRequirementsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClusterPropsMixin.ClusterCapacityRequirementsProperty>
A builder for
CfnClusterPropsMixin.ClusterCapacityRequirementsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnClusterPropsMixin.ClusterCapacityRequirementsProperty.getOnDemand()Sets the value ofCfnClusterPropsMixin.ClusterCapacityRequirementsProperty.getSpot()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
onDemand
@Stability(Stable) public CfnClusterPropsMixin.ClusterCapacityRequirementsProperty.Builder onDemand(Object onDemand) Sets the value ofCfnClusterPropsMixin.ClusterCapacityRequirementsProperty.getOnDemand()- Parameters:
onDemand- Configuration options specific to On-Demand instances.- Returns:
this
-
spot
@Stability(Stable) public CfnClusterPropsMixin.ClusterCapacityRequirementsProperty.Builder spot(Object spot) Sets the value ofCfnClusterPropsMixin.ClusterCapacityRequirementsProperty.getSpot()- Parameters:
spot- Configuration options specific to Spot instances.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnClusterPropsMixin.ClusterCapacityRequirementsProperty>- Returns:
- a new instance of
CfnClusterPropsMixin.ClusterCapacityRequirementsProperty - Throws:
NullPointerException- if any required attribute was not provided
-