Class ElasticPoolInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.sql.fluent.models.ElasticPoolInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class ElasticPoolInner
extends com.azure.core.management.Resource
An elastic pool.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the creationDate property: The creation date of the elastic pool (ISO8601 format).static ElasticPoolInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ElasticPoolInner from the JsonReader.Get the highAvailabilityReplicaCount property: The number of secondary replicas associated with the elastic pool that are used to provide high availability.id()Get the id property: Fully qualified resource Id for the resource.kind()Get the kind property: Kind of elastic pool.Get the licenseType property: The license type to apply for this elastic pool.Get the maintenanceConfigurationId property: Maintenance configuration id assigned to the elastic pool.Get the maxSizeBytes property: The storage limit for the database elastic pool in bytes.Get the minCapacity property: Minimal capacity that serverless pool will not shrink below, if not paused.name()Get the name property: The name of the resource.Get the perDatabaseSettings property: The per database settings for the elastic pool.sku()Get the sku property: The elastic pool SKU.state()Get the state property: The state of the elastic pool.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withHighAvailabilityReplicaCount(Integer highAvailabilityReplicaCount) Set the highAvailabilityReplicaCount property: The number of secondary replicas associated with the elastic pool that are used to provide high availability.withLicenseType(ElasticPoolLicenseType licenseType) Set the licenseType property: The license type to apply for this elastic pool.withLocation(String location) withMaintenanceConfigurationId(String maintenanceConfigurationId) Set the maintenanceConfigurationId property: Maintenance configuration id assigned to the elastic pool.withMaxSizeBytes(Long maxSizeBytes) Set the maxSizeBytes property: The storage limit for the database elastic pool in bytes.withMinCapacity(Double minCapacity) Set the minCapacity property: Minimal capacity that serverless pool will not shrink below, if not paused.withPerDatabaseSettings(ElasticPoolPerDatabaseSettings perDatabaseSettings) Set the perDatabaseSettings property: The per database settings for the elastic pool.Set the sku property: The elastic pool SKU.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.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 class com.azure.core.management.Resource
location, tagsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ElasticPoolInner
public ElasticPoolInner()Creates an instance of ElasticPoolInner class.
-
-
Method Details
-
sku
Get the sku property: The elastic pool SKU. The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or the following command: ```azurecli az sql elastic-pool list-editions -l <location> -o table ````.- Returns:
- the sku value.
-
withSku
Set the sku property: The elastic pool SKU. The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or the following command: ```azurecli az sql elastic-pool list-editions -l <location> -o table ````.- Parameters:
sku- the sku value to set.- Returns:
- the ElasticPoolInner object itself.
-
kind
Get the kind property: Kind of elastic pool. This is metadata used for the Azure portal experience.- Returns:
- the kind value.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
withLocation
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
state
Get the state property: The state of the elastic pool.- Returns:
- the state value.
-
creationDate
Get the creationDate property: The creation date of the elastic pool (ISO8601 format).- Returns:
- the creationDate value.
-
maxSizeBytes
Get the maxSizeBytes property: The storage limit for the database elastic pool in bytes.- Returns:
- the maxSizeBytes value.
-
withMaxSizeBytes
Set the maxSizeBytes property: The storage limit for the database elastic pool in bytes.- Parameters:
maxSizeBytes- the maxSizeBytes value to set.- Returns:
- the ElasticPoolInner object itself.
-
minCapacity
Get the minCapacity property: Minimal capacity that serverless pool will not shrink below, if not paused.- Returns:
- the minCapacity value.
-
withMinCapacity
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 ElasticPoolInner object itself.
-
perDatabaseSettings
Get the perDatabaseSettings property: The per database settings for the elastic pool.- Returns:
- the perDatabaseSettings value.
-
withPerDatabaseSettings
Set the perDatabaseSettings property: The per database settings for the elastic pool.- Parameters:
perDatabaseSettings- the perDatabaseSettings value to set.- Returns:
- the ElasticPoolInner object itself.
-
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.
-
withZoneRedundant
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 ElasticPoolInner object itself.
-
licenseType
Get the licenseType property: The license type to apply for this elastic pool.- Returns:
- the licenseType value.
-
withLicenseType
Set the licenseType property: The license type to apply for this elastic pool.- Parameters:
licenseType- the licenseType value to set.- Returns:
- the ElasticPoolInner object itself.
-
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.
-
withMaintenanceConfigurationId
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 ElasticPoolInner object itself.
-
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.
-
withHighAvailabilityReplicaCount
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 ElasticPoolInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.Resource- Throws:
IOException
-
fromJson
Reads an instance of ElasticPoolInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ElasticPoolInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ElasticPoolInner.
-