Class HibernationOptionsRequest
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.HibernationOptionsRequest
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<HibernationOptionsRequest.Builder,HibernationOptionsRequest>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
HibernationOptionsRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HibernationOptionsRequest.Builder
builder()
Boolean
configured()
Set totrue
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.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
configured
public final Boolean configured()
Set to
true
to enable your instance for hibernation.For Spot Instances, if you set
Configured
totrue
, either omit theInstanceInterruptionBehavior
parameter (forSpotMarketOptions
), or set it tohibernate
. WhenConfigured
is true:-
If you omit
InstanceInterruptionBehavior
, it defaults tohibernate
. -
If you set
InstanceInterruptionBehavior
to a value other thanhibernate
, you'll get an error.
Default:
false
- Returns:
- Set to
true
to enable your instance for hibernation.For Spot Instances, if you set
Configured
totrue
, either omit theInstanceInterruptionBehavior
parameter (forSpotMarketOptions
), or set it tohibernate
. WhenConfigured
is true:-
If you omit
InstanceInterruptionBehavior
, it defaults tohibernate
. -
If you set
InstanceInterruptionBehavior
to a value other thanhibernate
, you'll get an error.
Default:
false
-
-
-
toBuilder
public HibernationOptionsRequest.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<HibernationOptionsRequest.Builder,HibernationOptionsRequest>
-
builder
public static HibernationOptionsRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends HibernationOptionsRequest.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String 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.
-
-