ManagedDatabaseInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. sql. fluent. models. ManagedDatabaseInner
- com.
- com.
- com.
public final class ManagedDatabaseInner
extends Resource
A managed database resource.
Constructor Summary
| Constructor | Description |
|---|---|
| ManagedDatabaseInner() |
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 |
crossSubscriptionRestorableDroppedDatabaseId()
Get the cross |
| String |
crossSubscriptionSourceDatabaseId()
Get the cross |
| String |
crossSubscriptionTargetManagedInstanceId()
Get the cross |
| 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 |
id()
Get the id property: Fully qualified resource Id for the resource. |
| Boolean |
isLedgerOn()
Get the is |
| String |
lastBackupName()
Get the last |
| String |
longTermRetentionBackupResourceId()
Get the long |
| String |
name()
Get the name property: The name of the resource. |
| 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 |
storageContainerIdentity()
Get the storage |
| String |
storageContainerSasToken()
Get the storage |
| String |
storageContainerUri()
Get the storage |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| 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 |
withCrossSubscriptionRestorableDroppedDatabaseId(String crossSubscriptionRestorableDroppedDatabaseId)
Set the cross |
|
Managed |
withCrossSubscriptionSourceDatabaseId(String crossSubscriptionSourceDatabaseId)
Set the cross |
|
Managed |
withCrossSubscriptionTargetManagedInstanceId(String crossSubscriptionTargetManagedInstanceId)
Set the cross |
|
Managed |
withIsLedgerOn(Boolean isLedgerOn)
Set the is |
|
Managed |
withLastBackupName(String lastBackupName)
Set the last |
|
Managed |
withLocation(String location) |
|
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 |
withStorageContainerIdentity(String storageContainerIdentity)
Set the storage |
|
Managed |
withStorageContainerSasToken(String storageContainerSasToken)
Set the storage |
|
Managed |
withStorageContainerUri(String storageContainerUri)
Set the storage |
|
Managed |
withTags(Map<String,String> tags) |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
ManagedDatabaseInner
public ManagedDatabaseInner()
Creates an instance of ManagedDatabaseInner 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:
crossSubscriptionRestorableDroppedDatabaseId
public String crossSubscriptionRestorableDroppedDatabaseId()
Get the crossSubscriptionRestorableDroppedDatabaseId property: The restorable cross-subscription dropped database resource id to restore when creating this database.
Returns:
crossSubscriptionSourceDatabaseId
public String crossSubscriptionSourceDatabaseId()
Get the crossSubscriptionSourceDatabaseId property: The resource identifier of the cross-subscription source database associated with create operation of this database.
Returns:
crossSubscriptionTargetManagedInstanceId
public String crossSubscriptionTargetManagedInstanceId()
Get the crossSubscriptionTargetManagedInstanceId property: Target managed instance id used in cross-subscription restore.
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 ManagedDatabaseInner fromJson(JsonReader jsonReader)
Reads an instance of ManagedDatabaseInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
ManagedDatabaseInner.id()Returns:
isLedgerOn
public Boolean isLedgerOn()
Get the isLedgerOn property: Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created.
Returns:
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:
name
public String name()
Get the name property: The name of the resource.
Overrides:
ManagedDatabaseInner.name()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:
storageContainerIdentity
public String storageContainerIdentity()
Get the storageContainerIdentity property: Conditional. If createMode is RestoreExternalBackup, this value is used. Specifies the identity used for storage container authentication. Can be 'SharedAccessSignature' or 'ManagedIdentity'; if not specified 'SharedAccessSignature' is assumed.
Returns:
storageContainerSasToken
public String storageContainerSasToken()
Get the storageContainerSasToken property: Conditional. If createMode is RestoreExternalBackup and storageContainerIdentity is not ManagedIdentity, 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:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ManagedDatabaseInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
ManagedDatabaseInner.type()Returns:
validate
public void validate()
Validates the instance.
withAutoCompleteRestore
public ManagedDatabaseInner withAutoCompleteRestore(Boolean autoCompleteRestore)
Set the autoCompleteRestore property: Whether to auto complete restore of this managed database.
Parameters:
Returns:
withCatalogCollation
public ManagedDatabaseInner withCatalogCollation(CatalogCollationType catalogCollation)
Set the catalogCollation property: Collation of the metadata catalog.
Parameters:
Returns:
withCollation
public ManagedDatabaseInner withCollation(String collation)
Set the collation property: Collation of the managed database.
Parameters:
Returns:
withCreateMode
public ManagedDatabaseInner 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:
withCrossSubscriptionRestorableDroppedDatabaseId
public ManagedDatabaseInner withCrossSubscriptionRestorableDroppedDatabaseId(String crossSubscriptionRestorableDroppedDatabaseId)
Set the crossSubscriptionRestorableDroppedDatabaseId property: The restorable cross-subscription dropped database resource id to restore when creating this database.
Parameters:
Returns:
withCrossSubscriptionSourceDatabaseId
public ManagedDatabaseInner withCrossSubscriptionSourceDatabaseId(String crossSubscriptionSourceDatabaseId)
Set the crossSubscriptionSourceDatabaseId property: The resource identifier of the cross-subscription source database associated with create operation of this database.
Parameters:
Returns:
withCrossSubscriptionTargetManagedInstanceId
public ManagedDatabaseInner withCrossSubscriptionTargetManagedInstanceId(String crossSubscriptionTargetManagedInstanceId)
Set the crossSubscriptionTargetManagedInstanceId property: Target managed instance id used in cross-subscription restore.
Parameters:
Returns:
withIsLedgerOn
public ManagedDatabaseInner withIsLedgerOn(Boolean isLedgerOn)
Set the isLedgerOn property: Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created.
Parameters:
Returns:
withLastBackupName
public ManagedDatabaseInner withLastBackupName(String lastBackupName)
Set the lastBackupName property: Last backup file name for restore of this managed database.
Parameters:
Returns:
withLocation
public ManagedDatabaseInner withLocation(String location)
Overrides:
ManagedDatabaseInner.withLocation(String location)Parameters:
withLongTermRetentionBackupResourceId
public ManagedDatabaseInner 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 ManagedDatabaseInner 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 ManagedDatabaseInner withRestorableDroppedDatabaseId(String restorableDroppedDatabaseId)
Set the restorableDroppedDatabaseId property: The restorable dropped database resource id to restore when creating this database.
Parameters:
Returns:
withRestorePointInTime
public ManagedDatabaseInner 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 ManagedDatabaseInner withSourceDatabaseId(String sourceDatabaseId)
Set the sourceDatabaseId property: The resource identifier of the source database associated with create operation of this database.
Parameters:
Returns:
withStorageContainerIdentity
public ManagedDatabaseInner withStorageContainerIdentity(String storageContainerIdentity)
Set the storageContainerIdentity property: Conditional. If createMode is RestoreExternalBackup, this value is used. Specifies the identity used for storage container authentication. Can be 'SharedAccessSignature' or 'ManagedIdentity'; if not specified 'SharedAccessSignature' is assumed.
Parameters:
Returns:
withStorageContainerSasToken
public ManagedDatabaseInner withStorageContainerSasToken(String storageContainerSasToken)
Set the storageContainerSasToken property: Conditional. If createMode is RestoreExternalBackup and storageContainerIdentity is not ManagedIdentity, this value is required. Specifies the storage container sas token.
Parameters:
Returns:
withStorageContainerUri
public ManagedDatabaseInner 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 ManagedDatabaseInner withTags(Map<String,String> tags)
Overrides:
ManagedDatabaseInner.withTags(Map<String,String> tags)Parameters: