ManagedDatabaseUpdate Class

  • java.lang.Object
    • com.microsoft.azure.management.sql.ManagedDatabaseUpdate

public class ManagedDatabaseUpdate

An managed database update.

Constructor Summary

Constructor Description
ManagedDatabaseUpdate()

Method Summary

Modifier and Type Method and Description
CatalogCollationType catalogCollation()

Get collation of the metadata catalog.

java.lang.String collation()

Get collation of the managed database.

ManagedDatabaseCreateMode createMode()

Get managed database create mode.

org.joda.time.DateTime creationDate()

Get creation date of the database.

java.lang.String defaultSecondaryLocation()

Get geo paired region.

org.joda.time.DateTime earliestRestorePoint()

Get earliest restore point in time for point in time restore.

java.lang.String failoverGroupId()

Get instance Failover Group resource identifier that this managed database belongs to.

java.lang.String recoverableDatabaseId()

Get the resource identifier of the recoverable database associated with create operation of this database.

java.lang.String restorableDroppedDatabaseId()

Get the restorable dropped database resource id to restore when creating this database.

org.joda.time.DateTime restorePointInTime()

Get conditional.

java.lang.String sourceDatabaseId()

Get the resource identifier of the source database associated with create operation of this database.

ManagedDatabaseStatus status()

Get status of the database.

java.lang.String storageContainerSasToken()

Get conditional.

java.lang.String storageContainerUri()

Get conditional.

java.util.Map<java.lang.String,java.lang.String> tags()

Get resource tags.

ManagedDatabaseUpdate withCatalogCollation(CatalogCollationType catalogCollation)

Set collation of the metadata catalog.

ManagedDatabaseUpdate withCollation(String collation)

Set collation of the managed database.

ManagedDatabaseUpdate withCreateMode(ManagedDatabaseCreateMode createMode)

Set managed database create mode.

ManagedDatabaseUpdate withRecoverableDatabaseId(String recoverableDatabaseId)

Set the resource identifier of the recoverable database associated with create operation of this database.

ManagedDatabaseUpdate withRestorableDroppedDatabaseId(String restorableDroppedDatabaseId)

Set the restorable dropped database resource id to restore when creating this database.

ManagedDatabaseUpdate withRestorePointInTime(DateTime restorePointInTime)

Set conditional.

ManagedDatabaseUpdate withSourceDatabaseId(String sourceDatabaseId)

Set the resource identifier of the source database associated with create operation of this database.

ManagedDatabaseUpdate withStorageContainerSasToken(String storageContainerSasToken)

Set conditional.

ManagedDatabaseUpdate withStorageContainerUri(String storageContainerUri)

Set conditional.

ManagedDatabaseUpdate withTags(Map<String,String> tags)

Set resource tags.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

ManagedDatabaseUpdate

public ManagedDatabaseUpdate()

Method Details

catalogCollation

public CatalogCollationType catalogCollation()

Get collation of the metadata catalog. Possible values include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS'.

Returns:

the catalogCollation value

collation

public String collation()

Get collation of the managed database.

Returns:

the collation value

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:

the createMode value

creationDate

public DateTime creationDate()

Get creation date of the database.

Returns:

the creationDate value

defaultSecondaryLocation

public String defaultSecondaryLocation()

Get geo paired region.

Returns:

the defaultSecondaryLocation value

earliestRestorePoint

public DateTime earliestRestorePoint()

Get earliest restore point in time for point in time restore.

Returns:

the earliestRestorePoint value

failoverGroupId

public String failoverGroupId()

Get instance Failover Group resource identifier that this managed database belongs to.

Returns:

the failoverGroupId value

recoverableDatabaseId

public String recoverableDatabaseId()

Get the resource identifier of the recoverable database associated with create operation of this database.

Returns:

the recoverableDatabaseId value

restorableDroppedDatabaseId

public String restorableDroppedDatabaseId()

Get the restorable dropped database resource id to restore when creating this database.

Returns:

the restorableDroppedDatabaseId value

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:

the restorePointInTime value

sourceDatabaseId

public String sourceDatabaseId()

Get the resource identifier of the source database associated with create operation of this database.

Returns:

the sourceDatabaseId value

status

public ManagedDatabaseStatus status()

Get status of the database. Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible', 'Updating'.

Returns:

the status value

storageContainerSasToken

public String storageContainerSasToken()

Get conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the storage container sas token.

Returns:

the storageContainerSasToken value

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:

the storageContainerUri value

tags

public Map tags()

Get resource tags.

Returns:

the tags value

withCatalogCollation

public ManagedDatabaseUpdate withCatalogCollation(CatalogCollationType catalogCollation)

Set collation of the metadata catalog. Possible values include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS'.

Parameters:

catalogCollation - the catalogCollation value to set

Returns:

the ManagedDatabaseUpdate object itself.

withCollation

public ManagedDatabaseUpdate withCollation(String collation)

Set collation of the managed database.

Parameters:

collation - the collation value to set

Returns:

the ManagedDatabaseUpdate object itself.

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:

createMode - the createMode value to set

Returns:

the ManagedDatabaseUpdate object itself.

withRecoverableDatabaseId

public ManagedDatabaseUpdate withRecoverableDatabaseId(String recoverableDatabaseId)

Set the resource identifier of the recoverable database associated with create operation of this database.

Parameters:

recoverableDatabaseId - the recoverableDatabaseId value to set

Returns:

the ManagedDatabaseUpdate object itself.

withRestorableDroppedDatabaseId

public ManagedDatabaseUpdate withRestorableDroppedDatabaseId(String restorableDroppedDatabaseId)

Set the restorable dropped database resource id to restore when creating this database.

Parameters:

restorableDroppedDatabaseId - the restorableDroppedDatabaseId value to set

Returns:

the ManagedDatabaseUpdate object itself.

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:

restorePointInTime - the restorePointInTime value to set

Returns:

the ManagedDatabaseUpdate object itself.

withSourceDatabaseId

public ManagedDatabaseUpdate withSourceDatabaseId(String sourceDatabaseId)

Set the resource identifier of the source database associated with create operation of this database.

Parameters:

sourceDatabaseId - the sourceDatabaseId value to set

Returns:

the ManagedDatabaseUpdate object itself.

withStorageContainerSasToken

public ManagedDatabaseUpdate withStorageContainerSasToken(String storageContainerSasToken)

Set conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the storage container sas token.

Parameters:

storageContainerSasToken - the storageContainerSasToken value to set

Returns:

the ManagedDatabaseUpdate object itself.

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:

storageContainerUri - the storageContainerUri value to set

Returns:

the ManagedDatabaseUpdate object itself.

withTags

public ManagedDatabaseUpdate withTags(Map tags)

Set resource tags.

Parameters:

tags - the tags value to set

Returns:

the ManagedDatabaseUpdate object itself.

Applies to