Share via


ElasticPoolUpdate Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.models.ElasticPoolUpdate

Implements

public final class ElasticPoolUpdate
implements JsonSerializable<ElasticPoolUpdate>

An elastic pool update.

Constructor Summary

Constructor Description
ElasticPoolUpdate()

Creates an instance of ElasticPoolUpdate class.

Method Summary

Modifier and Type Method and Description
static ElasticPoolUpdate fromJson(JsonReader jsonReader)

Reads an instance of ElasticPoolUpdate from the JsonReader.

Integer highAvailabilityReplicaCount()

Get the highAvailabilityReplicaCount property: The number of secondary replicas associated with the elastic pool that are used to provide high availability.

ElasticPoolLicenseType licenseType()

Get the licenseType property: The license type to apply for this elastic pool.

String maintenanceConfigurationId()

Get the maintenanceConfigurationId property: Maintenance configuration id assigned to the elastic pool.

Long maxSizeBytes()

Get the maxSizeBytes property: The storage limit for the database elastic pool in bytes.

Double minCapacity()

Get the minCapacity property: Minimal capacity that serverless pool will not shrink below, if not paused.

ElasticPoolPerDatabaseSettings perDatabaseSettings()

Get the perDatabaseSettings property: The per database settings for the elastic pool.

Sku sku()

Get the sku property: An ARM Resource SKU.

Map<String,String> tags()

Get the tags property: Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ElasticPoolUpdate withHighAvailabilityReplicaCount(Integer highAvailabilityReplicaCount)

Set the highAvailabilityReplicaCount property: The number of secondary replicas associated with the elastic pool that are used to provide high availability.

ElasticPoolUpdate withLicenseType(ElasticPoolLicenseType licenseType)

Set the licenseType property: The license type to apply for this elastic pool.

ElasticPoolUpdate withMaintenanceConfigurationId(String maintenanceConfigurationId)

Set the maintenanceConfigurationId property: Maintenance configuration id assigned to the elastic pool.

ElasticPoolUpdate withMaxSizeBytes(Long maxSizeBytes)

Set the maxSizeBytes property: The storage limit for the database elastic pool in bytes.

ElasticPoolUpdate withMinCapacity(Double minCapacity)

Set the minCapacity property: Minimal capacity that serverless pool will not shrink below, if not paused.

ElasticPoolUpdate withPerDatabaseSettings(ElasticPoolPerDatabaseSettings perDatabaseSettings)

Set the perDatabaseSettings property: The per database settings for the elastic pool.

ElasticPoolUpdate withSku(Sku sku)

Set the sku property: An ARM Resource SKU.

ElasticPoolUpdate withTags(Map<String,String> tags)

Set the tags property: Resource tags.

ElasticPoolUpdate withZoneRedundant(Boolean zoneRedundant)

Set the zoneRedundant property: Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones.

Boolean zoneRedundant()

Get the zoneRedundant property: Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones.

Methods inherited from java.lang.Object

Constructor Details

ElasticPoolUpdate

public ElasticPoolUpdate()

Creates an instance of ElasticPoolUpdate class.

Method Details

fromJson

public static ElasticPoolUpdate fromJson(JsonReader jsonReader)

Reads an instance of ElasticPoolUpdate from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ElasticPoolUpdate 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 ElasticPoolUpdate.

highAvailabilityReplicaCount

public Integer highAvailabilityReplicaCount()

Get the highAvailabilityReplicaCount property: The number of secondary replicas associated with the elastic pool that are used to provide high availability. Applicable only to Hyperscale elastic pools.

Returns:

the highAvailabilityReplicaCount value.

licenseType

public ElasticPoolLicenseType licenseType()

Get the licenseType property: The license type to apply for this elastic pool.

Returns:

the licenseType value.

maintenanceConfigurationId

public String maintenanceConfigurationId()

Get the maintenanceConfigurationId property: Maintenance configuration id assigned to the elastic pool. This configuration defines the period when the maintenance updates will will occur.

Returns:

the maintenanceConfigurationId value.

maxSizeBytes

public Long maxSizeBytes()

Get the maxSizeBytes property: The storage limit for the database elastic pool in bytes.

Returns:

the maxSizeBytes value.

minCapacity

public Double minCapacity()

Get the minCapacity property: Minimal capacity that serverless pool will not shrink below, if not paused.

Returns:

the minCapacity value.

perDatabaseSettings

public ElasticPoolPerDatabaseSettings perDatabaseSettings()

Get the perDatabaseSettings property: The per database settings for the elastic pool.

Returns:

the perDatabaseSettings value.

sku

public Sku sku()

Get the sku property: An ARM Resource SKU.

Returns:

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

withHighAvailabilityReplicaCount

public ElasticPoolUpdate withHighAvailabilityReplicaCount(Integer highAvailabilityReplicaCount)

Set the highAvailabilityReplicaCount property: The number of secondary replicas associated with the elastic pool that are used to provide high availability. Applicable only to Hyperscale elastic pools.

Parameters:

highAvailabilityReplicaCount - the highAvailabilityReplicaCount value to set.

Returns:

the ElasticPoolUpdate object itself.

withLicenseType

public ElasticPoolUpdate withLicenseType(ElasticPoolLicenseType licenseType)

Set the licenseType property: The license type to apply for this elastic pool.

Parameters:

licenseType - the licenseType value to set.

Returns:

the ElasticPoolUpdate object itself.

withMaintenanceConfigurationId

public ElasticPoolUpdate withMaintenanceConfigurationId(String maintenanceConfigurationId)

Set the maintenanceConfigurationId property: Maintenance configuration id assigned to the elastic pool. This configuration defines the period when the maintenance updates will will occur.

Parameters:

maintenanceConfigurationId - the maintenanceConfigurationId value to set.

Returns:

the ElasticPoolUpdate object itself.

withMaxSizeBytes

public ElasticPoolUpdate withMaxSizeBytes(Long maxSizeBytes)

Set the maxSizeBytes property: The storage limit for the database elastic pool in bytes.

Parameters:

maxSizeBytes - the maxSizeBytes value to set.

Returns:

the ElasticPoolUpdate object itself.

withMinCapacity

public ElasticPoolUpdate withMinCapacity(Double minCapacity)

Set the minCapacity property: Minimal capacity that serverless pool will not shrink below, if not paused.

Parameters:

minCapacity - the minCapacity value to set.

Returns:

the ElasticPoolUpdate object itself.

withPerDatabaseSettings

public ElasticPoolUpdate withPerDatabaseSettings(ElasticPoolPerDatabaseSettings perDatabaseSettings)

Set the perDatabaseSettings property: The per database settings for the elastic pool.

Parameters:

perDatabaseSettings - the perDatabaseSettings value to set.

Returns:

the ElasticPoolUpdate object itself.

withSku

public ElasticPoolUpdate withSku(Sku sku)

Set the sku property: An ARM Resource SKU.

Parameters:

sku - the sku value to set.

Returns:

the ElasticPoolUpdate object itself.

withTags

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

Set the tags property: Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the ElasticPoolUpdate object itself.

withZoneRedundant

public ElasticPoolUpdate withZoneRedundant(Boolean zoneRedundant)

Set the zoneRedundant property: Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones.

Parameters:

zoneRedundant - the zoneRedundant value to set.

Returns:

the ElasticPoolUpdate object itself.

zoneRedundant

public Boolean zoneRedundant()

Get the zoneRedundant property: Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones.

Returns:

the zoneRedundant value.

Applies to