Enum CreateDistributedDatabaseDetails.ReplicationMethod
- java.lang.Object
-
- java.lang.Enum<CreateDistributedDatabaseDetails.ReplicationMethod>
-
- com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseDetails.ReplicationMethod
-
- All Implemented Interfaces:
BmcEnum
,Serializable
,Comparable<CreateDistributedDatabaseDetails.ReplicationMethod>
- Enclosing class:
- CreateDistributedDatabaseDetails
public static enum CreateDistributedDatabaseDetails.ReplicationMethod extends Enum<CreateDistributedDatabaseDetails.ReplicationMethod> implements BmcEnum
The Replication method for Globally distributed database.Use RAFT for Raft replication, and DG for DataGuard. If replicationMethod is not provided, it defaults to DG.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateDistributedDatabaseDetails.ReplicationMethod
create(String key)
String
getValue()
static CreateDistributedDatabaseDetails.ReplicationMethod
valueOf(String name)
Returns the enum constant of this type with the specified name.static CreateDistributedDatabaseDetails.ReplicationMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Raft
public static final CreateDistributedDatabaseDetails.ReplicationMethod Raft
-
Dg
public static final CreateDistributedDatabaseDetails.ReplicationMethod Dg
-
-
Method Detail
-
values
public static CreateDistributedDatabaseDetails.ReplicationMethod[] 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 (CreateDistributedDatabaseDetails.ReplicationMethod c : CreateDistributedDatabaseDetails.ReplicationMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CreateDistributedDatabaseDetails.ReplicationMethod 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 CreateDistributedDatabaseDetails.ReplicationMethod create(String key)
-
-