public static enum InstanceAvailabilityConfig.RecoveryAction extends Enum<InstanceAvailabilityConfig.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 and Description |
---|
RestoreInstance |
StopInstance |
UnknownEnumValue
This value is used if a service returns a value for this enum that is not recognized by
this version of the SDK.
|
Modifier and Type | Method and Description |
---|---|
static InstanceAvailabilityConfig.RecoveryAction |
create(String key) |
String |
getValue() |
static InstanceAvailabilityConfig.RecoveryAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InstanceAvailabilityConfig.RecoveryAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InstanceAvailabilityConfig.RecoveryAction RestoreInstance
public static final InstanceAvailabilityConfig.RecoveryAction StopInstance
public static final InstanceAvailabilityConfig.RecoveryAction UnknownEnumValue
public static InstanceAvailabilityConfig.RecoveryAction[] values()
for (InstanceAvailabilityConfig.RecoveryAction c : InstanceAvailabilityConfig.RecoveryAction.values()) System.out.println(c);
public static InstanceAvailabilityConfig.RecoveryAction valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static InstanceAvailabilityConfig.RecoveryAction create(String key)
Copyright © 2016–2024. All rights reserved.