Class UpfGtpTunnelPeer.Builder
- java.lang.Object
-
- org.onosproject.net.behaviour.upf.UpfGtpTunnelPeer.Builder
-
- Enclosing class:
- UpfGtpTunnelPeer
public static class UpfGtpTunnelPeer.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpfGtpTunnelPeerbuild()UpfGtpTunnelPeer.BuilderwithDstAddr(Ip4Address dst)Set the destination IP address of the unidirectional UPF GTP tunnel.UpfGtpTunnelPeer.BuilderwithSrcAddr(Ip4Address src)Set the source IP address of the unidirectional UPF GTP tunnel.UpfGtpTunnelPeer.BuilderwithSrcPort(short srcPort)Set the source port of this unidirectional UPF GTP tunnel.UpfGtpTunnelPeer.BuilderwithTunnelPeerId(byte tunPeerId)Set the ID of the UPF GTP Tunnel peer.
-
-
-
Method Detail
-
withTunnelPeerId
public UpfGtpTunnelPeer.Builder withTunnelPeerId(byte tunPeerId)
Set the ID of the UPF GTP Tunnel peer.- Parameters:
tunPeerId- GTP tunnel peer ID- Returns:
- This builder object
-
withSrcAddr
public UpfGtpTunnelPeer.Builder withSrcAddr(Ip4Address src)
Set the source IP address of the unidirectional UPF GTP tunnel.- Parameters:
src- GTP tunnel source IP- Returns:
- This builder object
-
withDstAddr
public UpfGtpTunnelPeer.Builder withDstAddr(Ip4Address dst)
Set the destination IP address of the unidirectional UPF GTP tunnel.- Parameters:
dst- GTP tunnel destination IP- Returns:
- This builder object
-
withSrcPort
public UpfGtpTunnelPeer.Builder withSrcPort(short srcPort)
Set the source port of this unidirectional UPF GTP tunnel.- Parameters:
srcPort- tunnel source port- Returns:
- this builder object
-
build
public UpfGtpTunnelPeer build()
-
-