Class ElasticPoolInner


  • public class ElasticPoolInner
    extends com.azure.core.management.Resource
    An elastic pool.
    • Constructor Detail

      • ElasticPoolInner

        public ElasticPoolInner()
    • Method Detail

      • 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 <location> -o table ````.

        Returns:
        the sku value.
      • 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 <location> -o table ````.

        Parameters:
        sku - the sku value to set.
        Returns:
        the ElasticPoolInner object itself.
      • kind

        public String kind()
        Get the kind property: Kind of elastic pool. This is metadata used for the Azure portal experience.
        Returns:
        the kind value.
      • 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 ElasticPoolInner 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 ElasticPoolInner object itself.
      • perDatabaseSettings

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

        public ElasticPoolInner withPerDatabaseSettings​(ElasticPoolPerDatabaseSettings perDatabaseSettings)
        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

        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 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:
        zoneRedundant - the zoneRedundant value to set.
        Returns:
        the ElasticPoolInner 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 ElasticPoolInner 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 ElasticPoolInner object itself.
      • validate

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