Class InstancePoolInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.sql.fluent.models.InstancePoolInner

public final class InstancePoolInner extends com.azure.core.management.Resource
An Azure SQL instance pool.
  • Constructor Details

    • InstancePoolInner

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

    • sku

      public Sku sku()
      Get the sku property: The name and tier of the SKU.
      Returns:
      the sku value.
    • withSku

      public InstancePoolInner withSku(Sku sku)
      Set the sku property: The name and tier of the SKU.
      Parameters:
      sku - the sku value to set.
      Returns:
      the InstancePoolInner object itself.
    • withLocation

      public InstancePoolInner withLocation(String location)
      Overrides:
      withLocation in class com.azure.core.management.Resource
    • withTags

      public InstancePoolInner withTags(Map<String,String> tags)
      Overrides:
      withTags in class com.azure.core.management.Resource
    • subnetId

      public String subnetId()
      Get the subnetId property: Resource ID of the subnet to place this instance pool in.
      Returns:
      the subnetId value.
    • withSubnetId

      public InstancePoolInner withSubnetId(String subnetId)
      Set the subnetId property: Resource ID of the subnet to place this instance pool in.
      Parameters:
      subnetId - the subnetId value to set.
      Returns:
      the InstancePoolInner object itself.
    • vCores

      public Integer vCores()
      Get the vCores property: Count of vCores belonging to this instance pool.
      Returns:
      the vCores value.
    • withVCores

      public InstancePoolInner withVCores(Integer vCores)
      Set the vCores property: Count of vCores belonging to this instance pool.
      Parameters:
      vCores - the vCores value to set.
      Returns:
      the InstancePoolInner object itself.
    • licenseType

      public InstancePoolLicenseType licenseType()
      Get the licenseType property: The license type. Possible values are 'LicenseIncluded' (price for SQL license is included) and 'BasePrice' (without SQL license price).
      Returns:
      the licenseType value.
    • withLicenseType

      public InstancePoolInner withLicenseType(InstancePoolLicenseType licenseType)
      Set the licenseType property: The license type. Possible values are 'LicenseIncluded' (price for SQL license is included) and 'BasePrice' (without SQL license price).
      Parameters:
      licenseType - the licenseType value to set.
      Returns:
      the InstancePoolInner object itself.
    • validate

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