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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncapacity()Get the capacity property: Capacity (instance count) of an application gateway.family()Get the family property: Family of an application gateway SKU.static ApplicationGatewaySkufromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApplicationGatewaySku from the JsonReader.name()Get the name property: Name of an application gateway SKU.tier()Get the tier property: Tier of an application gateway.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCapacity(Integer capacity) Set the capacity property: Capacity (instance count) of an application gateway.Set the family property: Family of an application gateway SKU.Set the name property: Name of an application gateway SKU.Set the tier property: Tier of an application gateway.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
-
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
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
Get the capacity property: Capacity (instance count) of an application gateway.- Returns:
- the capacity value.
-
withCapacity
Set the capacity property: Capacity (instance count) of an application gateway.- Parameters:
capacity- the capacity value to set.- Returns:
- the ApplicationGatewaySku object itself.
-
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
- Specified by:
toJsonin interfacecom.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.
-