Class ExpressRouteGatewayPropertiesAutoScaleConfiguration
java.lang.Object
com.azure.resourcemanager.network.models.ExpressRouteGatewayPropertiesAutoScaleConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ExpressRouteGatewayPropertiesAutoScaleConfiguration>
public final class ExpressRouteGatewayPropertiesAutoScaleConfiguration
extends Object
implements com.azure.json.JsonSerializable<ExpressRouteGatewayPropertiesAutoScaleConfiguration>
Configuration for auto scaling.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ExpressRouteGatewayPropertiesAutoScaleConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionbounds()Get the bounds property: Minimum and maximum number of scale units to deploy.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ExpressRouteGatewayPropertiesAutoScaleConfiguration from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the bounds property: Minimum and maximum number of scale units to deploy.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ExpressRouteGatewayPropertiesAutoScaleConfiguration
public ExpressRouteGatewayPropertiesAutoScaleConfiguration()Creates an instance of ExpressRouteGatewayPropertiesAutoScaleConfiguration class.
-
-
Method Details
-
bounds
Get the bounds property: Minimum and maximum number of scale units to deploy.- Returns:
- the bounds value.
-
withBounds
public ExpressRouteGatewayPropertiesAutoScaleConfiguration withBounds(ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds bounds) Set the bounds property: Minimum and maximum number of scale units to deploy.- Parameters:
bounds- the bounds value to set.- Returns:
- the ExpressRouteGatewayPropertiesAutoScaleConfiguration object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ExpressRouteGatewayPropertiesAutoScaleConfiguration>- Throws:
IOException
-
fromJson
public static ExpressRouteGatewayPropertiesAutoScaleConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ExpressRouteGatewayPropertiesAutoScaleConfiguration from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ExpressRouteGatewayPropertiesAutoScaleConfiguration 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 ExpressRouteGatewayPropertiesAutoScaleConfiguration.
-