Class CreateVpnServerOptions.Builder

    • Constructor Detail

      • Builder

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

      • build

        public CreateVpnServerOptions build()
        Builds a CreateVpnServerOptions.
        Returns:
        the new CreateVpnServerOptions instance
      • addClientDnsServerIps

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

        public CreateVpnServerOptions.Builder addSecurityGroups​(SecurityGroupIdentity securityGroups)
        Adds a new element to securityGroups.
        Parameters:
        securityGroups - the new element to be added
        Returns:
        the CreateVpnServerOptions builder
      • clientAuthentication

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

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

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

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

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

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

        public CreateVpnServerOptions.Builder securityGroups​(List<SecurityGroupIdentity> securityGroups)
        Set the securityGroups. Existing securityGroups will be replaced.
        Parameters:
        securityGroups - the securityGroups
        Returns:
        the CreateVpnServerOptions builder