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 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

      public Integer 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.