@Generated(value="software.amazon.awssdk:codegen") public final class HibernationOptionsRequest extends Object implements SdkPojo, Serializable, ToCopyableBuilder<HibernationOptionsRequest.Builder,HibernationOptionsRequest>
Indicates whether your instance is configured for hibernation. This parameter is valid only if the instance meets the hibernation prerequisites. For more information, see Hibernate your instance in the Amazon EC2 User Guide.
| Modifier and Type | Class and Description |
|---|---|
static interface |
HibernationOptionsRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static HibernationOptionsRequest.Builder |
builder() |
Boolean |
configured()
Set to
true to enable your instance for hibernation. |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends HibernationOptionsRequest.Builder> |
serializableBuilderClass() |
HibernationOptionsRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Boolean configured()
Set to true to enable your instance for hibernation.
For Spot Instances, if you set Configured to true, either omit the
InstanceInterruptionBehavior parameter (for
SpotMarketOptions ), or set it to hibernate. When Configured is true:
If you omit InstanceInterruptionBehavior, it defaults to hibernate.
If you set InstanceInterruptionBehavior to a value other than hibernate, you'll get an
error.
Default: false
true to enable your instance for hibernation.
For Spot Instances, if you set Configured to true, either omit the
InstanceInterruptionBehavior parameter (for
SpotMarketOptions ), or set it to hibernate. When Configured
is true:
If you omit InstanceInterruptionBehavior, it defaults to hibernate.
If you set InstanceInterruptionBehavior to a value other than hibernate, you'll
get an error.
Default: false
public HibernationOptionsRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<HibernationOptionsRequest.Builder,HibernationOptionsRequest>public static HibernationOptionsRequest.Builder builder()
public static Class<? extends HibernationOptionsRequest.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.