Class UpfSessionDownlink.Builder
- java.lang.Object
-
- org.onosproject.net.behaviour.upf.UpfSessionDownlink.Builder
-
- Enclosing class:
- UpfSessionDownlink
public static class UpfSessionDownlink.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpfSessionDownlinkbuild()UpfSessionDownlink.BuilderneedsBuffering(boolean buffer)Sets whether to buffer downlink UPF UE session traffic or not.UpfSessionDownlink.BuilderneedsDropping(boolean drop)Sets whether to drop downlink UPF UE session traffic or not.UpfSessionDownlink.BuilderwithGtpTunnelPeerId(Byte tunnelPeerId)Sets the GTP tunnel peer ID that is set by this UPF UE Session rule.UpfSessionDownlink.BuilderwithSessionMeterIdx(int sessionMeterIdx)Sets the meter index associated with this UE session.UpfSessionDownlink.BuilderwithUeAddress(Ip4Address ueAddress)Sets the UE IP address that this downlink UPF UE session rule matches on.
-
-
-
Method Detail
-
withUeAddress
public UpfSessionDownlink.Builder withUeAddress(Ip4Address ueAddress)
Sets the UE IP address that this downlink UPF UE session rule matches on.- Parameters:
ueAddress- UE IP address- Returns:
- This builder object
-
withGtpTunnelPeerId
public UpfSessionDownlink.Builder withGtpTunnelPeerId(Byte tunnelPeerId)
Sets the GTP tunnel peer ID that is set by this UPF UE Session rule.- Parameters:
tunnelPeerId- GTP tunnel peer ID- Returns:
- This builder object
-
needsBuffering
public UpfSessionDownlink.Builder needsBuffering(boolean buffer)
Sets whether to buffer downlink UPF UE session traffic or not.- Parameters:
buffer- True if request to buffer, false otherwise- Returns:
- This builder object
-
needsDropping
public UpfSessionDownlink.Builder needsDropping(boolean drop)
Sets whether to drop downlink UPF UE session traffic or not.- Parameters:
drop- True if request to buffer, false otherwise- Returns:
- This builder object
-
withSessionMeterIdx
public UpfSessionDownlink.Builder withSessionMeterIdx(int sessionMeterIdx)
Sets the meter index associated with this UE session. If not set, default toUpfEntity.DEFAULT_SESSION_INDEX.- Parameters:
sessionMeterIdx- Session meter index- Returns:
- This builder object
-
build
public UpfSessionDownlink build()
-
-