Interface RuleVerdictExpression.Builder

  • Method Details

    • evaluate

      The verdict to evaluate in a verdict condition expression.

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

      The verdict to evaluate in a verdict condition expression.

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

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

      Parameters:
      evaluate - a consumer that will call methods on RuleVerdictToEvaluate.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • operator

      The matching operator for a verdict condition expression.

      Parameters:
      operator - The matching operator for a verdict condition expression.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • operator

      The matching operator for a verdict condition expression.

      Parameters:
      operator - The matching operator for a verdict condition expression.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • valuesWithStrings

      RuleVerdictExpression.Builder valuesWithStrings(Collection<String> values)

      The values to match with the email's verdict using the given operator. For the EQUALS operator, if multiple values are given, the condition is deemed to match if any of the given verdicts match that of the email. For the NOT_EQUALS operator, if multiple values are given, the condition is deemed to match of none of the given verdicts match the verdict of the email.

      Parameters:
      values - The values to match with the email's verdict using the given operator. For the EQUALS operator, if multiple values are given, the condition is deemed to match if any of the given verdicts match that of the email. For the NOT_EQUALS operator, if multiple values are given, the condition is deemed to match of none of the given verdicts match the verdict of the email.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • valuesWithStrings

      RuleVerdictExpression.Builder valuesWithStrings(String... values)

      The values to match with the email's verdict using the given operator. For the EQUALS operator, if multiple values are given, the condition is deemed to match if any of the given verdicts match that of the email. For the NOT_EQUALS operator, if multiple values are given, the condition is deemed to match of none of the given verdicts match the verdict of the email.

      Parameters:
      values - The values to match with the email's verdict using the given operator. For the EQUALS operator, if multiple values are given, the condition is deemed to match if any of the given verdicts match that of the email. For the NOT_EQUALS operator, if multiple values are given, the condition is deemed to match of none of the given verdicts match the verdict of the email.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • values

      The values to match with the email's verdict using the given operator. For the EQUALS operator, if multiple values are given, the condition is deemed to match if any of the given verdicts match that of the email. For the NOT_EQUALS operator, if multiple values are given, the condition is deemed to match of none of the given verdicts match the verdict of the email.

      Parameters:
      values - The values to match with the email's verdict using the given operator. For the EQUALS operator, if multiple values are given, the condition is deemed to match if any of the given verdicts match that of the email. For the NOT_EQUALS operator, if multiple values are given, the condition is deemed to match of none of the given verdicts match the verdict of the email.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • values

      The values to match with the email's verdict using the given operator. For the EQUALS operator, if multiple values are given, the condition is deemed to match if any of the given verdicts match that of the email. For the NOT_EQUALS operator, if multiple values are given, the condition is deemed to match of none of the given verdicts match the verdict of the email.

      Parameters:
      values - The values to match with the email's verdict using the given operator. For the EQUALS operator, if multiple values are given, the condition is deemed to match if any of the given verdicts match that of the email. For the NOT_EQUALS operator, if multiple values are given, the condition is deemed to match of none of the given verdicts match the verdict of the email.
      Returns:
      Returns a reference to this object so that method calls can be chained together.