ManagedDatabaseUpdate Class
- java.
lang. Object - com.
azure. resourcemanager. sql. models. ManagedDatabaseUpdate
- com.
Implements
public final class ManagedDatabaseUpdate
implements JsonSerializable<ManagedDatabaseUpdate>
An managed database update.
Constructor Summary
| Constructor | Description |
|---|---|
| ManagedDatabaseUpdate() |
Creates an instance of Managed |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Boolean |
autoCompleteRestore()
Get the auto |
|
Catalog |
catalogCollation()
Get the catalog |
| String |
collation()
Get the collation property: Collation of the managed database. |
|
Managed |
createMode()
Get the create |
|
Offset |
creationDate()
Get the creation |
| String |
defaultSecondaryLocation()
Get the default |
|
Offset |
earliestRestorePoint()
Get the earliest |
| String |
failoverGroupId()
Get the failover |
|
static
Managed |
fromJson(JsonReader jsonReader)
Reads an instance of Managed |
| String |
lastBackupName()
Get the last |
| String |
longTermRetentionBackupResourceId()
Get the long |
| String |
recoverableDatabaseId()
Get the recoverable |
| String |
restorableDroppedDatabaseId()
Get the restorable |
|
Offset |
restorePointInTime()
Get the restore |
| String |
sourceDatabaseId()
Get the source |
|
Managed |
status()
Get the status property: Status of the database. |
| String |
storageContainerSasToken()
Get the storage |
| String |
storageContainerUri()
Get the storage |
| Map<String,String> |
tags()
Get the tags property: Resource tags. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Managed |
withAutoCompleteRestore(Boolean autoCompleteRestore)
Set the auto |
|
Managed |
withCatalogCollation(CatalogCollationType catalogCollation)
Set the catalog |
|
Managed |
withCollation(String collation)
Set the collation property: Collation of the managed database. |
|
Managed |
withCreateMode(ManagedDatabaseCreateMode createMode)
Set the create |
|
Managed |
withLastBackupName(String lastBackupName)
Set the last |
|
Managed |
withLongTermRetentionBackupResourceId(String longTermRetentionBackupResourceId)
Set the long |
|
Managed |
withRecoverableDatabaseId(String recoverableDatabaseId)
Set the recoverable |
|
Managed |
withRestorableDroppedDatabaseId(String restorableDroppedDatabaseId)
Set the restorable |
|
Managed |
withRestorePointInTime(OffsetDateTime restorePointInTime)
Set the restore |
|
Managed |
withSourceDatabaseId(String sourceDatabaseId)
Set the source |
|
Managed |
withStorageContainerSasToken(String storageContainerSasToken)
Set the storage |
|
Managed |
withStorageContainerUri(String storageContainerUri)
Set the storage |
|
Managed |
withTags(Map<String,String> tags)
Set the tags property: Resource tags. |
Methods inherited from java.lang.Object
Constructor Details
ManagedDatabaseUpdate
public ManagedDatabaseUpdate()
Creates an instance of ManagedDatabaseUpdate class.
Method Details
autoCompleteRestore
public Boolean autoCompleteRestore()
Get the autoCompleteRestore property: Whether to auto complete restore of this managed database.
Returns:
catalogCollation
public CatalogCollationType catalogCollation()
Get the catalogCollation property: Collation of the metadata catalog.
Returns:
collation
public String collation()
Get the collation property: Collation of the managed database.
Returns:
createMode
public ManagedDatabaseCreateMode createMode()
Get the createMode property: 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).
Returns:
creationDate
public OffsetDateTime creationDate()
Get the creationDate property: Creation date of the database.
Returns:
defaultSecondaryLocation
public String defaultSecondaryLocation()
Get the defaultSecondaryLocation property: Geo paired region.
Returns:
earliestRestorePoint
public OffsetDateTime earliestRestorePoint()
Get the earliestRestorePoint property: Earliest restore point in time for point in time restore.
Returns:
failoverGroupId
public String failoverGroupId()
Get the failoverGroupId property: Instance Failover Group resource identifier that this managed database belongs to.
Returns:
fromJson
public static ManagedDatabaseUpdate fromJson(JsonReader jsonReader)
Reads an instance of ManagedDatabaseUpdate from the JsonReader.
Parameters:
Returns:
Throws:
lastBackupName
public String lastBackupName()
Get the lastBackupName property: Last backup file name for restore of this managed database.
Returns:
longTermRetentionBackupResourceId
public String longTermRetentionBackupResourceId()
Get the longTermRetentionBackupResourceId property: The name of the Long Term Retention backup to be used for restore of this managed database.
Returns:
recoverableDatabaseId
public String recoverableDatabaseId()
Get the recoverableDatabaseId property: The resource identifier of the recoverable database associated with create operation of this database.
Returns:
restorableDroppedDatabaseId
public String restorableDroppedDatabaseId()
Get the restorableDroppedDatabaseId property: The restorable dropped database resource id to restore when creating this database.
Returns:
restorePointInTime
public OffsetDateTime restorePointInTime()
Get the restorePointInTime property: 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 sourceDatabaseId property: The resource identifier of the source database associated with create operation of this database.
Returns:
status
public ManagedDatabaseStatus status()
Get the status property: Status of the database.
Returns:
storageContainerSasToken
public String storageContainerSasToken()
Get the storageContainerSasToken property: Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the storage container sas token.
Returns:
storageContainerUri
public String storageContainerUri()
Get the storageContainerUri property: 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<String,String> tags()
Get the tags property: Resource tags.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAutoCompleteRestore
public ManagedDatabaseUpdate withAutoCompleteRestore(Boolean autoCompleteRestore)
Set the autoCompleteRestore property: Whether to auto complete restore of this managed database.
Parameters:
Returns:
withCatalogCollation
public ManagedDatabaseUpdate withCatalogCollation(CatalogCollationType catalogCollation)
Set the catalogCollation property: Collation of the metadata catalog.
Parameters:
Returns:
withCollation
public ManagedDatabaseUpdate withCollation(String collation)
Set the collation property: Collation of the managed database.
Parameters:
Returns:
withCreateMode
public ManagedDatabaseUpdate withCreateMode(ManagedDatabaseCreateMode createMode)
Set the createMode property: 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).
Parameters:
Returns:
withLastBackupName
public ManagedDatabaseUpdate withLastBackupName(String lastBackupName)
Set the lastBackupName property: Last backup file name for restore of this managed database.
Parameters:
Returns:
withLongTermRetentionBackupResourceId
public ManagedDatabaseUpdate withLongTermRetentionBackupResourceId(String longTermRetentionBackupResourceId)
Set the longTermRetentionBackupResourceId property: The name of the Long Term Retention backup to be used for restore of this managed database.
Parameters:
Returns:
withRecoverableDatabaseId
public ManagedDatabaseUpdate withRecoverableDatabaseId(String recoverableDatabaseId)
Set the recoverableDatabaseId property: The resource identifier of the recoverable database associated with create operation of this database.
Parameters:
Returns:
withRestorableDroppedDatabaseId
public ManagedDatabaseUpdate withRestorableDroppedDatabaseId(String restorableDroppedDatabaseId)
Set the restorableDroppedDatabaseId property: The restorable dropped database resource id to restore when creating this database.
Parameters:
Returns:
withRestorePointInTime
public ManagedDatabaseUpdate withRestorePointInTime(OffsetDateTime restorePointInTime)
Set the restorePointInTime property: 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 sourceDatabaseId property: The resource identifier of the source database associated with create operation of this database.
Parameters:
Returns:
withStorageContainerSasToken
public ManagedDatabaseUpdate withStorageContainerSasToken(String storageContainerSasToken)
Set the storageContainerSasToken property: Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the storage container sas token.
Parameters:
Returns:
withStorageContainerUri
public ManagedDatabaseUpdate withStorageContainerUri(String storageContainerUri)
Set the storageContainerUri property: 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<String,String> tags)
Set the tags property: Resource tags.
Parameters:
Returns: