Class ApplicationGatewayAutoscaleConfiguration

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

public final class ApplicationGatewayAutoscaleConfiguration extends Object implements com.azure.json.JsonSerializable<ApplicationGatewayAutoscaleConfiguration>
Application Gateway autoscale configuration.
  • Constructor Details

    • ApplicationGatewayAutoscaleConfiguration

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

    • minCapacity

      public int minCapacity()
      Get the minCapacity property: Lower bound on number of Application Gateway capacity.
      Returns:
      the minCapacity value.
    • withMinCapacity

      public ApplicationGatewayAutoscaleConfiguration withMinCapacity(int minCapacity)
      Set the minCapacity property: Lower bound on number of Application Gateway capacity.
      Parameters:
      minCapacity - the minCapacity value to set.
      Returns:
      the ApplicationGatewayAutoscaleConfiguration object itself.
    • maxCapacity

      public Integer maxCapacity()
      Get the maxCapacity property: Upper bound on number of Application Gateway capacity.
      Returns:
      the maxCapacity value.
    • withMaxCapacity

      public ApplicationGatewayAutoscaleConfiguration withMaxCapacity(Integer maxCapacity)
      Set the maxCapacity property: Upper bound on number of Application Gateway capacity.
      Parameters:
      maxCapacity - the maxCapacity value to set.
      Returns:
      the ApplicationGatewayAutoscaleConfiguration 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<ApplicationGatewayAutoscaleConfiguration>
      Throws:
      IOException
    • fromJson

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