ManagedDatabaseUpdate Class
- java.
lang. Object - com.
microsoft. azure. management. sql. ManagedDatabaseUpdate
- com.
public class ManagedDatabaseUpdate
An managed database update.
Method Summary
Modifier and Type | Method and Description |
---|---|
Catalog |
catalogCollation()
Get collation of the metadata catalog. Possible values include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS'. |
String |
collation()
Get collation of the managed database. |
Managed |
createMode()
Get 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. Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery'. |
DateTime |
creationDate()
Get creation date of the database. |
String |
defaultSecondaryLocation()
Get geo paired region. |
DateTime |
earliestRestorePoint()
Get earliest restore point in time for point in time restore. |
String |
failoverGroupId()
Get instance Failover Group resource identifier that this managed database belongs to. |
String |
recoverableDatabaseId()
Get the resource identifier of the recoverable database associated with create operation of this database. |
String |
restorableDroppedDatabaseId()
Get the restorable dropped database resource id to restore when creating this database. |
DateTime |
restorePointInTime()
Get conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. |
String |
sourceDatabaseId()
Get the resource identifier of the source database associated with create operation of this database. |
Managed |
status()
Get status of the database. Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible', 'Updating'. |
String |
storageContainerSasToken()
Get conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the storage container sas token. |
String |
storageContainerUri()
Get conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri of the storage container where backups for this restore are stored. |
Map<String, String> |
tags()
Get resource tags. |
Managed |
withCatalogCollation(CatalogCollationType catalogCollation)
Set collation of the metadata catalog. Possible values include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS'. |
Managed |
withCollation(String collation)
Set collation of the managed database. |
Managed |
withCreateMode(ManagedDatabaseCreateMode createMode)
Set 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. Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery'. |
Managed |
withRecoverableDatabaseId(String recoverableDatabaseId)
Set the resource identifier of the recoverable database associated with create operation of this database. |
Managed |
withRestorableDroppedDatabaseId(String restorableDroppedDatabaseId)
Set the restorable dropped database resource id to restore when creating this database. |
Managed |
withRestorePointInTime(DateTime restorePointInTime)
Set conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. |
Managed |
withSourceDatabaseId(String sourceDatabaseId)
Set the resource identifier of the source database associated with create operation of this database. |
Managed |
withStorageContainerSasToken(String storageContainerSasToken)
Set conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the storage container sas token. |
Managed |
withStorageContainerUri(String storageContainerUri)
Set conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri of the storage container where backups for this restore are stored. |
Managed |
withTags(Map<String, String> tags)
Set resource tags. |
Method Details
catalogCollation
public CatalogCollationType catalogCollation()
Get collation of the metadata catalog. Possible values include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS'.
Returns:
collation
public String collation()
Get collation of the managed database.
Returns:
createMode
public ManagedDatabaseCreateMode createMode()
Get 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. Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery'.
Returns:
creationDate
public DateTime creationDate()
Get creation date of the database.
Returns:
defaultSecondaryLocation
public String defaultSecondaryLocation()
Get geo paired region.
Returns:
earliestRestorePoint
public DateTime earliestRestorePoint()
Get earliest restore point in time for point in time restore.
Returns:
failoverGroupId
public String failoverGroupId()
Get instance Failover Group resource identifier that this managed database belongs to.
Returns:
recoverableDatabaseId
public String recoverableDatabaseId()
Get the resource identifier of the recoverable database associated with create operation of this database.
Returns:
restorableDroppedDatabaseId
public String restorableDroppedDatabaseId()
Get the restorable dropped database resource id to restore when creating this database.
Returns:
restorePointInTime
public DateTime restorePointInTime()
Get conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database.
Returns:
sourceDatabaseId
public String sourceDatabaseId()
Get the resource identifier of the source database associated with create operation of this database.
Returns:
status
public ManagedDatabaseStatus status()
Get status of the database. Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible', 'Updating'.
Returns:
storageContainerSasToken
public String storageContainerSasToken()
Get conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the storage container sas token.
Returns:
storageContainerUri
public String storageContainerUri()
Get conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri of the storage container where backups for this restore are stored.
Returns:
tags
public Map
Get resource tags.
Returns:
withCatalogCollation
public ManagedDatabaseUpdate withCatalogCollation(CatalogCollationType catalogCollation)
Set collation of the metadata catalog. Possible values include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS'.
Parameters:
Returns:
withCollation
public ManagedDatabaseUpdate withCollation(String collation)
Set collation of the managed database.
Parameters:
Returns:
withCreateMode
public ManagedDatabaseUpdate withCreateMode(ManagedDatabaseCreateMode createMode)
Set 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. Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery'.
Parameters:
Returns:
withRecoverableDatabaseId
public ManagedDatabaseUpdate withRecoverableDatabaseId(String recoverableDatabaseId)
Set the resource identifier of the recoverable database associated with create operation of this database.
Parameters:
Returns:
withRestorableDroppedDatabaseId
public ManagedDatabaseUpdate withRestorableDroppedDatabaseId(String restorableDroppedDatabaseId)
Set the restorable dropped database resource id to restore when creating this database.
Parameters:
Returns:
withRestorePointInTime
public ManagedDatabaseUpdate withRestorePointInTime(DateTime restorePointInTime)
Set conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database.
Parameters:
Returns:
withSourceDatabaseId
public ManagedDatabaseUpdate withSourceDatabaseId(String sourceDatabaseId)
Set the resource identifier of the source database associated with create operation of this database.
Parameters:
Returns:
withStorageContainerSasToken
public ManagedDatabaseUpdate withStorageContainerSasToken(String storageContainerSasToken)
Set conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the storage container sas token.
Parameters:
Returns:
withStorageContainerUri
public ManagedDatabaseUpdate withStorageContainerUri(String storageContainerUri)
Set conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri of the storage container where backups for this restore are stored.
Parameters:
Returns:
withTags
public ManagedDatabaseUpdate withTags(Map
Set resource tags.
Parameters:
Returns:
Applies to
Azure SDK for Java