Class ElasticPoolProperties

java.lang.Object
com.azure.resourcemanager.sql.fluent.models.ElasticPoolProperties

public final class ElasticPoolProperties extends Object
Properties of an elastic pool.
  • Constructor Details

    • ElasticPoolProperties

      public ElasticPoolProperties()
      Creates an instance of ElasticPoolProperties class.
  • Method Details

    • state

      public ElasticPoolState state()
      Get the state property: The state of the elastic pool.
      Returns:
      the state value.
    • creationDate

      public OffsetDateTime creationDate()
      Get the creationDate property: The creation date of the elastic pool (ISO8601 format).
      Returns:
      the creationDate value.
    • maxSizeBytes

      public Long maxSizeBytes()
      Get the maxSizeBytes property: The storage limit for the database elastic pool in bytes.
      Returns:
      the maxSizeBytes value.
    • withMaxSizeBytes

      public ElasticPoolProperties 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 ElasticPoolProperties object itself.
    • minCapacity

      public Double minCapacity()
      Get the minCapacity property: Minimal capacity that serverless pool will not shrink below, if not paused.
      Returns:
      the minCapacity value.
    • withMinCapacity

      public ElasticPoolProperties 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 ElasticPoolProperties object itself.
    • perDatabaseSettings

      public ElasticPoolPerDatabaseSettings perDatabaseSettings()
      Get the perDatabaseSettings property: The per database settings for the elastic pool.
      Returns:
      the perDatabaseSettings value.
    • withPerDatabaseSettings

      public ElasticPoolProperties withPerDatabaseSettings(ElasticPoolPerDatabaseSettings perDatabaseSettings)
      Set the perDatabaseSettings property: The per database settings for the elastic pool.
      Parameters:
      perDatabaseSettings - the perDatabaseSettings value to set.
      Returns:
      the ElasticPoolProperties 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.
    • 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:
      zoneRedundant - the zoneRedundant value to set.
      Returns:
      the ElasticPoolProperties object itself.
    • licenseType

      public ElasticPoolLicenseType licenseType()
      Get the licenseType property: The license type to apply for this elastic pool.
      Returns:
      the licenseType value.
    • withLicenseType

      public ElasticPoolProperties 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 ElasticPoolProperties object itself.
    • 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.
    • 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:
      maintenanceConfigurationId - the maintenanceConfigurationId value to set.
      Returns:
      the ElasticPoolProperties object itself.
    • 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.
    • 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:
      highAvailabilityReplicaCount - the highAvailabilityReplicaCount value to set.
      Returns:
      the ElasticPoolProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.