Class VirtualNetworkGatewaySku
java.lang.Object
com.azure.resourcemanager.network.models.VirtualNetworkGatewaySku
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualNetworkGatewaySku>
public final class VirtualNetworkGatewaySku
extends Object
implements com.azure.json.JsonSerializable<VirtualNetworkGatewaySku>
VirtualNetworkGatewaySku details.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualNetworkGatewaySku class. -
Method Summary
Modifier and TypeMethodDescriptioncapacity()Get the capacity property: The capacity.static VirtualNetworkGatewaySkufromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualNetworkGatewaySku from the JsonReader.name()Get the name property: Gateway SKU name.tier()Get the tier property: Gateway SKU tier.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the name property: Gateway SKU name.Set the tier property: Gateway SKU tier.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
-
VirtualNetworkGatewaySku
public VirtualNetworkGatewaySku()Creates an instance of VirtualNetworkGatewaySku class.
-
-
Method Details
-
name
Get the name property: Gateway SKU name.- Returns:
- the name value.
-
withName
Set the name property: Gateway SKU name.- Parameters:
name- the name value to set.- Returns:
- the VirtualNetworkGatewaySku object itself.
-
tier
Get the tier property: Gateway SKU tier.- Returns:
- the tier value.
-
withTier
Set the tier property: Gateway SKU tier.- Parameters:
tier- the tier value to set.- Returns:
- the VirtualNetworkGatewaySku object itself.
-
capacity
Get the capacity property: The capacity.- Returns:
- the capacity value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VirtualNetworkGatewaySku>- Throws:
IOException
-
fromJson
public static VirtualNetworkGatewaySku fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualNetworkGatewaySku from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualNetworkGatewaySku 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 VirtualNetworkGatewaySku.
-