public static interface TunnelDescription.Builder
Modifier and Type | Method and Description |
---|---|
TunnelDescription |
build()
Returns new tunnel interface description.
|
TunnelDescription.Builder |
deviceId(String deviceId)
Returns tunnel interface description biulder with supplied device ID.
|
TunnelDescription.Builder |
ifaceName(String name)
Returns tunnel interface description builder with a given interface name.
|
TunnelDescription.Builder |
key(TunnelKey tunnelKey)
Returns tunnel interface description builder with a tunnel key.
|
TunnelDescription.Builder |
local(TunnelEndPoint endpoint)
Returns tunnel interface description builder with a given local
tunnel endpoint.
|
TunnelDescription.Builder |
otherConfigs(SparseAnnotations configs)
Returns tunnel interface descriptions builder with other configurations.
|
TunnelDescription.Builder |
remote(TunnelEndPoint endpoint)
Returns tunnel interface description builder with a given remote
tunnel endpoint.
|
TunnelDescription.Builder |
type(TunnelDescription.Type type)
Returns tunnel interface description builder with a given tunnel type.
|
TunnelDescription build()
TunnelDescription.Builder deviceId(String deviceId)
deviceId
- device identifierTunnelDescription.Builder ifaceName(String name)
name
- tunnel interface nameTunnelDescription.Builder type(TunnelDescription.Type type)
type
- tunnel typeTunnelDescription.Builder local(TunnelEndPoint endpoint)
endpoint
- tunnel endpointTunnelDescription.Builder remote(TunnelEndPoint endpoint)
endpoint
- tunnel endpointTunnelDescription.Builder key(TunnelKey tunnelKey)
tunnelKey
- tunnel keyTunnelDescription.Builder otherConfigs(SparseAnnotations configs)
configs
- configurations