Package com.oracle.bmc.psql.model
Enum ChangeRoleToStandaloneDetails.ChangeMode
- java.lang.Object
-
- java.lang.Enum<ChangeRoleToStandaloneDetails.ChangeMode>
-
- com.oracle.bmc.psql.model.ChangeRoleToStandaloneDetails.ChangeMode
-
- All Implemented Interfaces:
BmcEnum,Serializable,Comparable<ChangeRoleToStandaloneDetails.ChangeMode>
- Enclosing class:
- ChangeRoleToStandaloneDetails
public static enum ChangeRoleToStandaloneDetails.ChangeMode extends Enum<ChangeRoleToStandaloneDetails.ChangeMode> implements BmcEnum
Type of the mode choose during change role operation.REPLAY_PENDING_UPDATES (Default value): In this mode, the role change is delayed until replica database system has processed all Write-Ahead log (WAL) records that were archived before this API call is made. IMMEDIATELY: In this mode, the role change is applied right away, without waiting for any pending WAL records to be processed. This allows for an immediate transition.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ImmediatelyReplayPendingUpdates
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChangeRoleToStandaloneDetails.ChangeModecreate(String key)StringgetValue()static ChangeRoleToStandaloneDetails.ChangeModevalueOf(String name)Returns the enum constant of this type with the specified name.static ChangeRoleToStandaloneDetails.ChangeMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ReplayPendingUpdates
public static final ChangeRoleToStandaloneDetails.ChangeMode ReplayPendingUpdates
-
Immediately
public static final ChangeRoleToStandaloneDetails.ChangeMode Immediately
-
-
Method Detail
-
values
public static ChangeRoleToStandaloneDetails.ChangeMode[] 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 (ChangeRoleToStandaloneDetails.ChangeMode c : ChangeRoleToStandaloneDetails.ChangeMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChangeRoleToStandaloneDetails.ChangeMode 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 ChangeRoleToStandaloneDetails.ChangeMode create(String key)
-
-