Class TunnelOptions.Builder
- java.lang.Object
-
- com.e1c.g5.v8.dt.platform.cloud.core.tunnel.TunnelOptions.Builder
-
- Enclosing class:
- TunnelOptions
public static class TunnelOptions.Builder extends Object
Builder class to buildTunnelOptions
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Creates a new instance of builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TunnelOptions
build()
Builds configuredTunnelOptions
.TunnelOptions.Builder
localInterface(String localInterface)
Sets the local intefrace name to tunnel in.TunnelOptions.Builder
localPort(int localPort)
Sets the local host port to tunnel in.TunnelOptions.Builder
user(String username, String password)
Sets the user name and password to use.TunnelOptions.Builder
verifyTls(boolean verifyTls)
Sets whether need to verify TLS certificates.
-
-
-
Method Detail
-
user
public TunnelOptions.Builder user(String username, String password)
Sets the user name and password to use.- Parameters:
username
- the username to set, cannot benull
password
- the password to set, cannot benull
- Returns:
- a reference to the same tunnel options builder inatnace, never
null
-
localInterface
public TunnelOptions.Builder localInterface(String localInterface)
Sets the local intefrace name to tunnel in. By default tunnels in all local interfaces.- Parameters:
localInterface
- the local interface to set, cannot benull
- Returns:
- a reference to the same tunnel options builder inatnace, never
null
-
localPort
public TunnelOptions.Builder localPort(int localPort)
Sets the local host port to tunnel in. By default tunnels in the same port as remote.- Parameters:
localPort
- the local port to set- Returns:
- a reference to the same tunnel options builder inatnace, never
null
-
verifyTls
public TunnelOptions.Builder verifyTls(boolean verifyTls)
Sets whether need to verify TLS certificates.- Parameters:
verifyTls
- whether need to verify TLS certificates- Returns:
- a reference to the same tunnel options builder inatnace, never
null
-
build
public TunnelOptions build()
Builds configuredTunnelOptions
.- Returns:
- the configured
TunnelOptions
, nevernull
-
-