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