public static final class DefaultTunnelDescription.Builder extends java.lang.Object implements TunnelDescription.Builder
Modifier and Type | Method and Description |
---|---|
TunnelDescription |
build()
Returns new tunnel interface description.
|
DefaultTunnelDescription.Builder |
deviceId(java.lang.String deviceId)
Returns tunnel interface description biulder with supplied device ID.
|
DefaultTunnelDescription.Builder |
ifaceName(java.lang.String ifaceName)
Returns tunnel interface description builder with a given interface name.
|
DefaultTunnelDescription.Builder |
key(TunnelKey key)
Returns tunnel interface description builder with a tunnel key.
|
DefaultTunnelDescription.Builder |
local(TunnelEndPoint endpoint)
Returns tunnel interface description builder with a given local
tunnel endpoint.
|
DefaultTunnelDescription.Builder |
otherConfigs(SparseAnnotations configs)
Returns tunnel interface descriptions builder with other configurations.
|
DefaultTunnelDescription.Builder |
remote(TunnelEndPoint endpoint)
Returns tunnel interface description builder with a given remote
tunnel endpoint.
|
DefaultTunnelDescription.Builder |
type(TunnelDescription.Type type)
Returns tunnel interface description builder with a given tunnel type.
|
public TunnelDescription build()
TunnelDescription.Builder
build
in interface TunnelDescription.Builder
public DefaultTunnelDescription.Builder deviceId(java.lang.String deviceId)
TunnelDescription.Builder
deviceId
in interface TunnelDescription.Builder
deviceId
- device identifierpublic DefaultTunnelDescription.Builder ifaceName(java.lang.String ifaceName)
TunnelDescription.Builder
ifaceName
in interface TunnelDescription.Builder
ifaceName
- tunnel interface namepublic DefaultTunnelDescription.Builder type(TunnelDescription.Type type)
TunnelDescription.Builder
type
in interface TunnelDescription.Builder
type
- tunnel typepublic DefaultTunnelDescription.Builder local(TunnelEndPoint endpoint)
TunnelDescription.Builder
local
in interface TunnelDescription.Builder
endpoint
- tunnel endpointpublic DefaultTunnelDescription.Builder remote(TunnelEndPoint endpoint)
TunnelDescription.Builder
remote
in interface TunnelDescription.Builder
endpoint
- tunnel endpointpublic DefaultTunnelDescription.Builder key(TunnelKey key)
TunnelDescription.Builder
key
in interface TunnelDescription.Builder
key
- tunnel keypublic DefaultTunnelDescription.Builder otherConfigs(SparseAnnotations configs)
TunnelDescription.Builder
otherConfigs
in interface TunnelDescription.Builder
configs
- configurations