Class TerminatePreemptionAction
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.cloudmigrations.model.PreemptionAction
- 
- com.oracle.bmc.cloudmigrations.model.TerminatePreemptionAction
 
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20220919") public final class TerminatePreemptionAction extends PreemptionActionTerminates the preemptible instance when it is interrupted for eviction.
 Note: Objects should always be created or deserialized using theTerminatePreemptionAction.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theTerminatePreemptionAction.Builder, which maintain a set of all explicitly set fields calledTerminatePreemptionAction.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classTerminatePreemptionAction.Builder- 
Nested classes/interfaces inherited from class com.oracle.bmc.cloudmigrations.model.PreemptionActionPreemptionAction.Type
 
- 
 - 
Constructor SummaryConstructors Constructor Description TerminatePreemptionAction(Boolean preserveBootVolume)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TerminatePreemptionAction.Builderbuilder()Create a new builder.booleanequals(Object o)BooleangetPreserveBootVolume()Whether to preserve the boot volume that was used to launch the preemptible instance when the instance is terminated.inthashCode()TerminatePreemptionAction.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
TerminatePreemptionAction@Deprecated public TerminatePreemptionAction(Boolean preserveBootVolume) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static TerminatePreemptionAction.Builder builder() Create a new builder.
 - 
toBuilderpublic TerminatePreemptionAction.Builder toBuilder() 
 - 
getPreserveBootVolumepublic Boolean getPreserveBootVolume() Whether to preserve the boot volume that was used to launch the preemptible instance when the instance is terminated.By default, it is false if not specified. - Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- PreemptionAction
 
 - 
toStringpublic String toString(boolean includeByteArrayContents) Return a string representation of the object.- Overrides:
- toStringin class- PreemptionAction
- Parameters:
- includeByteArrayContents- true to include the full contents of byte arrays
- Returns:
- string representation
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- PreemptionAction
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- PreemptionAction
 
 
- 
 
-