SqlPoolPatchInfo Class

  • java.lang.Object
    • com.azure.resourcemanager.synapse.models.SqlPoolPatchInfo

Implements

public final class SqlPoolPatchInfo
implements JsonSerializable<SqlPoolPatchInfo>

SQL pool patch info A SQL Analytics pool patch info.

Constructor Summary

Constructor Description
SqlPoolPatchInfo()

Creates an instance of SqlPoolPatchInfo class.

Method Summary

Modifier and Type Method and 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.

static SqlPoolPatchInfo fromJson(JsonReader jsonReader)

Reads an instance of SqlPoolPatchInfo from the JsonReader.

String location()

Get the location property: The geo-location where the resource lives.

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.

Sku sku()

Get the sku property: SQL pool SKU.

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.

Map<String,String> tags()

Get the tags property: Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SqlPoolPatchInfo withCollation(String collation)

Set the collation property: Collation mode.

SqlPoolPatchInfo withCreateMode(CreateMode createMode)

Set the createMode property: Specifies the mode of sql pool creation.

SqlPoolPatchInfo withCreationDate(OffsetDateTime creationDate)

Set the creationDate property: Date the SQL pool was created.

SqlPoolPatchInfo withLocation(String location)

Set the location property: The geo-location where the resource lives.

SqlPoolPatchInfo withMaxSizeBytes(Long maxSizeBytes)

Set the maxSizeBytes property: Maximum size in bytes.

SqlPoolPatchInfo withProvisioningState(String provisioningState)

Set the provisioningState property: Resource state.

SqlPoolPatchInfo withRecoverableDatabaseId(String recoverableDatabaseId)

Set the recoverableDatabaseId property: Backup database to restore from.

SqlPoolPatchInfo withRestorePointInTime(OffsetDateTime restorePointInTime)

Set the restorePointInTime property: Snapshot time to restore.

SqlPoolPatchInfo withSku(Sku sku)

Set the sku property: SQL pool SKU.

SqlPoolPatchInfo withSourceDatabaseId(String sourceDatabaseId)

Set the sourceDatabaseId property: Source database to create from.

SqlPoolPatchInfo withStatus(String status)

Set the status property: Resource status.

SqlPoolPatchInfo withStorageAccountType(StorageAccountType storageAccountType)

Set the storageAccountType property: The storage account type used to store backups for this sql pool.

SqlPoolPatchInfo withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Methods inherited from java.lang.Object

Constructor Details

SqlPoolPatchInfo

public SqlPoolPatchInfo()

Creates an instance of SqlPoolPatchInfo class.

Method Details

collation

public String collation()

Get the collation property: Collation mode.

Returns:

the collation value.

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.

creationDate

public OffsetDateTime creationDate()

Get the creationDate property: Date the SQL pool was created.

Returns:

the creationDate value.

fromJson

public static SqlPoolPatchInfo fromJson(JsonReader jsonReader)

Reads an instance of SqlPoolPatchInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SqlPoolPatchInfo if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the SqlPoolPatchInfo.

location

public String location()

Get the location property: The geo-location where the resource lives.

Returns:

the location value.

maxSizeBytes

public Long maxSizeBytes()

Get the maxSizeBytes property: Maximum size in bytes.

Returns:

the maxSizeBytes value.

provisioningState

public String provisioningState()

Get the provisioningState property: Resource state.

Returns:

the provisioningState value.

recoverableDatabaseId

public String recoverableDatabaseId()

Get the recoverableDatabaseId property: Backup database to restore from.

Returns:

the recoverableDatabaseId value.

restorePointInTime

public OffsetDateTime restorePointInTime()

Get the restorePointInTime property: Snapshot time to restore.

Returns:

the restorePointInTime value.

sku

public Sku sku()

Get the sku property: SQL pool SKU.

Returns:

the sku value.

sourceDatabaseId

public String sourceDatabaseId()

Get the sourceDatabaseId property: Source database to create from.

Returns:

the sourceDatabaseId value.

status

public String status()

Get the status property: Resource status.

Returns:

the status 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.

tags

public Map<String,String> tags()

Get the tags property: Resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCollation

public SqlPoolPatchInfo withCollation(String collation)

Set the collation property: Collation mode.

Parameters:

collation - the collation value to set.

Returns:

the SqlPoolPatchInfo object itself.

withCreateMode

public SqlPoolPatchInfo 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 SqlPoolPatchInfo object itself.

withCreationDate

public SqlPoolPatchInfo withCreationDate(OffsetDateTime creationDate)

Set the creationDate property: Date the SQL pool was created.

Parameters:

creationDate - the creationDate value to set.

Returns:

the SqlPoolPatchInfo object itself.

withLocation

public SqlPoolPatchInfo withLocation(String location)

Set the location property: The geo-location where the resource lives.

Parameters:

location - the location value to set.

Returns:

the SqlPoolPatchInfo object itself.

withMaxSizeBytes

public SqlPoolPatchInfo withMaxSizeBytes(Long maxSizeBytes)

Set the maxSizeBytes property: Maximum size in bytes.

Parameters:

maxSizeBytes - the maxSizeBytes value to set.

Returns:

the SqlPoolPatchInfo object itself.

withProvisioningState

public SqlPoolPatchInfo withProvisioningState(String provisioningState)

Set the provisioningState property: Resource state.

Parameters:

provisioningState - the provisioningState value to set.

Returns:

the SqlPoolPatchInfo object itself.

withRecoverableDatabaseId

public SqlPoolPatchInfo withRecoverableDatabaseId(String recoverableDatabaseId)

Set the recoverableDatabaseId property: Backup database to restore from.

Parameters:

recoverableDatabaseId - the recoverableDatabaseId value to set.

Returns:

the SqlPoolPatchInfo object itself.

withRestorePointInTime

public SqlPoolPatchInfo withRestorePointInTime(OffsetDateTime restorePointInTime)

Set the restorePointInTime property: Snapshot time to restore.

Parameters:

restorePointInTime - the restorePointInTime value to set.

Returns:

the SqlPoolPatchInfo object itself.

withSku

public SqlPoolPatchInfo withSku(Sku sku)

Set the sku property: SQL pool SKU.

Parameters:

sku - the sku value to set.

Returns:

the SqlPoolPatchInfo object itself.

withSourceDatabaseId

public SqlPoolPatchInfo withSourceDatabaseId(String sourceDatabaseId)

Set the sourceDatabaseId property: Source database to create from.

Parameters:

sourceDatabaseId - the sourceDatabaseId value to set.

Returns:

the SqlPoolPatchInfo object itself.

withStatus

public SqlPoolPatchInfo withStatus(String status)

Set the status property: Resource status.

Parameters:

status - the status value to set.

Returns:

the SqlPoolPatchInfo object itself.

withStorageAccountType

public SqlPoolPatchInfo 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 SqlPoolPatchInfo object itself.

withTags

public SqlPoolPatchInfo withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the SqlPoolPatchInfo object itself.

Applies to