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