Class CfnCluster.DeploymentConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnCluster.DeploymentConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.DeploymentConfigProperty>
- Enclosing interface:
CfnCluster.DeploymentConfigProperty
@Stability(Stable)
public static final class CfnCluster.DeploymentConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.DeploymentConfigProperty>
A builder for
CfnCluster.DeploymentConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoRollbackConfiguration(List<? extends Object> autoRollbackConfiguration) Sets the value ofCfnCluster.DeploymentConfigProperty.getAutoRollbackConfiguration()autoRollbackConfiguration(IResolvable autoRollbackConfiguration) Sets the value ofCfnCluster.DeploymentConfigProperty.getAutoRollbackConfiguration()build()Builds the configured instance.rollingUpdatePolicy(IResolvable rollingUpdatePolicy) Sets the value ofCfnCluster.DeploymentConfigProperty.getRollingUpdatePolicy()rollingUpdatePolicy(CfnCluster.RollingUpdatePolicyProperty rollingUpdatePolicy) Sets the value ofCfnCluster.DeploymentConfigProperty.getRollingUpdatePolicy()waitIntervalInSeconds(Number waitIntervalInSeconds) Sets the value ofCfnCluster.DeploymentConfigProperty.getWaitIntervalInSeconds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
autoRollbackConfiguration
@Stability(Stable) public CfnCluster.DeploymentConfigProperty.Builder autoRollbackConfiguration(IResolvable autoRollbackConfiguration) Sets the value ofCfnCluster.DeploymentConfigProperty.getAutoRollbackConfiguration()- Parameters:
autoRollbackConfiguration- Automatic rollback configuration for handling endpoint deployment failures and recovery.- Returns:
this
-
autoRollbackConfiguration
@Stability(Stable) public CfnCluster.DeploymentConfigProperty.Builder autoRollbackConfiguration(List<? extends Object> autoRollbackConfiguration) Sets the value ofCfnCluster.DeploymentConfigProperty.getAutoRollbackConfiguration()- Parameters:
autoRollbackConfiguration- Automatic rollback configuration for handling endpoint deployment failures and recovery.- Returns:
this
-
rollingUpdatePolicy
@Stability(Stable) public CfnCluster.DeploymentConfigProperty.Builder rollingUpdatePolicy(IResolvable rollingUpdatePolicy) Sets the value ofCfnCluster.DeploymentConfigProperty.getRollingUpdatePolicy()- Parameters:
rollingUpdatePolicy- Specifies a rolling deployment strategy for updating a SageMaker endpoint.- Returns:
this
-
rollingUpdatePolicy
@Stability(Stable) public CfnCluster.DeploymentConfigProperty.Builder rollingUpdatePolicy(CfnCluster.RollingUpdatePolicyProperty rollingUpdatePolicy) Sets the value ofCfnCluster.DeploymentConfigProperty.getRollingUpdatePolicy()- Parameters:
rollingUpdatePolicy- Specifies a rolling deployment strategy for updating a SageMaker endpoint.- Returns:
this
-
waitIntervalInSeconds
@Stability(Stable) public CfnCluster.DeploymentConfigProperty.Builder waitIntervalInSeconds(Number waitIntervalInSeconds) Sets the value ofCfnCluster.DeploymentConfigProperty.getWaitIntervalInSeconds()- Parameters:
waitIntervalInSeconds- The duration in seconds that SageMaker waits before updating more instances in the cluster.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCluster.DeploymentConfigProperty>- Returns:
- a new instance of
CfnCluster.DeploymentConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-