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

Static value Default for ManagedDatabaseCreateMode.

static final ManagedDatabaseCreateMode POINT_IN_TIME_RESTORE

Static value PointInTimeRestore for ManagedDatabaseCreateMode.

static final ManagedDatabaseCreateMode RECOVERY

Static value Recovery for ManagedDatabaseCreateMode.

static final ManagedDatabaseCreateMode RESTORE_EXTERNAL_BACKUP

Static value RestoreExternalBackup for ManagedDatabaseCreateMode.

static final ManagedDatabaseCreateMode RESTORE_LONG_TERM_RETENTION_BACKUP

Static value RestoreLongTermRetentionBackup for ManagedDatabaseCreateMode.

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

Static value Default for ManagedDatabaseCreateMode.

POINT_IN_TIME_RESTORE

public static final ManagedDatabaseCreateMode POINT_IN_TIME_RESTORE

Static value PointInTimeRestore for ManagedDatabaseCreateMode.

RECOVERY

public static final ManagedDatabaseCreateMode RECOVERY

Static value Recovery for ManagedDatabaseCreateMode.

RESTORE_EXTERNAL_BACKUP

public static final ManagedDatabaseCreateMode RESTORE_EXTERNAL_BACKUP

Static value RestoreExternalBackup for ManagedDatabaseCreateMode.

RESTORE_LONG_TERM_RETENTION_BACKUP

public static final ManagedDatabaseCreateMode RESTORE_LONG_TERM_RETENTION_BACKUP

Static value RestoreLongTermRetentionBackup for ManagedDatabaseCreateMode.

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 values()

Gets known ManagedDatabaseCreateMode values.

Returns:

known ManagedDatabaseCreateMode values.

Applies to