Class CfnCluster.AutoPatchConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnCluster.AutoPatchConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.AutoPatchConfigProperty>
- Enclosing interface:
CfnCluster.AutoPatchConfigProperty
@Stability(Stable)
public static final class CfnCluster.AutoPatchConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.AutoPatchConfigProperty>
A builder for
CfnCluster.AutoPatchConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deploymentConfig(IResolvable deploymentConfig) Sets the value ofCfnCluster.AutoPatchConfigProperty.getDeploymentConfig()deploymentConfig(CfnCluster.DeploymentConfigProperty deploymentConfig) Sets the value ofCfnCluster.AutoPatchConfigProperty.getDeploymentConfig()patchingStrategy(String patchingStrategy) Sets the value ofCfnCluster.AutoPatchConfigProperty.getPatchingStrategy()patchSchedule(IResolvable patchSchedule) Sets the value ofCfnCluster.AutoPatchConfigProperty.getPatchSchedule()patchSchedule(CfnCluster.PatchScheduleProperty patchSchedule) Sets the value ofCfnCluster.AutoPatchConfigProperty.getPatchSchedule()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
patchingStrategy
@Stability(Stable) public CfnCluster.AutoPatchConfigProperty.Builder patchingStrategy(String patchingStrategy) Sets the value ofCfnCluster.AutoPatchConfigProperty.getPatchingStrategy()- Parameters:
patchingStrategy- The patching strategy that determines when and how instances are patched. This parameter is required. WhenIdle patches instances as they become idle. WhenAllIdle patches all instances when they are all idle.- Returns:
this
-
deploymentConfig
@Stability(Stable) public CfnCluster.AutoPatchConfigProperty.Builder deploymentConfig(IResolvable deploymentConfig) Sets the value ofCfnCluster.AutoPatchConfigProperty.getDeploymentConfig()- Parameters:
deploymentConfig- The configuration to use when updating the AMI versions.- Returns:
this
-
deploymentConfig
@Stability(Stable) public CfnCluster.AutoPatchConfigProperty.Builder deploymentConfig(CfnCluster.DeploymentConfigProperty deploymentConfig) Sets the value ofCfnCluster.AutoPatchConfigProperty.getDeploymentConfig()- Parameters:
deploymentConfig- The configuration to use when updating the AMI versions.- Returns:
this
-
patchSchedule
@Stability(Stable) public CfnCluster.AutoPatchConfigProperty.Builder patchSchedule(IResolvable patchSchedule) Sets the value ofCfnCluster.AutoPatchConfigProperty.getPatchSchedule()- Parameters:
patchSchedule- The schedule configuration for automatic patching.- Returns:
this
-
patchSchedule
@Stability(Stable) public CfnCluster.AutoPatchConfigProperty.Builder patchSchedule(CfnCluster.PatchScheduleProperty patchSchedule) Sets the value ofCfnCluster.AutoPatchConfigProperty.getPatchSchedule()- Parameters:
patchSchedule- The schedule configuration for automatic patching.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCluster.AutoPatchConfigProperty>- Returns:
- a new instance of
CfnCluster.AutoPatchConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-