Class InstancePoolProperties

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

public final class InstancePoolProperties extends Object
Properties of an instance pool.
  • Constructor Details

    • InstancePoolProperties

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

    • 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 InstancePoolProperties 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 InstancePoolProperties object itself.
    • vCores

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

      public InstancePoolProperties withVCores(int vCores)
      Set the vCores property: Count of vCores belonging to this instance pool.
      Parameters:
      vCores - the vCores value to set.
      Returns:
      the InstancePoolProperties 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 InstancePoolProperties 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 InstancePoolProperties object itself.
    • validate

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