Class InstanceLifecyclePolicy
java.lang.Object
software.amazon.awssdk.services.autoscaling.model.InstanceLifecyclePolicy
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<InstanceLifecyclePolicy.Builder,InstanceLifecyclePolicy>
@Generated("software.amazon.awssdk:codegen")
public final class InstanceLifecyclePolicy
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<InstanceLifecyclePolicy.Builder,InstanceLifecyclePolicy>
The instance lifecycle policy for the Auto Scaling group. This policy controls instance behavior when an instance
transitions through its lifecycle states. Configure retention triggers to specify when instances should move to a
Retained state instead of automatic termination.
For more information, see Control instance retention with instance lifecycle policies in the Amazon EC2 Auto Scaling User Guide.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final RetentionTriggersSpecifies the conditions that trigger instance retention behavior.static Class<? extends InstanceLifecyclePolicy.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
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.- Returns:
- 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.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<InstanceLifecyclePolicy.Builder,InstanceLifecyclePolicy>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-