Class PacketDetectionRule.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • withSessionId

        public PacketDetectionRule.Builder withSessionId​(long sessionId)
        Set the ID of the PFCP session that produced this PDR.
        Parameters:
        sessionId - PFCP session ID
        Returns:
        This builder object
      • withUeAddr

        public PacketDetectionRule.Builder withUeAddr​(Ip4Address ueAddr)
        Set the UE IP address that this PDR matches on.
        Parameters:
        ueAddr - UE IP address
        Returns:
        This builder object
      • withCounterId

        public PacketDetectionRule.Builder withCounterId​(int ctrId)
        Set the dataplane PDR counter cell ID that this PDR is assigned.
        Parameters:
        ctrId - PDR counter cell ID
        Returns:
        This builder object
      • withLocalFarId

        public PacketDetectionRule.Builder withLocalFarId​(int localFarId)
        Set the PFCP session-local ID of the far that should apply to packets that this PDR matches.
        Parameters:
        localFarId - PFCP session-local FAR ID
        Returns:
        This builder object
      • withQfi

        public PacketDetectionRule.Builder withQfi​(byte qfi)
        Set the QoS Flow Identifier for this PDR.
        Parameters:
        qfi - GTP Tunnel QFI
        Returns:
        This builder object
      • withQfiPush

        public PacketDetectionRule.Builder withQfiPush()
        The QoS Flow Identifier should be pushed to the packet. This is valid for downstream packets and for 5G traffic only.
        Returns:
        This builder object
      • withQfiMatch

        public PacketDetectionRule.Builder withQfiMatch()
        The QoS Flow Identifier should be matched to the packet. This is valid for upstream packets and for 5G traffic only.
        Returns:
        This builder object
      • withTeid

        public PacketDetectionRule.Builder withTeid​(int teid)
        Set the identifier of the GTP tunnel that this PDR matches on.
        Parameters:
        teid - GTP tunnel ID
        Returns:
        This builder object
      • withTunnelDst

        public PacketDetectionRule.Builder withTunnelDst​(Ip4Address tunnelDst)
        Set the destination IP of the GTP tunnel that this PDR matches on.
        Parameters:
        tunnelDst - GTP tunnel destination IP
        Returns:
        This builder object
      • withTunnel

        public PacketDetectionRule.Builder withTunnel​(ImmutableByteSequence teid,
                                                      Ip4Address tunnelDst)
        Set the tunnel ID and destination IP of the GTP tunnel that this PDR matches on.
        Parameters:
        teid - GTP tunnel ID
        tunnelDst - GTP tunnel destination IP
        Returns:
        This builder object
      • withTunnel

        public PacketDetectionRule.Builder withTunnel​(ImmutableByteSequence teid,
                                                      Ip4Address tunnelDst,
                                                      byte qfi)
        Set the tunnel ID, destination IP and QFI of the GTP tunnel that this PDR matches on.
        Parameters:
        teid - GTP tunnel ID
        tunnelDst - GTP tunnel destination IP
        qfi - GTP QoS Flow Identifier
        Returns:
        This builder object