Class VnetGatewayProperties

java.lang.Object
com.azure.resourcemanager.appservice.fluent.models.VnetGatewayProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<VnetGatewayProperties>

public final class VnetGatewayProperties extends Object implements com.azure.json.JsonSerializable<VnetGatewayProperties>
VnetGateway resource specific properties.
  • Constructor Details

    • VnetGatewayProperties

      public VnetGatewayProperties()
      Creates an instance of VnetGatewayProperties class.
  • Method Details

    • vnetName

      public String vnetName()
      Get the vnetName property: The Virtual Network name.
      Returns:
      the vnetName value.
    • withVnetName

      public VnetGatewayProperties withVnetName(String vnetName)
      Set the vnetName property: The Virtual Network name.
      Parameters:
      vnetName - the vnetName value to set.
      Returns:
      the VnetGatewayProperties object itself.
    • vpnPackageUri

      public String vpnPackageUri()
      Get the vpnPackageUri property: The URI where the VPN package can be downloaded.
      Returns:
      the vpnPackageUri value.
    • withVpnPackageUri

      public VnetGatewayProperties withVpnPackageUri(String vpnPackageUri)
      Set the vpnPackageUri property: The URI where the VPN package can be downloaded.
      Parameters:
      vpnPackageUri - the vpnPackageUri value to set.
      Returns:
      the VnetGatewayProperties object itself.
    • 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<VnetGatewayProperties>
      Throws:
      IOException
    • fromJson

      public static VnetGatewayProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of VnetGatewayProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of VnetGatewayProperties 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 VnetGatewayProperties.