Package com.oracle.bmc.core.model
Enum UpdateInstanceDetails.UpdateOperationConstraint
- java.lang.Object
-
- java.lang.Enum<UpdateInstanceDetails.UpdateOperationConstraint>
-
- com.oracle.bmc.core.model.UpdateInstanceDetails.UpdateOperationConstraint
-
- All Implemented Interfaces:
BmcEnum
,Serializable
,Comparable<UpdateInstanceDetails.UpdateOperationConstraint>
- Enclosing class:
- UpdateInstanceDetails
public static enum UpdateInstanceDetails.UpdateOperationConstraint extends Enum<UpdateInstanceDetails.UpdateOperationConstraint> implements BmcEnum
The parameter acts as a fail-safe to prevent unwanted downtime when updating a running instance.The default is ALLOW_DOWNTIME. * ALLOW_DOWNTIME - Compute might reboot the instance while updating the instance if a reboot is required. * AVOID_DOWNTIME - If the instance is in running state, Compute tries to update the instance without rebooting it. If the instance requires a reboot to be updated, an error is returned and the instance is not updated. If the instance is stopped, it is updated and remains in the stopped state.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AllowDowntime
AvoidDowntime
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UpdateInstanceDetails.UpdateOperationConstraint
create(String key)
String
getValue()
static UpdateInstanceDetails.UpdateOperationConstraint
valueOf(String name)
Returns the enum constant of this type with the specified name.static UpdateInstanceDetails.UpdateOperationConstraint[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AllowDowntime
public static final UpdateInstanceDetails.UpdateOperationConstraint AllowDowntime
-
AvoidDowntime
public static final UpdateInstanceDetails.UpdateOperationConstraint AvoidDowntime
-
-
Method Detail
-
values
public static UpdateInstanceDetails.UpdateOperationConstraint[] 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 (UpdateInstanceDetails.UpdateOperationConstraint c : UpdateInstanceDetails.UpdateOperationConstraint.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UpdateInstanceDetails.UpdateOperationConstraint 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 UpdateInstanceDetails.UpdateOperationConstraint create(String key)
-
-