Class CfnCluster.CapacitySizeConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnCluster.CapacitySizeConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.CapacitySizeConfigProperty>
- Enclosing interface:
CfnCluster.CapacitySizeConfigProperty
@Stability(Stable)
public static final class CfnCluster.CapacitySizeConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.CapacitySizeConfigProperty>
A builder for
CfnCluster.CapacitySizeConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnCluster.CapacitySizeConfigProperty.getType()Sets the value ofCfnCluster.CapacitySizeConfigProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnCluster.CapacitySizeConfigProperty.getType()- Parameters:
type- Specifies whether SageMaker should process the update by amount or percentage of instances. This parameter is required.- Returns:
this
-
value
Sets the value ofCfnCluster.CapacitySizeConfigProperty.getValue()- Parameters:
value- Specifies the amount or percentage of instances SageMaker updates at a time. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCluster.CapacitySizeConfigProperty>- Returns:
- a new instance of
CfnCluster.CapacitySizeConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-