Class CfnComputeNodeGroup.NodeLifecycleActionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pcs.CfnComputeNodeGroup.NodeLifecycleActionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComputeNodeGroup.NodeLifecycleActionsProperty>
- Enclosing interface:
CfnComputeNodeGroup.NodeLifecycleActionsProperty
@Stability(Stable)
public static final class CfnComputeNodeGroup.NodeLifecycleActionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComputeNodeGroup.NodeLifecycleActionsProperty>
A builder for
CfnComputeNodeGroup.NodeLifecycleActionsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.scriptCachingPolicy(String scriptCachingPolicy) stages(IResolvable stages) Sets the value ofCfnComputeNodeGroup.NodeLifecycleActionsProperty.getStages()Sets the value ofCfnComputeNodeGroup.NodeLifecycleActionsProperty.getStages()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
stages
@Stability(Stable) public CfnComputeNodeGroup.NodeLifecycleActionsProperty.Builder stages(IResolvable stages) Sets the value ofCfnComputeNodeGroup.NodeLifecycleActionsProperty.getStages()- Parameters:
stages- The ordered scripts to run at each compute node lifecycle stage. This parameter is required.- Returns:
this
-
stages
@Stability(Stable) public CfnComputeNodeGroup.NodeLifecycleActionsProperty.Builder stages(CfnComputeNodeGroup.NodeLifecycleStagesProperty stages) Sets the value ofCfnComputeNodeGroup.NodeLifecycleActionsProperty.getStages()- Parameters:
stages- The ordered scripts to run at each compute node lifecycle stage. This parameter is required.- Returns:
this
-
scriptCachingPolicy
@Stability(Stable) public CfnComputeNodeGroup.NodeLifecycleActionsProperty.Builder scriptCachingPolicy(String scriptCachingPolicy) - Parameters:
scriptCachingPolicy- Controls whether lifecycle scripts are downloaded once at first boot (CACHE_ONCE) or re-downloaded on every reboot (REFRESH_ON_REBOOT). Defaults to CACHE_ONCE.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnComputeNodeGroup.NodeLifecycleActionsProperty>- Returns:
- a new instance of
CfnComputeNodeGroup.NodeLifecycleActionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-