Class SqlPoolPatchInfo
A SQL Analytics pool patch info.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the collation property: Collation mode.Get the createMode property: Specifies the mode of sql pool creation.Get the creationDate property: Date the SQL pool was created.location()
Get the location property: The geo-location where the resource lives.Get the maxSizeBytes property: Maximum size in bytes.Get the provisioningState property: Resource state.Get the recoverableDatabaseId property: Backup database to restore from.Get the restorePointInTime property: Snapshot time to restore.sku()
Get the sku property: SkuGet the sourceDatabaseDeletionDate property: Specifies the time that the sql pool was deleted.Get the sourceDatabaseId property: Source database to create from.status()
Get the status property: Resource status.Get the storageAccountType property: The storage account type used to store backups for this sql pool.tags()
Get the tags property: Resource tags.void
validate()
Validates the instance.withCollation
(String collation) Set the collation property: Collation mode.withCreateMode
(CreateMode createMode) Set the createMode property: Specifies the mode of sql pool creation.withLocation
(String location) Set the location property: The geo-location where the resource lives.withMaxSizeBytes
(Long maxSizeBytes) Set the maxSizeBytes property: Maximum size in bytes.withProvisioningState
(String provisioningState) Set the provisioningState property: Resource state.withRecoverableDatabaseId
(String recoverableDatabaseId) Set the recoverableDatabaseId property: Backup database to restore from.withRestorePointInTime
(OffsetDateTime restorePointInTime) Set the restorePointInTime property: Snapshot time to restore.Set the sku property: SkuwithSourceDatabaseDeletionDate
(OffsetDateTime sourceDatabaseDeletionDate) Set the sourceDatabaseDeletionDate property: Specifies the time that the sql pool was deleted.withSourceDatabaseId
(String sourceDatabaseId) Set the sourceDatabaseId property: Source database to create from.withStorageAccountType
(StorageAccountType storageAccountType) Set the storageAccountType property: The storage account type used to store backups for this sql pool.Set the tags property: Resource tags.
-
Constructor Details
-
SqlPoolPatchInfo
public SqlPoolPatchInfo()Creates an instance of SqlPoolPatchInfo class.
-
-
Method Details
-
tags
Get the tags property: Resource tags.- Returns:
- the tags value.
-
withTags
Set the tags property: Resource tags.- Parameters:
tags
- the tags value to set.- Returns:
- the SqlPoolPatchInfo object itself.
-
location
Get the location property: The geo-location where the resource lives.- Returns:
- the location value.
-
withLocation
Set the location property: The geo-location where the resource lives.- Parameters:
location
- the location value to set.- Returns:
- the SqlPoolPatchInfo object itself.
-
sku
Get the sku property: SkuSQL pool SKU.
- Returns:
- the sku value.
-
withSku
Set the sku property: SkuSQL pool SKU.
- Parameters:
sku
- the sku value to set.- Returns:
- the SqlPoolPatchInfo object itself.
-
maxSizeBytes
Get the maxSizeBytes property: Maximum size in bytes.- Returns:
- the maxSizeBytes value.
-
withMaxSizeBytes
Set the maxSizeBytes property: Maximum size in bytes.- Parameters:
maxSizeBytes
- the maxSizeBytes value to set.- Returns:
- the SqlPoolPatchInfo object itself.
-
collation
Get the collation property: Collation mode.- Returns:
- the collation value.
-
withCollation
Set the collation property: Collation mode.- Parameters:
collation
- the collation value to set.- Returns:
- the SqlPoolPatchInfo object itself.
-
sourceDatabaseId
Get the sourceDatabaseId property: Source database to create from.- Returns:
- the sourceDatabaseId value.
-
withSourceDatabaseId
Set the sourceDatabaseId property: Source database to create from.- Parameters:
sourceDatabaseId
- the sourceDatabaseId value to set.- Returns:
- the SqlPoolPatchInfo object itself.
-
recoverableDatabaseId
Get the recoverableDatabaseId property: Backup database to restore from.- Returns:
- the recoverableDatabaseId value.
-
withRecoverableDatabaseId
Set the recoverableDatabaseId property: Backup database to restore from.- Parameters:
recoverableDatabaseId
- the recoverableDatabaseId value to set.- Returns:
- the SqlPoolPatchInfo object itself.
-
provisioningState
Get the provisioningState property: Resource state.- Returns:
- the provisioningState value.
-
withProvisioningState
Set the provisioningState property: Resource state.- Parameters:
provisioningState
- the provisioningState value to set.- Returns:
- the SqlPoolPatchInfo object itself.
-
status
Get the status property: Resource status.- Returns:
- the status value.
-
restorePointInTime
Get the restorePointInTime property: Snapshot time to restore.- Returns:
- the restorePointInTime value.
-
withRestorePointInTime
Set the restorePointInTime property: Snapshot time to restore.- Parameters:
restorePointInTime
- the restorePointInTime value to set.- Returns:
- the SqlPoolPatchInfo object itself.
-
createMode
Get the createMode property: Specifies the mode of sql pool creation.Default: regular sql pool creation.
PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be specified.
Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the recoverableDatabaseId to restore.
Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified.
- Returns:
- the createMode value.
-
withCreateMode
Set the createMode property: Specifies the mode of sql pool creation.Default: regular sql pool creation.
PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be specified.
Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the recoverableDatabaseId to restore.
Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified.
- Parameters:
createMode
- the createMode value to set.- Returns:
- the SqlPoolPatchInfo object itself.
-
creationDate
Get the creationDate property: Date the SQL pool was created.- Returns:
- the creationDate value.
-
storageAccountType
Get the storageAccountType property: The storage account type used to store backups for this sql pool.- Returns:
- the storageAccountType value.
-
withStorageAccountType
Set the storageAccountType property: The storage account type used to store backups for this sql pool.- Parameters:
storageAccountType
- the storageAccountType value to set.- Returns:
- the SqlPoolPatchInfo object itself.
-
sourceDatabaseDeletionDate
Get the sourceDatabaseDeletionDate property: Specifies the time that the sql pool was deleted.- Returns:
- the sourceDatabaseDeletionDate value.
-
withSourceDatabaseDeletionDate
Set the sourceDatabaseDeletionDate property: Specifies the time that the sql pool was deleted.- Parameters:
sourceDatabaseDeletionDate
- the sourceDatabaseDeletionDate value to set.- Returns:
- the SqlPoolPatchInfo object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-