Class CfnCluster.ClusterAutoScalingConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterAutoScalingConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.ClusterAutoScalingConfigProperty>
- Enclosing interface:
CfnCluster.ClusterAutoScalingConfigProperty
@Stability(Stable)
public static final class CfnCluster.ClusterAutoScalingConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.ClusterAutoScalingConfigProperty>
A builder for
CfnCluster.ClusterAutoScalingConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoScalerType(String autoScalerType) Sets the value ofCfnCluster.ClusterAutoScalingConfigProperty.getAutoScalerType()build()Builds the configured instance.Sets the value ofCfnCluster.ClusterAutoScalingConfigProperty.getMode()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mode
Sets the value ofCfnCluster.ClusterAutoScalingConfigProperty.getMode()- Parameters:
mode- Describes whether autoscaling is enabled or disabled for the cluster. This parameter is required. Valid values areEnableandDisable.- Returns:
this
-
autoScalerType
@Stability(Stable) public CfnCluster.ClusterAutoScalingConfigProperty.Builder autoScalerType(String autoScalerType) Sets the value ofCfnCluster.ClusterAutoScalingConfigProperty.getAutoScalerType()- Parameters:
autoScalerType- The type of autoscaler to use. Currently supported value isKarpenter.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCluster.ClusterAutoScalingConfigProperty>- Returns:
- a new instance of
CfnCluster.ClusterAutoScalingConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-