Class P2SVpnProfileParameters

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

public final class P2SVpnProfileParameters extends Object implements com.azure.json.JsonSerializable<P2SVpnProfileParameters>
Vpn Client Parameters for package generation.
  • Constructor Details

    • P2SVpnProfileParameters

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

    • authenticationMethod

      public AuthenticationMethod authenticationMethod()
      Get the authenticationMethod property: VPN client authentication method.
      Returns:
      the authenticationMethod value.
    • withAuthenticationMethod

      public P2SVpnProfileParameters withAuthenticationMethod(AuthenticationMethod authenticationMethod)
      Set the authenticationMethod property: VPN client authentication method.
      Parameters:
      authenticationMethod - the authenticationMethod value to set.
      Returns:
      the P2SVpnProfileParameters 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<P2SVpnProfileParameters>
      Throws:
      IOException
    • fromJson

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