Interface SendBounceRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<SendBounceRequest.Builder,SendBounceRequest>, SdkBuilder<SendBounceRequest.Builder,SendBounceRequest>, SdkPojo, SdkRequest.Builder, SesRequest.Builder
Enclosing class:
SendBounceRequest

public static interface SendBounceRequest.Builder extends SesRequest.Builder, SdkPojo, CopyableBuilder<SendBounceRequest.Builder,SendBounceRequest>
  • Method Details

    • originalMessageId

      SendBounceRequest.Builder originalMessageId(String originalMessageId)

      The message ID of the message to be bounced.

      Parameters:
      originalMessageId - The message ID of the message to be bounced.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • bounceSender

      SendBounceRequest.Builder bounceSender(String bounceSender)

      The address to use in the "From" header of the bounce message. This must be an identity that you have verified with Amazon SES.

      Parameters:
      bounceSender - The address to use in the "From" header of the bounce message. This must be an identity that you have verified with Amazon SES.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • explanation

      SendBounceRequest.Builder explanation(String explanation)

      Human-readable text for the bounce message to explain the failure. If not specified, the text is auto-generated based on the bounced recipient information.

      Parameters:
      explanation - Human-readable text for the bounce message to explain the failure. If not specified, the text is auto-generated based on the bounced recipient information.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • messageDsn

      SendBounceRequest.Builder messageDsn(MessageDsn messageDsn)

      Message-related DSN fields. If not specified, Amazon SES chooses the values.

      Parameters:
      messageDsn - Message-related DSN fields. If not specified, Amazon SES chooses the values.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • messageDsn

      default SendBounceRequest.Builder messageDsn(Consumer<MessageDsn.Builder> messageDsn)

      Message-related DSN fields. If not specified, Amazon SES chooses the values.

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

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

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

      SendBounceRequest.Builder bouncedRecipientInfoList(Collection<BouncedRecipientInfo> bouncedRecipientInfoList)

      A list of recipients of the bounced message, including the information required to create the Delivery Status Notifications (DSNs) for the recipients. You must specify at least one BouncedRecipientInfo in the list.

      Parameters:
      bouncedRecipientInfoList - A list of recipients of the bounced message, including the information required to create the Delivery Status Notifications (DSNs) for the recipients. You must specify at least one BouncedRecipientInfo in the list.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • bouncedRecipientInfoList

      SendBounceRequest.Builder bouncedRecipientInfoList(BouncedRecipientInfo... bouncedRecipientInfoList)

      A list of recipients of the bounced message, including the information required to create the Delivery Status Notifications (DSNs) for the recipients. You must specify at least one BouncedRecipientInfo in the list.

      Parameters:
      bouncedRecipientInfoList - A list of recipients of the bounced message, including the information required to create the Delivery Status Notifications (DSNs) for the recipients. You must specify at least one BouncedRecipientInfo in the list.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • bouncedRecipientInfoList

      SendBounceRequest.Builder bouncedRecipientInfoList(Consumer<BouncedRecipientInfo.Builder>... bouncedRecipientInfoList)

      A list of recipients of the bounced message, including the information required to create the Delivery Status Notifications (DSNs) for the recipients. You must specify at least one BouncedRecipientInfo in the list.

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

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

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

      SendBounceRequest.Builder bounceSenderArn(String bounceSenderArn)

      This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the address in the "From" header of the bounce. For more information about sending authorization, see the Amazon SES Developer Guide.

      Parameters:
      bounceSenderArn - This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the address in the "From" header of the bounce. For more information about sending authorization, see the Amazon SES Developer Guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      SendBounceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.