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 Summary
ConstructorDescriptionCreates an instance of ApplicationGatewayAutoscaleConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ApplicationGatewayAutoscaleConfiguration from the JsonReader.Get the maxCapacity property: Upper bound on number of Application Gateway capacity.int
Get the minCapacity property: Lower bound on number of Application Gateway capacity.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withMaxCapacity
(Integer maxCapacity) Set the maxCapacity property: Upper bound on number of Application Gateway capacity.withMinCapacity
(int minCapacity) Set the minCapacity property: Lower bound on number of Application Gateway capacity.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
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
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
Get the maxCapacity property: Upper bound on number of Application Gateway capacity.- Returns:
- the maxCapacity value.
-
withMaxCapacity
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
- Specified by:
toJson
in interfacecom.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.
-