Class ApiManagementSkuCapacity

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

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

    • ApiManagementSkuCapacity

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

    • minimum

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

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

      public Integer defaultProperty()
      Get the defaultProperty property: The default capacity.
      Returns:
      the defaultProperty 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<ApiManagementSkuCapacity>
      Throws:
      IOException
    • fromJson

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