Class VirtualWanVpnProfileParameters
java.lang.Object
com.azure.resourcemanager.network.models.VirtualWanVpnProfileParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualWanVpnProfileParameters>
public final class VirtualWanVpnProfileParameters
extends Object
implements com.azure.json.JsonSerializable<VirtualWanVpnProfileParameters>
Virtual Wan Vpn profile parameters Vpn profile generation.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualWanVpnProfileParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the authenticationMethod property: VPN client authentication method.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualWanVpnProfileParameters from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the vpnServerConfigurationResourceId property: VpnServerConfiguration partial resource uri with which VirtualWan is associated to.withAuthenticationMethod(AuthenticationMethod authenticationMethod) Set the authenticationMethod property: VPN client authentication method.withVpnServerConfigurationResourceId(String vpnServerConfigurationResourceId) Set the vpnServerConfigurationResourceId property: VpnServerConfiguration partial resource uri with which VirtualWan is associated to.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
-
VirtualWanVpnProfileParameters
public VirtualWanVpnProfileParameters()Creates an instance of VirtualWanVpnProfileParameters class.
-
-
Method Details
-
vpnServerConfigurationResourceId
Get the vpnServerConfigurationResourceId property: VpnServerConfiguration partial resource uri with which VirtualWan is associated to.- Returns:
- the vpnServerConfigurationResourceId value.
-
withVpnServerConfigurationResourceId
public VirtualWanVpnProfileParameters withVpnServerConfigurationResourceId(String vpnServerConfigurationResourceId) Set the vpnServerConfigurationResourceId property: VpnServerConfiguration partial resource uri with which VirtualWan is associated to.- Parameters:
vpnServerConfigurationResourceId- the vpnServerConfigurationResourceId value to set.- Returns:
- the VirtualWanVpnProfileParameters object itself.
-
authenticationMethod
Get the authenticationMethod property: VPN client authentication method.- Returns:
- the authenticationMethod value.
-
withAuthenticationMethod
public VirtualWanVpnProfileParameters withAuthenticationMethod(AuthenticationMethod authenticationMethod) Set the authenticationMethod property: VPN client authentication method.- Parameters:
authenticationMethod- the authenticationMethod value to set.- Returns:
- the VirtualWanVpnProfileParameters 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<VirtualWanVpnProfileParameters>- Throws:
IOException
-
fromJson
public static VirtualWanVpnProfileParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualWanVpnProfileParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualWanVpnProfileParameters 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 VirtualWanVpnProfileParameters.
-