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 Summary
ConstructorsConstructorDescriptionCreates an instance of VpnDeviceScriptParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the deviceFamily property: The device family for the vpn device.Get the firmwareVersion property: The firmware version for the vpn device.static VpnDeviceScriptParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VpnDeviceScriptParameters from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.vendor()Get the vendor property: The vendor for the vpn device.withDeviceFamily(String deviceFamily) Set the deviceFamily property: The device family for the vpn device.withFirmwareVersion(String firmwareVersion) Set the firmwareVersion property: The firmware version for the vpn device.withVendor(String vendor) Set the vendor property: The vendor for the vpn device.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
-
VpnDeviceScriptParameters
public VpnDeviceScriptParameters()Creates an instance of VpnDeviceScriptParameters class.
-
-
Method Details
-
vendor
Get the vendor property: The vendor for the vpn device.- Returns:
- the vendor value.
-
withVendor
Set the vendor property: The vendor for the vpn device.- Parameters:
vendor- the vendor value to set.- Returns:
- the VpnDeviceScriptParameters object itself.
-
deviceFamily
Get the deviceFamily property: The device family for the vpn device.- Returns:
- the deviceFamily value.
-
withDeviceFamily
Set the deviceFamily property: The device family for the vpn device.- Parameters:
deviceFamily- the deviceFamily value to set.- Returns:
- the VpnDeviceScriptParameters object itself.
-
firmwareVersion
Get the firmwareVersion property: The firmware version for the vpn device.- Returns:
- the firmwareVersion value.
-
withFirmwareVersion
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
- Specified by:
toJsonin interfacecom.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.
-