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 Amazon EC2 instance in the Amazon EC2 User Guide.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceHibernationOptionsRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HibernationOptionsRequest.Builderbuilder()Booleanconfigured()Set totrueto enable your instance for hibernation.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends HibernationOptionsRequest.Builder>serializableBuilderClass()HibernationOptionsRequest.BuildertoBuilder()StringtoString()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
trueto enable your instance for hibernation.For Spot Instances, if you set
Configuredtotrue, either omit theInstanceInterruptionBehaviorparameter (forSpotMarketOptions), or set it tohibernate. WhenConfiguredis true:-
If you omit
InstanceInterruptionBehavior, it defaults tohibernate. -
If you set
InstanceInterruptionBehaviorto a value other thanhibernate, you'll get an error.
Default:
false- Returns:
- Set to
trueto enable your instance for hibernation.For Spot Instances, if you set
Configuredtotrue, either omit theInstanceInterruptionBehaviorparameter (forSpotMarketOptions), or set it tohibernate. WhenConfiguredis true:-
If you omit
InstanceInterruptionBehavior, it defaults tohibernate. -
If you set
InstanceInterruptionBehaviorto a value other thanhibernate, you'll get an error.
Default:
false -
-
-
toBuilder
public HibernationOptionsRequest.Builder toBuilder()
- Specified by:
toBuilderin 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:
equalsBySdkFieldsin 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.
-
-