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