Package com.oracle.bmc.database.model
Enum CreateDatabaseBase.Source
- java.lang.Object
-
- java.lang.Enum<CreateDatabaseBase.Source>
-
- com.oracle.bmc.database.model.CreateDatabaseBase.Source
-
- All Implemented Interfaces:
BmcEnum
,Serializable
,Comparable<CreateDatabaseBase.Source>
- Enclosing class:
- CreateDatabaseBase
public static enum CreateDatabaseBase.Source extends Enum<CreateDatabaseBase.Source> implements BmcEnum
The source of the database: Use NONE for creating a new database.Use DB_BACKUP for creating a new database by restoring from a backup. Use DATAGUARD for creating a new STANDBY database for a Data Guard setup.. The default is NONE.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateDatabaseBase.Source
create(String key)
String
getValue()
static CreateDatabaseBase.Source
valueOf(String name)
Returns the enum constant of this type with the specified name.static CreateDatabaseBase.Source[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
None
public static final CreateDatabaseBase.Source None
-
DbBackup
public static final CreateDatabaseBase.Source DbBackup
-
Dataguard
public static final CreateDatabaseBase.Source Dataguard
-
-
Method Detail
-
values
public static CreateDatabaseBase.Source[] 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 (CreateDatabaseBase.Source c : CreateDatabaseBase.Source.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CreateDatabaseBase.Source 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 CreateDatabaseBase.Source create(String key)
-
-