Interface NodeLifecycleActions.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<NodeLifecycleActions.Builder,,NodeLifecycleActions> SdkBuilder<NodeLifecycleActions.Builder,,NodeLifecycleActions> SdkPojo
- Enclosing class:
NodeLifecycleActions
-
Method Summary
Modifier and TypeMethodDescriptionscriptCachingPolicy(String scriptCachingPolicy) The caching policy for node lifecycle scripts.scriptCachingPolicy(ScriptCachingPolicy scriptCachingPolicy) The caching policy for node lifecycle scripts.default NodeLifecycleActions.Builderstages(Consumer<NodeLifecycleStages.Builder> stages) The lifecycle stages where you configure scripts to run.stages(NodeLifecycleStages stages) The lifecycle stages where you configure scripts to run.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
stages
The lifecycle stages where you configure scripts to run.
- Parameters:
stages- The lifecycle stages where you configure scripts to run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stages
The lifecycle stages where you configure scripts to run.
This is a convenience method that creates an instance of theNodeLifecycleStages.Builderavoiding the need to create one manually viaNodeLifecycleStages.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostages(NodeLifecycleStages).- Parameters:
stages- a consumer that will call methods onNodeLifecycleStages.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scriptCachingPolicy
The caching policy for node lifecycle scripts. The default value is
CACHE_ONCE. Valid values:-
CACHE_ONCE– Downloads each script once and reuses it on subsequent boots. -
REFRESH_ON_REBOOT– Downloads each script on every boot.
- Parameters:
scriptCachingPolicy- The caching policy for node lifecycle scripts. The default value isCACHE_ONCE. Valid values:-
CACHE_ONCE– Downloads each script once and reuses it on subsequent boots. -
REFRESH_ON_REBOOT– Downloads each script on every boot.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
scriptCachingPolicy
The caching policy for node lifecycle scripts. The default value is
CACHE_ONCE. Valid values:-
CACHE_ONCE– Downloads each script once and reuses it on subsequent boots. -
REFRESH_ON_REBOOT– Downloads each script on every boot.
- Parameters:
scriptCachingPolicy- The caching policy for node lifecycle scripts. The default value isCACHE_ONCE. Valid values:-
CACHE_ONCE– Downloads each script once and reuses it on subsequent boots. -
REFRESH_ON_REBOOT– Downloads each script on every boot.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-