Interface BounceAction.Builder

  • Method Details

    • actionFailurePolicy

      BounceAction.Builder actionFailurePolicy(String actionFailurePolicy)

      A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the caller does not have the permissions to call the SendBounce API.

      Parameters:
      actionFailurePolicy - A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the caller does not have the permissions to call the SendBounce API.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • actionFailurePolicy

      BounceAction.Builder actionFailurePolicy(ActionFailurePolicy actionFailurePolicy)

      A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the caller does not have the permissions to call the SendBounce API.

      Parameters:
      actionFailurePolicy - A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the caller does not have the permissions to call the SendBounce API.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • roleArn

      BounceAction.Builder roleArn(String roleArn)

      The Amazon Resource Name (ARN) of the IAM role to use to send the bounce message.

      Parameters:
      roleArn - The Amazon Resource Name (ARN) of the IAM role to use to send the bounce message.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sender

      BounceAction.Builder sender(String sender)

      The sender email address of the bounce message.

      Parameters:
      sender - The sender email address of the bounce message.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • statusCode

      BounceAction.Builder statusCode(String statusCode)

      The enhanced status code for the bounce, in the format of x.y.z (e.g. 5.1.1).

      Parameters:
      statusCode - The enhanced status code for the bounce, in the format of x.y.z (e.g. 5.1.1).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • smtpReplyCode

      BounceAction.Builder smtpReplyCode(String smtpReplyCode)

      The SMTP reply code for the bounce, as defined by RFC 5321.

      Parameters:
      smtpReplyCode - The SMTP reply code for the bounce, as defined by RFC 5321.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • diagnosticMessage

      BounceAction.Builder diagnosticMessage(String diagnosticMessage)

      The diagnostic message included in the Diagnostic-Code header of the bounce.

      Parameters:
      diagnosticMessage - The diagnostic message included in the Diagnostic-Code header of the bounce.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • message

      BounceAction.Builder message(String message)

      The human-readable text to include in the bounce message.

      Parameters:
      message - The human-readable text to include in the bounce message.
      Returns:
      Returns a reference to this object so that method calls can be chained together.