Interface InstanceLifecyclePolicy.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceLifecyclePolicy.Builder,InstanceLifecyclePolicy>,SdkBuilder<InstanceLifecyclePolicy.Builder,InstanceLifecyclePolicy>,SdkPojo
- Enclosing class:
- InstanceLifecyclePolicy
@Mutable @NotThreadSafe public static interface InstanceLifecyclePolicy.Builder extends SdkPojo, CopyableBuilder<InstanceLifecyclePolicy.Builder,InstanceLifecyclePolicy>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default InstanceLifecyclePolicy.BuilderretentionTriggers(Consumer<RetentionTriggers.Builder> retentionTriggers)Specifies the conditions that trigger instance retention behavior.InstanceLifecyclePolicy.BuilderretentionTriggers(RetentionTriggers retentionTriggers)Specifies the conditions that trigger instance retention behavior.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
retentionTriggers
InstanceLifecyclePolicy.Builder retentionTriggers(RetentionTriggers retentionTriggers)
Specifies the conditions that trigger instance retention behavior. These triggers determine when instances should move to a
Retainedstate instead of automatic termination. This allows you to maintain control over instance management when lifecycles transition and operations fail.- Parameters:
retentionTriggers- Specifies the conditions that trigger instance retention behavior. These triggers determine when instances should move to aRetainedstate instead of automatic termination. This allows you to maintain control over instance management when lifecycles transition and operations fail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retentionTriggers
default InstanceLifecyclePolicy.Builder retentionTriggers(Consumer<RetentionTriggers.Builder> retentionTriggers)
Specifies the conditions that trigger instance retention behavior. These triggers determine when instances should move to a
This is a convenience method that creates an instance of theRetainedstate instead of automatic termination. This allows you to maintain control over instance management when lifecycles transition and operations fail.RetentionTriggers.Builderavoiding the need to create one manually viaRetentionTriggers.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toretentionTriggers(RetentionTriggers).- Parameters:
retentionTriggers- a consumer that will call methods onRetentionTriggers.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
retentionTriggers(RetentionTriggers)
-
-