Class VpnClientConfiguration

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

public final class VpnClientConfiguration extends Object implements com.azure.json.JsonSerializable<VpnClientConfiguration>
VpnClientConfiguration for P2S client.
  • Constructor Details

    • VpnClientConfiguration

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

    • vpnClientAddressPool

      public AddressSpace vpnClientAddressPool()
      Get the vpnClientAddressPool property: The reference to the address space resource which represents Address space for P2S VpnClient.
      Returns:
      the vpnClientAddressPool value.
    • withVpnClientAddressPool

      public VpnClientConfiguration withVpnClientAddressPool(AddressSpace vpnClientAddressPool)
      Set the vpnClientAddressPool property: The reference to the address space resource which represents Address space for P2S VpnClient.
      Parameters:
      vpnClientAddressPool - the vpnClientAddressPool value to set.
      Returns:
      the VpnClientConfiguration object itself.
    • vpnClientRootCertificates

      public List<VpnClientRootCertificate> vpnClientRootCertificates()
      Get the vpnClientRootCertificates property: VpnClientRootCertificate for virtual network gateway.
      Returns:
      the vpnClientRootCertificates value.
    • withVpnClientRootCertificates

      public VpnClientConfiguration withVpnClientRootCertificates(List<VpnClientRootCertificate> vpnClientRootCertificates)
      Set the vpnClientRootCertificates property: VpnClientRootCertificate for virtual network gateway.
      Parameters:
      vpnClientRootCertificates - the vpnClientRootCertificates value to set.
      Returns:
      the VpnClientConfiguration object itself.
    • vpnClientRevokedCertificates

      public List<VpnClientRevokedCertificate> vpnClientRevokedCertificates()
      Get the vpnClientRevokedCertificates property: VpnClientRevokedCertificate for Virtual network gateway.
      Returns:
      the vpnClientRevokedCertificates value.
    • withVpnClientRevokedCertificates

      public VpnClientConfiguration withVpnClientRevokedCertificates(List<VpnClientRevokedCertificate> vpnClientRevokedCertificates)
      Set the vpnClientRevokedCertificates property: VpnClientRevokedCertificate for Virtual network gateway.
      Parameters:
      vpnClientRevokedCertificates - the vpnClientRevokedCertificates value to set.
      Returns:
      the VpnClientConfiguration object itself.
    • vpnClientProtocols

      public List<VpnClientProtocol> vpnClientProtocols()
      Get the vpnClientProtocols property: VpnClientProtocols for Virtual network gateway.
      Returns:
      the vpnClientProtocols value.
    • withVpnClientProtocols

      public VpnClientConfiguration withVpnClientProtocols(List<VpnClientProtocol> vpnClientProtocols)
      Set the vpnClientProtocols property: VpnClientProtocols for Virtual network gateway.
      Parameters:
      vpnClientProtocols - the vpnClientProtocols value to set.
      Returns:
      the VpnClientConfiguration object itself.
    • vpnAuthenticationTypes

      public List<VpnAuthenticationType> vpnAuthenticationTypes()
      Get the vpnAuthenticationTypes property: VPN authentication types for the virtual network gateway..
      Returns:
      the vpnAuthenticationTypes value.
    • withVpnAuthenticationTypes

      public VpnClientConfiguration withVpnAuthenticationTypes(List<VpnAuthenticationType> vpnAuthenticationTypes)
      Set the vpnAuthenticationTypes property: VPN authentication types for the virtual network gateway..
      Parameters:
      vpnAuthenticationTypes - the vpnAuthenticationTypes value to set.
      Returns:
      the VpnClientConfiguration object itself.
    • vpnClientIpsecPolicies

      public List<IpsecPolicy> vpnClientIpsecPolicies()
      Get the vpnClientIpsecPolicies property: VpnClientIpsecPolicies for virtual network gateway P2S client.
      Returns:
      the vpnClientIpsecPolicies value.
    • withVpnClientIpsecPolicies

      public VpnClientConfiguration withVpnClientIpsecPolicies(List<IpsecPolicy> vpnClientIpsecPolicies)
      Set the vpnClientIpsecPolicies property: VpnClientIpsecPolicies for virtual network gateway P2S client.
      Parameters:
      vpnClientIpsecPolicies - the vpnClientIpsecPolicies value to set.
      Returns:
      the VpnClientConfiguration object itself.
    • radiusServerAddress

      public String radiusServerAddress()
      Get the radiusServerAddress property: The radius server address property of the VirtualNetworkGateway resource for vpn client connection.
      Returns:
      the radiusServerAddress value.
    • withRadiusServerAddress

      public VpnClientConfiguration withRadiusServerAddress(String radiusServerAddress)
      Set the radiusServerAddress property: The radius server address property of the VirtualNetworkGateway resource for vpn client connection.
      Parameters:
      radiusServerAddress - the radiusServerAddress value to set.
      Returns:
      the VpnClientConfiguration object itself.
    • radiusServerSecret

      public String radiusServerSecret()
      Get the radiusServerSecret property: The radius secret property of the VirtualNetworkGateway resource for vpn client connection.
      Returns:
      the radiusServerSecret value.
    • withRadiusServerSecret

      public VpnClientConfiguration withRadiusServerSecret(String radiusServerSecret)
      Set the radiusServerSecret property: The radius secret property of the VirtualNetworkGateway resource for vpn client connection.
      Parameters:
      radiusServerSecret - the radiusServerSecret value to set.
      Returns:
      the VpnClientConfiguration object itself.
    • radiusServers

      public List<RadiusServer> radiusServers()
      Get the radiusServers property: The radiusServers property for multiple radius server configuration.
      Returns:
      the radiusServers value.
    • withRadiusServers

      public VpnClientConfiguration withRadiusServers(List<RadiusServer> radiusServers)
      Set the radiusServers property: The radiusServers property for multiple radius server configuration.
      Parameters:
      radiusServers - the radiusServers value to set.
      Returns:
      the VpnClientConfiguration object itself.
    • aadTenant

      public String aadTenant()
      Get the aadTenant property: The AADTenant property of the VirtualNetworkGateway resource for vpn client connection used for AAD authentication.
      Returns:
      the aadTenant value.
    • withAadTenant

      public VpnClientConfiguration withAadTenant(String aadTenant)
      Set the aadTenant property: The AADTenant property of the VirtualNetworkGateway resource for vpn client connection used for AAD authentication.
      Parameters:
      aadTenant - the aadTenant value to set.
      Returns:
      the VpnClientConfiguration object itself.
    • aadAudience

      public String aadAudience()
      Get the aadAudience property: The AADAudience property of the VirtualNetworkGateway resource for vpn client connection used for AAD authentication.
      Returns:
      the aadAudience value.
    • withAadAudience

      public VpnClientConfiguration withAadAudience(String aadAudience)
      Set the aadAudience property: The AADAudience property of the VirtualNetworkGateway resource for vpn client connection used for AAD authentication.
      Parameters:
      aadAudience - the aadAudience value to set.
      Returns:
      the VpnClientConfiguration object itself.
    • aadIssuer

      public String aadIssuer()
      Get the aadIssuer property: The AADIssuer property of the VirtualNetworkGateway resource for vpn client connection used for AAD authentication.
      Returns:
      the aadIssuer value.
    • withAadIssuer

      public VpnClientConfiguration withAadIssuer(String aadIssuer)
      Set the aadIssuer property: The AADIssuer property of the VirtualNetworkGateway resource for vpn client connection used for AAD authentication.
      Parameters:
      aadIssuer - the aadIssuer value to set.
      Returns:
      the VpnClientConfiguration object itself.
    • vngClientConnectionConfigurations

      public List<VngClientConnectionConfiguration> vngClientConnectionConfigurations()
      Get the vngClientConnectionConfigurations property: per ip address pool connection policy for virtual network gateway P2S client.
      Returns:
      the vngClientConnectionConfigurations value.
    • withVngClientConnectionConfigurations

      public VpnClientConfiguration withVngClientConnectionConfigurations(List<VngClientConnectionConfiguration> vngClientConnectionConfigurations)
      Set the vngClientConnectionConfigurations property: per ip address pool connection policy for virtual network gateway P2S client.
      Parameters:
      vngClientConnectionConfigurations - the vngClientConnectionConfigurations value to set.
      Returns:
      the VpnClientConfiguration 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<VpnClientConfiguration>
      Throws:
      IOException
    • fromJson

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