Class VpnDeviceScriptParameters

java.lang.Object
com.azure.resourcemanager.network.models.VpnDeviceScriptParameters
All Implemented Interfaces:
com.azure.json.JsonSerializable<VpnDeviceScriptParameters>

public final class VpnDeviceScriptParameters extends Object implements com.azure.json.JsonSerializable<VpnDeviceScriptParameters>
Vpn device configuration script generation parameters.
  • Constructor Details

    • VpnDeviceScriptParameters

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

    • vendor

      public String vendor()
      Get the vendor property: The vendor for the vpn device.
      Returns:
      the vendor value.
    • withVendor

      public VpnDeviceScriptParameters withVendor(String vendor)
      Set the vendor property: The vendor for the vpn device.
      Parameters:
      vendor - the vendor value to set.
      Returns:
      the VpnDeviceScriptParameters object itself.
    • deviceFamily

      public String deviceFamily()
      Get the deviceFamily property: The device family for the vpn device.
      Returns:
      the deviceFamily value.
    • withDeviceFamily

      public VpnDeviceScriptParameters withDeviceFamily(String deviceFamily)
      Set the deviceFamily property: The device family for the vpn device.
      Parameters:
      deviceFamily - the deviceFamily value to set.
      Returns:
      the VpnDeviceScriptParameters object itself.
    • firmwareVersion

      public String firmwareVersion()
      Get the firmwareVersion property: The firmware version for the vpn device.
      Returns:
      the firmwareVersion value.
    • withFirmwareVersion

      public VpnDeviceScriptParameters withFirmwareVersion(String firmwareVersion)
      Set the firmwareVersion property: The firmware version for the vpn device.
      Parameters:
      firmwareVersion - the firmwareVersion value to set.
      Returns:
      the VpnDeviceScriptParameters 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<VpnDeviceScriptParameters>
      Throws:
      IOException
    • fromJson

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