Class ApplicationGatewaySku

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

public final class ApplicationGatewaySku extends Object implements com.azure.json.JsonSerializable<ApplicationGatewaySku>
SKU of an application gateway.
  • Constructor Details

    • ApplicationGatewaySku

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

    • name

      Get the name property: Name of an application gateway SKU.
      Returns:
      the name value.
    • withName

      Set the name property: Name of an application gateway SKU.
      Parameters:
      name - the name value to set.
      Returns:
      the ApplicationGatewaySku object itself.
    • tier

      public ApplicationGatewayTier tier()
      Get the tier property: Tier of an application gateway.
      Returns:
      the tier value.
    • withTier

      Set the tier property: Tier of an application gateway.
      Parameters:
      tier - the tier value to set.
      Returns:
      the ApplicationGatewaySku object itself.
    • capacity

      public Integer capacity()
      Get the capacity property: Capacity (instance count) of an application gateway.
      Returns:
      the capacity value.
    • withCapacity

      public ApplicationGatewaySku withCapacity(Integer capacity)
      Set the capacity property: Capacity (instance count) of an application gateway.
      Parameters:
      capacity - the capacity value to set.
      Returns:
      the ApplicationGatewaySku object itself.
    • family

      public ApplicationGatewaySkuFamily family()
      Get the family property: Family of an application gateway SKU.
      Returns:
      the family value.
    • withFamily

      Set the family property: Family of an application gateway SKU.
      Parameters:
      family - the family value to set.
      Returns:
      the ApplicationGatewaySku 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<ApplicationGatewaySku>
      Throws:
      IOException
    • fromJson

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