ElasticPoolInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. sql. fluent. models. ElasticPoolInner
- com.
- com.
- com.
public final class ElasticPoolInner
extends Resource
An elastic pool.
Constructor Summary
Constructor | Description |
---|---|
ElasticPoolInner() |
Creates an instance of Elastic |
Method Summary
Modifier and Type | Method and Description |
---|---|
Offset |
creationDate()
Get the creation |
static
Elastic |
fromJson(JsonReader jsonReader)
Reads an instance of Elastic |
Integer |
highAvailabilityReplicaCount()
Get the high |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
kind()
Get the kind property: Kind of elastic pool. |
Elastic |
licenseType()
Get the license |
String |
maintenanceConfigurationId()
Get the maintenance |
Long |
maxSizeBytes()
Get the max |
Double |
minCapacity()
Get the min |
String |
name()
Get the name property: The name of the resource. |
Elastic |
perDatabaseSettings()
Get the per |
Sku |
sku()
Get the sku property: The elastic pool SKU. |
Elastic |
state()
Get the state property: The state of the elastic pool. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Elastic |
withHighAvailabilityReplicaCount(Integer highAvailabilityReplicaCount)
Set the high |
Elastic |
withLicenseType(ElasticPoolLicenseType licenseType)
Set the license |
Elastic |
withLocation(String location) |
Elastic |
withMaintenanceConfigurationId(String maintenanceConfigurationId)
Set the maintenance |
Elastic |
withMaxSizeBytes(Long maxSizeBytes)
Set the max |
Elastic |
withMinCapacity(Double minCapacity)
Set the min |
Elastic |
withPerDatabaseSettings(ElasticPoolPerDatabaseSettings perDatabaseSettings)
Set the per |
Elastic |
withSku(Sku sku)
Set the sku property: The elastic pool SKU. |
Elastic |
withTags(Map<String,String> tags) |
Elastic |
withZoneRedundant(Boolean zoneRedundant)
Set the zone |
Boolean |
zoneRedundant()
Get the zone |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
ElasticPoolInner
public ElasticPoolInner()
Creates an instance of ElasticPoolInner class.
Method Details
creationDate
public OffsetDateTime creationDate()
Get the creationDate property: The creation date of the elastic pool (ISO8601 format).
Returns:
fromJson
public static ElasticPoolInner fromJson(JsonReader jsonReader)
Reads an instance of ElasticPoolInner from the JsonReader.
Parameters:
Returns:
Throws:
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:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
ElasticPoolInner.id()Returns:
kind
public String kind()
Get the kind property: Kind of elastic pool. This is metadata used for the Azure portal experience.
Returns:
licenseType
public ElasticPoolLicenseType licenseType()
Get the licenseType property: The license type to apply for this elastic pool.
Returns:
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:
maxSizeBytes
public Long maxSizeBytes()
Get the maxSizeBytes property: The storage limit for the database elastic pool in bytes.
Returns:
minCapacity
public Double minCapacity()
Get the minCapacity property: Minimal capacity that serverless pool will not shrink below, if not paused.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
ElasticPoolInner.name()Returns:
perDatabaseSettings
public ElasticPoolPerDatabaseSettings perDatabaseSettings()
Get the perDatabaseSettings property: The per database settings for the elastic pool.
Returns:
sku
public Sku 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 -o table ````.
Returns:
state
public ElasticPoolState state()
Get the state property: The state of the elastic pool.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ElasticPoolInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
ElasticPoolInner.type()Returns:
validate
public void validate()
Validates the instance.
withHighAvailabilityReplicaCount
public ElasticPoolInner 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:
Returns:
withLicenseType
public ElasticPoolInner withLicenseType(ElasticPoolLicenseType licenseType)
Set the licenseType property: The license type to apply for this elastic pool.
Parameters:
Returns:
withLocation
public ElasticPoolInner withLocation(String location)
Overrides:
ElasticPoolInner.withLocation(String location)Parameters:
withMaintenanceConfigurationId
public ElasticPoolInner 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:
Returns:
withMaxSizeBytes
public ElasticPoolInner withMaxSizeBytes(Long maxSizeBytes)
Set the maxSizeBytes property: The storage limit for the database elastic pool in bytes.
Parameters:
Returns:
withMinCapacity
public ElasticPoolInner withMinCapacity(Double minCapacity)
Set the minCapacity property: Minimal capacity that serverless pool will not shrink below, if not paused.
Parameters:
Returns:
withPerDatabaseSettings
public ElasticPoolInner withPerDatabaseSettings(ElasticPoolPerDatabaseSettings perDatabaseSettings)
Set the perDatabaseSettings property: The per database settings for the elastic pool.
Parameters:
Returns:
withSku
public ElasticPoolInner withSku(Sku sku)
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 -o table ````.
Parameters:
Returns:
withTags
public ElasticPoolInner withTags(Map
Overrides:
ElasticPoolInner.withTags(Map<String,String> tags)Parameters:
withZoneRedundant
public ElasticPoolInner 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:
Returns:
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:
Applies to
Azure SDK for Java