Class CreateMode

java.lang.Object
com.azure.core.util.ExpandableStringEnum<CreateMode>
com.azure.resourcemanager.sql.models.CreateMode
All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>

public final class CreateMode extends com.azure.core.util.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 Details

    • DEFAULT

      public static final CreateMode DEFAULT
      Static value Default for CreateMode.
    • COPY

      public static final CreateMode COPY
      Static value Copy for CreateMode.
    • SECONDARY

      public static final CreateMode SECONDARY
      Static value Secondary for CreateMode.
    • POINT_IN_TIME_RESTORE

      public static final CreateMode POINT_IN_TIME_RESTORE
      Static value PointInTimeRestore for CreateMode.
    • RESTORE

      public static final CreateMode RESTORE
      Static value Restore for CreateMode.
    • RECOVERY

      public static final CreateMode RECOVERY
      Static value Recovery for CreateMode.
    • RESTORE_EXTERNAL_BACKUP

      public static final CreateMode RESTORE_EXTERNAL_BACKUP
      Static value RestoreExternalBackup for CreateMode.
    • RESTORE_EXTERNAL_BACKUP_SECONDARY

      public static final CreateMode RESTORE_EXTERNAL_BACKUP_SECONDARY
      Static value RestoreExternalBackupSecondary for CreateMode.
    • RESTORE_LONG_TERM_RETENTION_BACKUP

      public static final CreateMode RESTORE_LONG_TERM_RETENTION_BACKUP
      Static value RestoreLongTermRetentionBackup for CreateMode.
    • ONLINE_SECONDARY

      public static final CreateMode ONLINE_SECONDARY
      Static value OnlineSecondary for CreateMode.
  • Constructor Details

  • Method Details

    • fromString

      public static CreateMode fromString(String name)
      Creates or finds a CreateMode from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding CreateMode.
    • values

      public static Collection<CreateMode> values()
      Gets known CreateMode values.
      Returns:
      known CreateMode values.