Interface RuleIpExpression.Builder

    • Method Detail

      • evaluate

        RuleIpExpression.Builder evaluate​(RuleIpToEvaluate evaluate)

        The IP address to evaluate in this condition.

        Parameters:
        evaluate - The IP address to evaluate in this condition.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • operator

        RuleIpExpression.Builder operator​(String operator)

        The operator to evaluate the IP address.

        Parameters:
        operator - The operator to evaluate the IP address.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        RuleIpOperator, RuleIpOperator
      • values

        RuleIpExpression.Builder values​(Collection<String> values)

        The IP CIDR blocks in format "x.y.z.w/n" (eg 10.0.0.0/8) to match with the email's IP address. For the operator CIDR_MATCHES, if multiple values are given, they are evaluated as an OR. That is, if the IP address is contained within any of the given CIDR ranges, the condition is deemed to match. For NOT_CIDR_MATCHES, if multiple CIDR ranges are given, the condition is deemed to match if the IP address is not contained in any of the given CIDR ranges.

        Parameters:
        values - The IP CIDR blocks in format "x.y.z.w/n" (eg 10.0.0.0/8) to match with the email's IP address. For the operator CIDR_MATCHES, if multiple values are given, they are evaluated as an OR. That is, if the IP address is contained within any of the given CIDR ranges, the condition is deemed to match. For NOT_CIDR_MATCHES, if multiple CIDR ranges are given, the condition is deemed to match if the IP address is not contained in any of the given CIDR ranges.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • values

        RuleIpExpression.Builder values​(String... values)

        The IP CIDR blocks in format "x.y.z.w/n" (eg 10.0.0.0/8) to match with the email's IP address. For the operator CIDR_MATCHES, if multiple values are given, they are evaluated as an OR. That is, if the IP address is contained within any of the given CIDR ranges, the condition is deemed to match. For NOT_CIDR_MATCHES, if multiple CIDR ranges are given, the condition is deemed to match if the IP address is not contained in any of the given CIDR ranges.

        Parameters:
        values - The IP CIDR blocks in format "x.y.z.w/n" (eg 10.0.0.0/8) to match with the email's IP address. For the operator CIDR_MATCHES, if multiple values are given, they are evaluated as an OR. That is, if the IP address is contained within any of the given CIDR ranges, the condition is deemed to match. For NOT_CIDR_MATCHES, if multiple CIDR ranges are given, the condition is deemed to match if the IP address is not contained in any of the given CIDR ranges.
        Returns:
        Returns a reference to this object so that method calls can be chained together.