Class ResourceSkuCapacity

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

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

    • ResourceSkuCapacity

      public ResourceSkuCapacity()
      Creates an instance of ResourceSkuCapacity 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.
    • defaultProperty

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

      public ResourceSkuCapacityScaleType 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<ResourceSkuCapacity>
      Throws:
      IOException
    • fromJson

      public static ResourceSkuCapacity fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ResourceSkuCapacity from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ResourceSkuCapacity 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 ResourceSkuCapacity.