Package org.onosproject.net.behaviour
Class DefaultTunnelDescription.Builder
- java.lang.Object
-
- org.onosproject.net.behaviour.DefaultTunnelDescription.Builder
-
- All Implemented Interfaces:
TunnelDescription.Builder
- Enclosing class:
- DefaultTunnelDescription
public static final class DefaultTunnelDescription.Builder extends Object implements TunnelDescription.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TunnelDescription
build()
Returns new tunnel interface description.DefaultTunnelDescription.Builder
deviceId(String deviceId)
Returns tunnel interface description biulder with supplied device ID.DefaultTunnelDescription.Builder
ifaceName(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.
-
-
-
Method Detail
-
build
public TunnelDescription build()
Description copied from interface:TunnelDescription.Builder
Returns new tunnel interface description.- Specified by:
build
in interfaceTunnelDescription.Builder
- Returns:
- tunnel description
-
deviceId
public DefaultTunnelDescription.Builder deviceId(String deviceId)
Description copied from interface:TunnelDescription.Builder
Returns tunnel interface description biulder with supplied device ID.- Specified by:
deviceId
in interfaceTunnelDescription.Builder
- Parameters:
deviceId
- device identifier- Returns:
- tunnel description builder
-
ifaceName
public DefaultTunnelDescription.Builder ifaceName(String ifaceName)
Description copied from interface:TunnelDescription.Builder
Returns tunnel interface description builder with a given interface name.- Specified by:
ifaceName
in interfaceTunnelDescription.Builder
- Parameters:
ifaceName
- tunnel interface name- Returns:
- tunnel description builder
-
type
public DefaultTunnelDescription.Builder type(TunnelDescription.Type type)
Description copied from interface:TunnelDescription.Builder
Returns tunnel interface description builder with a given tunnel type.- Specified by:
type
in interfaceTunnelDescription.Builder
- Parameters:
type
- tunnel type- Returns:
- tunnel description builder
-
local
public DefaultTunnelDescription.Builder local(TunnelEndPoint endpoint)
Description copied from interface:TunnelDescription.Builder
Returns tunnel interface description builder with a given local tunnel endpoint.- Specified by:
local
in interfaceTunnelDescription.Builder
- Parameters:
endpoint
- tunnel endpoint- Returns:
- tunnel description builder
-
remote
public DefaultTunnelDescription.Builder remote(TunnelEndPoint endpoint)
Description copied from interface:TunnelDescription.Builder
Returns tunnel interface description builder with a given remote tunnel endpoint.- Specified by:
remote
in interfaceTunnelDescription.Builder
- Parameters:
endpoint
- tunnel endpoint- Returns:
- tunnel description builder
-
key
public DefaultTunnelDescription.Builder key(TunnelKey key)
Description copied from interface:TunnelDescription.Builder
Returns tunnel interface description builder with a tunnel key.- Specified by:
key
in interfaceTunnelDescription.Builder
- Parameters:
key
- tunnel key- Returns:
- tunnel description builder
-
otherConfigs
public DefaultTunnelDescription.Builder otherConfigs(SparseAnnotations configs)
Description copied from interface:TunnelDescription.Builder
Returns tunnel interface descriptions builder with other configurations.- Specified by:
otherConfigs
in interfaceTunnelDescription.Builder
- Parameters:
configs
- configurations- Returns:
- tunnel description builder
-
-