Class InstancePoolProperties

java.lang.Object
com.azure.resourcemanager.sql.fluent.models.InstancePoolProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<InstancePoolProperties>

public final class InstancePoolProperties extends Object implements com.azure.json.JsonSerializable<InstancePoolProperties>
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.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<InstancePoolProperties>
      Throws:
      IOException
    • fromJson

      public static InstancePoolProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of InstancePoolProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of InstancePoolProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the InstancePoolProperties.