Class GatewayResourceSkuResultInner

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

public final class GatewayResourceSkuResultInner extends Object implements com.azure.json.JsonSerializable<GatewayResourceSkuResultInner>
Describes an available API Management gateway SKU.
  • Constructor Details

    • GatewayResourceSkuResultInner

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

    • resourceType

      public String resourceType()
      Get the resourceType property: The type of resource the SKU applies to.
      Returns:
      the resourceType value.
    • sku

      public GatewaySku sku()
      Get the sku property: Specifies API Management gateway SKU.
      Returns:
      the sku value.
    • capacity

      public GatewaySkuCapacity capacity()
      Get the capacity property: Specifies the number of API Management gateway units.
      Returns:
      the capacity 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<GatewayResourceSkuResultInner>
      Throws:
      IOException
    • fromJson

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