ElasticPoolProperties Class
- java.
lang. Object - com.
azure. resourcemanager. sql. fluent. models. ElasticPoolProperties
- com.
Implements
public final class ElasticPoolProperties
implements JsonSerializable<ElasticPoolProperties>
Properties of an elastic pool.
Constructor Summary
| Constructor | Description |
|---|---|
| ElasticPoolProperties() |
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 |
|
Elastic |
licenseType()
Get the license |
| String |
maintenanceConfigurationId()
Get the maintenance |
| Long |
maxSizeBytes()
Get the max |
| Double |
minCapacity()
Get the min |
|
Elastic |
perDatabaseSettings()
Get the per |
|
Elastic |
state()
Get the state property: The state of the elastic pool. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Elastic |
withHighAvailabilityReplicaCount(Integer highAvailabilityReplicaCount)
Set the high |
|
Elastic |
withLicenseType(ElasticPoolLicenseType licenseType)
Set the license |
|
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 |
withZoneRedundant(Boolean zoneRedundant)
Set the zone |
| Boolean |
zoneRedundant()
Get the zone |
Methods inherited from java.lang.Object
Constructor Details
ElasticPoolProperties
public ElasticPoolProperties()
Creates an instance of ElasticPoolProperties class.
Method Details
creationDate
public OffsetDateTime creationDate()
Get the creationDate property: The creation date of the elastic pool (ISO8601 format).
Returns:
fromJson
public static ElasticPoolProperties fromJson(JsonReader jsonReader)
Reads an instance of ElasticPoolProperties 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:
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:
perDatabaseSettings
public ElasticPoolPerDatabaseSettings perDatabaseSettings()
Get the perDatabaseSettings property: The per database settings for the elastic pool.
Returns:
state
public ElasticPoolState state()
Get the state property: The state of the elastic pool.
Returns:
toJson
validate
public void validate()
Validates the instance.
withHighAvailabilityReplicaCount
public ElasticPoolProperties 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 ElasticPoolProperties withLicenseType(ElasticPoolLicenseType licenseType)
Set the licenseType property: The license type to apply for this elastic pool.
Parameters:
Returns:
withMaintenanceConfigurationId
public ElasticPoolProperties 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 ElasticPoolProperties withMaxSizeBytes(Long maxSizeBytes)
Set the maxSizeBytes property: The storage limit for the database elastic pool in bytes.
Parameters:
Returns:
withMinCapacity
public ElasticPoolProperties withMinCapacity(Double minCapacity)
Set the minCapacity property: Minimal capacity that serverless pool will not shrink below, if not paused.
Parameters:
Returns:
withPerDatabaseSettings
public ElasticPoolProperties withPerDatabaseSettings(ElasticPoolPerDatabaseSettings perDatabaseSettings)
Set the perDatabaseSettings property: The per database settings for the elastic pool.
Parameters:
Returns:
withZoneRedundant
public ElasticPoolProperties 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: