Class CfnCluster.RollingUpdatePolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnCluster.RollingUpdatePolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.RollingUpdatePolicyProperty>
- Enclosing interface:
CfnCluster.RollingUpdatePolicyProperty
@Stability(Stable)
public static final class CfnCluster.RollingUpdatePolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.RollingUpdatePolicyProperty>
A builder for
CfnCluster.RollingUpdatePolicyProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.maximumBatchSize
(IResolvable maximumBatchSize) Sets the value ofCfnCluster.RollingUpdatePolicyProperty.getMaximumBatchSize()
maximumBatchSize
(CfnCluster.CapacitySizeConfigProperty maximumBatchSize) Sets the value ofCfnCluster.RollingUpdatePolicyProperty.getMaximumBatchSize()
rollbackMaximumBatchSize
(IResolvable rollbackMaximumBatchSize) Sets the value ofCfnCluster.RollingUpdatePolicyProperty.getRollbackMaximumBatchSize()
rollbackMaximumBatchSize
(CfnCluster.CapacitySizeConfigProperty rollbackMaximumBatchSize) Sets the value ofCfnCluster.RollingUpdatePolicyProperty.getRollbackMaximumBatchSize()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maximumBatchSize
@Stability(Stable) public CfnCluster.RollingUpdatePolicyProperty.Builder maximumBatchSize(IResolvable maximumBatchSize) Sets the value ofCfnCluster.RollingUpdatePolicyProperty.getMaximumBatchSize()
- Parameters:
maximumBatchSize
- Batch size for each rolling step to provision capacity and turn on traffic on the new endpoint fleet, and terminate capacity on the old endpoint fleet. This parameter is required. Value must be between 5% to 50% of the variant's total instance count.- Returns:
this
-
maximumBatchSize
@Stability(Stable) public CfnCluster.RollingUpdatePolicyProperty.Builder maximumBatchSize(CfnCluster.CapacitySizeConfigProperty maximumBatchSize) Sets the value ofCfnCluster.RollingUpdatePolicyProperty.getMaximumBatchSize()
- Parameters:
maximumBatchSize
- Batch size for each rolling step to provision capacity and turn on traffic on the new endpoint fleet, and terminate capacity on the old endpoint fleet. This parameter is required. Value must be between 5% to 50% of the variant's total instance count.- Returns:
this
-
rollbackMaximumBatchSize
@Stability(Stable) public CfnCluster.RollingUpdatePolicyProperty.Builder rollbackMaximumBatchSize(IResolvable rollbackMaximumBatchSize) Sets the value ofCfnCluster.RollingUpdatePolicyProperty.getRollbackMaximumBatchSize()
- Parameters:
rollbackMaximumBatchSize
- Batch size for rollback to the old endpoint fleet. Each rolling step to provision capacity and turn on traffic on the old endpoint fleet, and terminate capacity on the new endpoint fleet. If this field is absent, the default value will be set to 100% of total capacity which means to bring up the whole capacity of the old fleet at once during rollback.- Returns:
this
-
rollbackMaximumBatchSize
@Stability(Stable) public CfnCluster.RollingUpdatePolicyProperty.Builder rollbackMaximumBatchSize(CfnCluster.CapacitySizeConfigProperty rollbackMaximumBatchSize) Sets the value ofCfnCluster.RollingUpdatePolicyProperty.getRollbackMaximumBatchSize()
- Parameters:
rollbackMaximumBatchSize
- Batch size for rollback to the old endpoint fleet. Each rolling step to provision capacity and turn on traffic on the old endpoint fleet, and terminate capacity on the new endpoint fleet. If this field is absent, the default value will be set to 100% of total capacity which means to bring up the whole capacity of the old fleet at once during rollback.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCluster.RollingUpdatePolicyProperty>
- Returns:
- a new instance of
CfnCluster.RollingUpdatePolicyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-