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
      • 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