CreateMode Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. sql. models. CreateMode
- com.
- com.
public final class CreateMode
extends ExpandableStringEnum<CreateMode>
Specifies the mode of database creation. Default: regular database creation. Copy: creates a database as a copy of an existing database. sourceDatabaseId must be specified as the resource ID of the source database. Secondary: creates a database as a secondary replica of an existing database. sourceDatabaseId must be specified as the resource ID of the existing primary database. PointInTimeRestore: Creates a database by restoring a point in time backup of an existing database. sourceDatabaseId must be specified as the resource ID of the existing database, and restorePointInTime must be specified. Recovery: Creates a database by restoring a geo-replicated backup. sourceDatabaseId must be specified as the recoverable database resource ID to restore. Restore: Creates a database by restoring a backup of a deleted database. sourceDatabaseId must be specified. If sourceDatabaseId is the database's original resource ID, then sourceDatabaseDeletionDate must be specified. Otherwise sourceDatabaseId must be the restorable dropped database resource ID and sourceDatabaseDeletionDate is ignored. restorePointInTime may also be specified to restore from an earlier point in time. RestoreLongTermRetentionBackup: Creates a database by restoring from a long term retention vault. recoveryServicesRecoveryPointResourceId must be specified as the recovery point resource ID. Copy, Secondary, and RestoreLongTermRetentionBackup are not supported for DataWarehouse edition.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
static final
Create |
COPY
Copy. |
|
static final
Create |
DEFAULT
Default. |
|
static final
Create |
ONLINE_SECONDARY
Online |
|
static final
Create |
POINT_IN_TIME_RESTORE
Point |
|
static final
Create |
RECOVERY
Recovery. |
|
static final
Create |
RESTORE
Restore. |
|
static final
Create |
RESTORE_EXTERNAL_BACKUP
Restore |
|
static final
Create |
RESTORE_EXTERNAL_BACKUP_SECONDARY
Restore |
|
static final
Create |
RESTORE_LONG_TERM_RETENTION_BACKUP
Restore |
|
static final
Create |
SECONDARY
Secondary. |
Constructor Summary
| Constructor | Description |
|---|---|
| CreateMode() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Create |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Create |
fromString(String name)
Creates or finds a Create |
|
static
Collection<Create |
values()
Gets known Create |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
COPY
public static final CreateMode COPY
Copy.
DEFAULT
public static final CreateMode DEFAULT
Default.
ONLINE_SECONDARY
public static final CreateMode ONLINE_SECONDARY
OnlineSecondary.
POINT_IN_TIME_RESTORE
public static final CreateMode POINT_IN_TIME_RESTORE
PointInTimeRestore.
RECOVERY
public static final CreateMode RECOVERY
Recovery.
RESTORE
public static final CreateMode RESTORE
Restore.
RESTORE_EXTERNAL_BACKUP
public static final CreateMode RESTORE_EXTERNAL_BACKUP
RestoreExternalBackup.
RESTORE_EXTERNAL_BACKUP_SECONDARY
public static final CreateMode RESTORE_EXTERNAL_BACKUP_SECONDARY
RestoreExternalBackupSecondary.
RESTORE_LONG_TERM_RETENTION_BACKUP
public static final CreateMode RESTORE_LONG_TERM_RETENTION_BACKUP
RestoreLongTermRetentionBackup.
SECONDARY
public static final CreateMode SECONDARY
Secondary.
Constructor Details
CreateMode
@Deprecated
public CreateMode()
Deprecated
Creates a new instance of CreateMode value.
Method Details
fromString
public static CreateMode fromString(String name)
Creates or finds a CreateMode from its string representation.
Parameters:
Returns:
values
public static Collection<CreateMode> values()
Gets known CreateMode values.
Returns: