Class VPNServerPatch.Builder

  • Enclosing class:
    VPNServerPatch

    public static class VPNServerPatch.Builder
    extends Object
    Builder.
    • Constructor Detail

      • Builder

        public Builder()
        Instantiates a new builder.
    • Method Detail

      • build

        public VPNServerPatch build()
        Builds a VPNServerPatch.
        Returns:
        the new VPNServerPatch instance
      • addClientAuthentication

        public VPNServerPatch.Builder addClientAuthentication​(VPNServerAuthenticationPrototype clientAuthentication)
        Adds a new element to clientAuthentication.
        Parameters:
        clientAuthentication - the new element to be added
        Returns:
        the VPNServerPatch builder
      • addClientDnsServerIps

        public VPNServerPatch.Builder addClientDnsServerIps​(IP clientDnsServerIps)
        Adds a new element to clientDnsServerIps.
        Parameters:
        clientDnsServerIps - the new element to be added
        Returns:
        the VPNServerPatch builder
      • addSubnets

        public VPNServerPatch.Builder addSubnets​(SubnetIdentity subnets)
        Adds a new element to subnets.
        Parameters:
        subnets - the new element to be added
        Returns:
        the VPNServerPatch builder
      • clientAuthentication

        public VPNServerPatch.Builder clientAuthentication​(List<VPNServerAuthenticationPrototype> clientAuthentication)
        Set the clientAuthentication. Existing clientAuthentication will be replaced.
        Parameters:
        clientAuthentication - the clientAuthentication
        Returns:
        the VPNServerPatch builder
      • clientDnsServerIps

        public VPNServerPatch.Builder clientDnsServerIps​(List<IP> clientDnsServerIps)
        Set the clientDnsServerIps. Existing clientDnsServerIps will be replaced.
        Parameters:
        clientDnsServerIps - the clientDnsServerIps
        Returns:
        the VPNServerPatch builder
      • clientIdleTimeout

        public VPNServerPatch.Builder clientIdleTimeout​(long clientIdleTimeout)
        Set the clientIdleTimeout.
        Parameters:
        clientIdleTimeout - the clientIdleTimeout
        Returns:
        the VPNServerPatch builder
      • clientIpPool

        public VPNServerPatch.Builder clientIpPool​(String clientIpPool)
        Set the clientIpPool.
        Parameters:
        clientIpPool - the clientIpPool
        Returns:
        the VPNServerPatch builder
      • enableSplitTunneling

        public VPNServerPatch.Builder enableSplitTunneling​(Boolean enableSplitTunneling)
        Set the enableSplitTunneling.
        Parameters:
        enableSplitTunneling - the enableSplitTunneling
        Returns:
        the VPNServerPatch builder
      • port

        public VPNServerPatch.Builder port​(long port)
        Set the port.
        Parameters:
        port - the port
        Returns:
        the VPNServerPatch builder
      • protocol

        public VPNServerPatch.Builder protocol​(String protocol)
        Set the protocol.
        Parameters:
        protocol - the protocol
        Returns:
        the VPNServerPatch builder
      • subnets

        public VPNServerPatch.Builder subnets​(List<SubnetIdentity> subnets)
        Set the subnets. Existing subnets will be replaced.
        Parameters:
        subnets - the subnets
        Returns:
        the VPNServerPatch builder