Class CfnClusterPropsMixin.RollingUpdatePolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnClusterPropsMixin.RollingUpdatePolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterPropsMixin.RollingUpdatePolicyProperty>
- Enclosing interface:
CfnClusterPropsMixin.RollingUpdatePolicyProperty
@Stability(Stable)
public static final class CfnClusterPropsMixin.RollingUpdatePolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClusterPropsMixin.RollingUpdatePolicyProperty>
A builder for
CfnClusterPropsMixin.RollingUpdatePolicyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.maximumBatchSize(CfnClusterPropsMixin.CapacitySizeConfigProperty maximumBatchSize) Sets the value ofCfnClusterPropsMixin.RollingUpdatePolicyProperty.getMaximumBatchSize()maximumBatchSize(IResolvable maximumBatchSize) Sets the value ofCfnClusterPropsMixin.RollingUpdatePolicyProperty.getMaximumBatchSize()rollbackMaximumBatchSize(CfnClusterPropsMixin.CapacitySizeConfigProperty rollbackMaximumBatchSize) rollbackMaximumBatchSize(IResolvable rollbackMaximumBatchSize)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maximumBatchSize
@Stability(Stable) public CfnClusterPropsMixin.RollingUpdatePolicyProperty.Builder maximumBatchSize(IResolvable maximumBatchSize) Sets the value ofCfnClusterPropsMixin.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. Value must be between 5% to 50% of the variant's total instance count.- Returns:
this
-
maximumBatchSize
@Stability(Stable) public CfnClusterPropsMixin.RollingUpdatePolicyProperty.Builder maximumBatchSize(CfnClusterPropsMixin.CapacitySizeConfigProperty maximumBatchSize) Sets the value ofCfnClusterPropsMixin.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. Value must be between 5% to 50% of the variant's total instance count.- Returns:
this
-
rollbackMaximumBatchSize
@Stability(Stable) public CfnClusterPropsMixin.RollingUpdatePolicyProperty.Builder rollbackMaximumBatchSize(IResolvable rollbackMaximumBatchSize) - 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 CfnClusterPropsMixin.RollingUpdatePolicyProperty.Builder rollbackMaximumBatchSize(CfnClusterPropsMixin.CapacitySizeConfigProperty rollbackMaximumBatchSize) - 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:
buildin interfacesoftware.amazon.jsii.Builder<CfnClusterPropsMixin.RollingUpdatePolicyProperty>- Returns:
- a new instance of
CfnClusterPropsMixin.RollingUpdatePolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-