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
Modifier and TypeMethodDescriptiondefault InstanceLifecyclePolicy.BuilderretentionTriggers(Consumer<RetentionTriggers.Builder> retentionTriggers) Specifies the conditions that trigger instance retention behavior.retentionTriggers(RetentionTriggers retentionTriggers) Specifies the conditions that trigger instance retention behavior.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
-
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:
-