Package com.oracle.bmc.core.model
Enum LaunchInstanceAvailabilityConfigDetails.RecoveryAction
- java.lang.Object
-
- java.lang.Enum<LaunchInstanceAvailabilityConfigDetails.RecoveryAction>
-
- com.oracle.bmc.core.model.LaunchInstanceAvailabilityConfigDetails.RecoveryAction
-
- All Implemented Interfaces:
BmcEnum
,Serializable
,Comparable<LaunchInstanceAvailabilityConfigDetails.RecoveryAction>
- Enclosing class:
- LaunchInstanceAvailabilityConfigDetails
public static enum LaunchInstanceAvailabilityConfigDetails.RecoveryAction extends Enum<LaunchInstanceAvailabilityConfigDetails.RecoveryAction> implements BmcEnum
The lifecycle state for an instance when it is recovered after infrastructure maintenance.RESTORE_INSTANCE - The instance is restored to the lifecycle state it was in before the maintenance event. If the instance was running, it is automatically rebooted. This is the default action when a value is not set. * STOP_INSTANCE - The instance is recovered in the stopped state.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description RestoreInstance
StopInstance
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LaunchInstanceAvailabilityConfigDetails.RecoveryAction
create(String key)
String
getValue()
static LaunchInstanceAvailabilityConfigDetails.RecoveryAction
valueOf(String name)
Returns the enum constant of this type with the specified name.static LaunchInstanceAvailabilityConfigDetails.RecoveryAction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RestoreInstance
public static final LaunchInstanceAvailabilityConfigDetails.RecoveryAction RestoreInstance
-
StopInstance
public static final LaunchInstanceAvailabilityConfigDetails.RecoveryAction StopInstance
-
-
Method Detail
-
values
public static LaunchInstanceAvailabilityConfigDetails.RecoveryAction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LaunchInstanceAvailabilityConfigDetails.RecoveryAction c : LaunchInstanceAvailabilityConfigDetails.RecoveryAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LaunchInstanceAvailabilityConfigDetails.RecoveryAction valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
create
public static LaunchInstanceAvailabilityConfigDetails.RecoveryAction create(String key)
-
-