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