ManagedDatabaseCreateMode Class

public final class ManagedDatabaseCreateMode
extends ExpandableStringEnum<ManagedDatabaseCreateMode>

Managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. RestoreLongTermRetentionBackup: Create a database by restoring from a long term retention backup (longTermRetentionBackupResourceId required).

Field Summary

Modifier and Type Field and Description
static final ManagedDatabaseCreateMode DEFAULT

Default.

static final ManagedDatabaseCreateMode POINT_IN_TIME_RESTORE

PointInTimeRestore.

static final ManagedDatabaseCreateMode RECOVERY

Recovery.

static final ManagedDatabaseCreateMode RESTORE_EXTERNAL_BACKUP

RestoreExternalBackup.

static final ManagedDatabaseCreateMode RESTORE_LONG_TERM_RETENTION_BACKUP

RestoreLongTermRetentionBackup.

Constructor Summary

Constructor Description
ManagedDatabaseCreateMode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ManagedDatabaseCreateMode value.

Method Summary

Modifier and Type Method and Description
static ManagedDatabaseCreateMode fromString(String name)

Creates or finds a ManagedDatabaseCreateMode from its string representation.

static Collection<ManagedDatabaseCreateMode> values()

Gets known ManagedDatabaseCreateMode values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

DEFAULT

public static final ManagedDatabaseCreateMode DEFAULT

Default.

POINT_IN_TIME_RESTORE

public static final ManagedDatabaseCreateMode POINT_IN_TIME_RESTORE

PointInTimeRestore.

RECOVERY

public static final ManagedDatabaseCreateMode RECOVERY

Recovery.

RESTORE_EXTERNAL_BACKUP

public static final ManagedDatabaseCreateMode RESTORE_EXTERNAL_BACKUP

RestoreExternalBackup.

RESTORE_LONG_TERM_RETENTION_BACKUP

public static final ManagedDatabaseCreateMode RESTORE_LONG_TERM_RETENTION_BACKUP

RestoreLongTermRetentionBackup.

Constructor Details

ManagedDatabaseCreateMode

@Deprecated
public ManagedDatabaseCreateMode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ManagedDatabaseCreateMode value.

Method Details

fromString

public static ManagedDatabaseCreateMode fromString(String name)

Creates or finds a ManagedDatabaseCreateMode from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding ManagedDatabaseCreateMode.

values

public static Collection<ManagedDatabaseCreateMode> values()

Gets known ManagedDatabaseCreateMode values.

Returns:

known ManagedDatabaseCreateMode values.

Applies to