Class SqlPoolResourceProperties
- java.lang.Object
-
- com.azure.resourcemanager.synapse.fluent.models.SqlPoolResourceProperties
-
public final class SqlPoolResourceProperties extends Object
SQL pool properties Properties of a SQL Analytics pool.
-
-
Constructor Summary
Constructors Constructor Description SqlPoolResourceProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
collation()
Get the collation property: Collation mode.CreateMode
createMode()
Get the createMode property: Specifies the mode of sql pool creation.OffsetDateTime
creationDate()
Get the creationDate property: Date the SQL pool was created.Long
maxSizeBytes()
Get the maxSizeBytes property: Maximum size in bytes.String
provisioningState()
Get the provisioningState property: Resource state.String
recoverableDatabaseId()
Get the recoverableDatabaseId property: Backup database to restore from.OffsetDateTime
restorePointInTime()
Get the restorePointInTime property: Snapshot time to restore.OffsetDateTime
sourceDatabaseDeletionDate()
Get the sourceDatabaseDeletionDate property: Specifies the time that the sql pool was deleted.String
sourceDatabaseId()
Get the sourceDatabaseId property: Source database to create from.String
status()
Get the status property: Resource status.StorageAccountType
storageAccountType()
Get the storageAccountType property: The storage account type used to store backups for this sql pool.void
validate()
Validates the instance.SqlPoolResourceProperties
withCollation(String collation)
Set the collation property: Collation mode.SqlPoolResourceProperties
withCreateMode(CreateMode createMode)
Set the createMode property: Specifies the mode of sql pool creation.SqlPoolResourceProperties
withMaxSizeBytes(Long maxSizeBytes)
Set the maxSizeBytes property: Maximum size in bytes.SqlPoolResourceProperties
withProvisioningState(String provisioningState)
Set the provisioningState property: Resource state.SqlPoolResourceProperties
withRecoverableDatabaseId(String recoverableDatabaseId)
Set the recoverableDatabaseId property: Backup database to restore from.SqlPoolResourceProperties
withRestorePointInTime(OffsetDateTime restorePointInTime)
Set the restorePointInTime property: Snapshot time to restore.SqlPoolResourceProperties
withSourceDatabaseDeletionDate(OffsetDateTime sourceDatabaseDeletionDate)
Set the sourceDatabaseDeletionDate property: Specifies the time that the sql pool was deleted.SqlPoolResourceProperties
withSourceDatabaseId(String sourceDatabaseId)
Set the sourceDatabaseId property: Source database to create from.SqlPoolResourceProperties
withStorageAccountType(StorageAccountType storageAccountType)
Set the storageAccountType property: The storage account type used to store backups for this sql pool.
-
-
-
Method Detail
-
maxSizeBytes
public Long maxSizeBytes()
Get the maxSizeBytes property: Maximum size in bytes.- Returns:
- the maxSizeBytes value.
-
withMaxSizeBytes
public SqlPoolResourceProperties withMaxSizeBytes(Long maxSizeBytes)
Set the maxSizeBytes property: Maximum size in bytes.- Parameters:
maxSizeBytes
- the maxSizeBytes value to set.- Returns:
- the SqlPoolResourceProperties object itself.
-
collation
public String collation()
Get the collation property: Collation mode.- Returns:
- the collation value.
-
withCollation
public SqlPoolResourceProperties withCollation(String collation)
Set the collation property: Collation mode.- Parameters:
collation
- the collation value to set.- Returns:
- the SqlPoolResourceProperties object itself.
-
sourceDatabaseId
public String sourceDatabaseId()
Get the sourceDatabaseId property: Source database to create from.- Returns:
- the sourceDatabaseId value.
-
withSourceDatabaseId
public SqlPoolResourceProperties withSourceDatabaseId(String sourceDatabaseId)
Set the sourceDatabaseId property: Source database to create from.- Parameters:
sourceDatabaseId
- the sourceDatabaseId value to set.- Returns:
- the SqlPoolResourceProperties object itself.
-
recoverableDatabaseId
public String recoverableDatabaseId()
Get the recoverableDatabaseId property: Backup database to restore from.- Returns:
- the recoverableDatabaseId value.
-
withRecoverableDatabaseId
public SqlPoolResourceProperties withRecoverableDatabaseId(String recoverableDatabaseId)
Set the recoverableDatabaseId property: Backup database to restore from.- Parameters:
recoverableDatabaseId
- the recoverableDatabaseId value to set.- Returns:
- the SqlPoolResourceProperties object itself.
-
provisioningState
public String provisioningState()
Get the provisioningState property: Resource state.- Returns:
- the provisioningState value.
-
withProvisioningState
public SqlPoolResourceProperties withProvisioningState(String provisioningState)
Set the provisioningState property: Resource state.- Parameters:
provisioningState
- the provisioningState value to set.- Returns:
- the SqlPoolResourceProperties object itself.
-
status
public String status()
Get the status property: Resource status.- Returns:
- the status value.
-
restorePointInTime
public OffsetDateTime restorePointInTime()
Get the restorePointInTime property: Snapshot time to restore.- Returns:
- the restorePointInTime value.
-
withRestorePointInTime
public SqlPoolResourceProperties withRestorePointInTime(OffsetDateTime restorePointInTime)
Set the restorePointInTime property: Snapshot time to restore.- Parameters:
restorePointInTime
- the restorePointInTime value to set.- Returns:
- the SqlPoolResourceProperties object itself.
-
createMode
public CreateMode 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
public SqlPoolResourceProperties withCreateMode(CreateMode createMode)
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 SqlPoolResourceProperties object itself.
-
creationDate
public OffsetDateTime creationDate()
Get the creationDate property: Date the SQL pool was created.- Returns:
- the creationDate value.
-
storageAccountType
public StorageAccountType storageAccountType()
Get the storageAccountType property: The storage account type used to store backups for this sql pool.- Returns:
- the storageAccountType value.
-
withStorageAccountType
public SqlPoolResourceProperties withStorageAccountType(StorageAccountType storageAccountType)
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 SqlPoolResourceProperties object itself.
-
sourceDatabaseDeletionDate
public OffsetDateTime sourceDatabaseDeletionDate()
Get the sourceDatabaseDeletionDate property: Specifies the time that the sql pool was deleted.- Returns:
- the sourceDatabaseDeletionDate value.
-
withSourceDatabaseDeletionDate
public SqlPoolResourceProperties withSourceDatabaseDeletionDate(OffsetDateTime sourceDatabaseDeletionDate)
Set the sourceDatabaseDeletionDate property: Specifies the time that the sql pool was deleted.- Parameters:
sourceDatabaseDeletionDate
- the sourceDatabaseDeletionDate value to set.- Returns:
- the SqlPoolResourceProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-