public final class DefaultTunnelDescription extends AbstractDescription implements TunnelDescription
Modifier and Type | Class and Description |
---|---|
static class |
DefaultTunnelDescription.Builder |
TunnelDescription.Type
Modifier and Type | Method and Description |
---|---|
static DefaultTunnelDescription.Builder |
builder()
Creates and returns a new builder instance.
|
Optional<String> |
deviceId()
Returns the identifier of the device where the interface is.
|
String |
ifaceName()
Return the name of the tunnel interface.
|
Optional<TunnelKey> |
key()
Returns the tunnel key.
|
Optional<TunnelEndPoint> |
local()
Returns the local connection point.
|
Optional<TunnelEndPoint> |
remote()
Returns the remote connection point.
|
String |
toString() |
TunnelDescription.Type |
type()
Returns the tunnel type.
|
annotations, equals, hashCode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
annotations
public Optional<String> deviceId()
TunnelDescription
deviceId
in interface TunnelDescription
public String ifaceName()
TunnelDescription
ifaceName
in interface TunnelDescription
public TunnelDescription.Type type()
TunnelDescription
type
in interface TunnelDescription
public Optional<TunnelEndPoint> local()
TunnelDescription
local
in interface TunnelDescription
public Optional<TunnelEndPoint> remote()
TunnelDescription
remote
in interface TunnelDescription
public Optional<TunnelKey> key()
TunnelDescription
key
in interface TunnelDescription
public static DefaultTunnelDescription.Builder builder()