Class GtpTunnel.GtpTunnelBuilder
- java.lang.Object
-
- org.onosproject.net.behaviour.upf.GtpTunnel.GtpTunnelBuilder
-
-
Constructor Summary
Constructors Constructor Description GtpTunnelBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GtpTunnel
build()
GtpTunnel.GtpTunnelBuilder
setDst(Ip4Address dst)
Set the destination IP address of the unidirectional GTP tunnel.GtpTunnel.GtpTunnelBuilder
setSrc(Ip4Address src)
Set the source IP address of the unidirectional GTP tunnel.GtpTunnel.GtpTunnelBuilder
setSrcPort(short srcPort)
Set the source port of this unidirectional GTP tunnel.GtpTunnel.GtpTunnelBuilder
setTeid(long teid)
Set the identifier of this unidirectional GTP tunnel.GtpTunnel.GtpTunnelBuilder
setTeid(ImmutableByteSequence teid)
Set the identifier of this unidirectional GTP tunnel.
-
-
-
Method Detail
-
setSrc
public GtpTunnel.GtpTunnelBuilder setSrc(Ip4Address src)
Set the source IP address of the unidirectional GTP tunnel.- Parameters:
src
- GTP tunnel source IP- Returns:
- This builder object
-
setDst
public GtpTunnel.GtpTunnelBuilder setDst(Ip4Address dst)
Set the destination IP address of the unidirectional GTP tunnel.- Parameters:
dst
- GTP tunnel destination IP- Returns:
- This builder object
-
setTeid
public GtpTunnel.GtpTunnelBuilder setTeid(ImmutableByteSequence teid)
Set the identifier of this unidirectional GTP tunnel.- Parameters:
teid
- tunnel ID- Returns:
- This builder object
-
setTeid
public GtpTunnel.GtpTunnelBuilder setTeid(long teid)
Set the identifier of this unidirectional GTP tunnel.- Parameters:
teid
- tunnel ID- Returns:
- This builder object
-
setSrcPort
public GtpTunnel.GtpTunnelBuilder setSrcPort(short srcPort)
Set the source port of this unidirectional GTP tunnel.- Parameters:
srcPort
- tunnel source port- Returns:
- this builder object
-
build
public GtpTunnel build()
-
-