Interface PolicyStatement.Builder

  • Method Details

    • action

      The action that informs a traffic policy resource to either allow or block the email if it matches a condition in the policy statement.

      Parameters:
      action - The action that informs a traffic policy resource to either allow or block the email if it matches a condition in the policy statement.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • action

      The action that informs a traffic policy resource to either allow or block the email if it matches a condition in the policy statement.

      Parameters:
      action - The action that informs a traffic policy resource to either allow or block the email if it matches a condition in the policy statement.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • conditions

      The list of conditions to apply to incoming messages for filtering email traffic.

      Parameters:
      conditions - The list of conditions to apply to incoming messages for filtering email traffic.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • conditions

      PolicyStatement.Builder conditions(PolicyCondition... conditions)

      The list of conditions to apply to incoming messages for filtering email traffic.

      Parameters:
      conditions - The list of conditions to apply to incoming messages for filtering email traffic.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • conditions

      The list of conditions to apply to incoming messages for filtering email traffic.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to conditions(List<PolicyCondition>).

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