Package com.oracle.bmc.core.model
Enum UpdateInstanceAvailabilityConfigDetails.RecoveryAction
- java.lang.Object
-
- java.lang.Enum<UpdateInstanceAvailabilityConfigDetails.RecoveryAction>
-
- com.oracle.bmc.core.model.UpdateInstanceAvailabilityConfigDetails.RecoveryAction
-
- All Implemented Interfaces:
BmcEnum
,Serializable
,Comparable<UpdateInstanceAvailabilityConfigDetails.RecoveryAction>
- Enclosing class:
- UpdateInstanceAvailabilityConfigDetails
public static enum UpdateInstanceAvailabilityConfigDetails.RecoveryAction extends Enum<UpdateInstanceAvailabilityConfigDetails.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 UpdateInstanceAvailabilityConfigDetails.RecoveryAction
create(String key)
String
getValue()
static UpdateInstanceAvailabilityConfigDetails.RecoveryAction
valueOf(String name)
Returns the enum constant of this type with the specified name.static UpdateInstanceAvailabilityConfigDetails.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 UpdateInstanceAvailabilityConfigDetails.RecoveryAction RestoreInstance
-
StopInstance
public static final UpdateInstanceAvailabilityConfigDetails.RecoveryAction StopInstance
-
-
Method Detail
-
values
public static UpdateInstanceAvailabilityConfigDetails.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 (UpdateInstanceAvailabilityConfigDetails.RecoveryAction c : UpdateInstanceAvailabilityConfigDetails.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 UpdateInstanceAvailabilityConfigDetails.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 UpdateInstanceAvailabilityConfigDetails.RecoveryAction create(String key)
-
-