Class VirtualMachineScaleSetSkuCapacity

java.lang.Object
com.azure.resourcemanager.compute.models.VirtualMachineScaleSetSkuCapacity
All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualMachineScaleSetSkuCapacity>

public final class VirtualMachineScaleSetSkuCapacity extends Object implements com.azure.json.JsonSerializable<VirtualMachineScaleSetSkuCapacity>
Describes scaling information of a sku.
  • Constructor Details

    • VirtualMachineScaleSetSkuCapacity

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

    • minimum

      public Long minimum()
      Get the minimum property: The minimum capacity.
      Returns:
      the minimum value.
    • maximum

      public Long maximum()
      Get the maximum property: The maximum capacity that can be set.
      Returns:
      the maximum value.
    • defaultCapacity

      public Long defaultCapacity()
      Get the defaultCapacity property: The default capacity.
      Returns:
      the defaultCapacity value.
    • scaleType

      Get the scaleType property: The scale type applicable to the sku.
      Returns:
      the scaleType value.
    • 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<VirtualMachineScaleSetSkuCapacity>
      Throws:
      IOException
    • fromJson

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