Interface RuleIpExpression.Builder

  • Method Details

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

      The IP address to evaluate in this condition.

      This is a convenience method that creates an instance of the RuleIpToEvaluate.Builder avoiding the need to create one manually via RuleIpToEvaluate.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to evaluate(RuleIpToEvaluate).

      Parameters:
      evaluate - a consumer that will call methods on RuleIpToEvaluate.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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:
    • 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:
    • 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.