1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`SendBounce`](crate::operation::send_bounce::builders::SendBounceFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`original_message_id(impl Into<String>)`](crate::operation::send_bounce::builders::SendBounceFluentBuilder::original_message_id) / [`set_original_message_id(Option<String>)`](crate::operation::send_bounce::builders::SendBounceFluentBuilder::set_original_message_id):<br>required: **true**<br><p>The message ID of the message to be bounced.</p><br>
    ///   - [`bounce_sender(impl Into<String>)`](crate::operation::send_bounce::builders::SendBounceFluentBuilder::bounce_sender) / [`set_bounce_sender(Option<String>)`](crate::operation::send_bounce::builders::SendBounceFluentBuilder::set_bounce_sender):<br>required: **true**<br><p>The address to use in the "From" header of the bounce message. This must be an identity that you have verified with Amazon SES.</p><br>
    ///   - [`explanation(impl Into<String>)`](crate::operation::send_bounce::builders::SendBounceFluentBuilder::explanation) / [`set_explanation(Option<String>)`](crate::operation::send_bounce::builders::SendBounceFluentBuilder::set_explanation):<br>required: **false**<br><p>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.</p><br>
    ///   - [`message_dsn(MessageDsn)`](crate::operation::send_bounce::builders::SendBounceFluentBuilder::message_dsn) / [`set_message_dsn(Option<MessageDsn>)`](crate::operation::send_bounce::builders::SendBounceFluentBuilder::set_message_dsn):<br>required: **false**<br><p>Message-related DSN fields. If not specified, Amazon SES chooses the values.</p><br>
    ///   - [`bounced_recipient_info_list(BouncedRecipientInfo)`](crate::operation::send_bounce::builders::SendBounceFluentBuilder::bounced_recipient_info_list) / [`set_bounced_recipient_info_list(Option<Vec::<BouncedRecipientInfo>>)`](crate::operation::send_bounce::builders::SendBounceFluentBuilder::set_bounced_recipient_info_list):<br>required: **true**<br><p>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 <code>BouncedRecipientInfo</code> in the list.</p><br>
    ///   - [`bounce_sender_arn(impl Into<String>)`](crate::operation::send_bounce::builders::SendBounceFluentBuilder::bounce_sender_arn) / [`set_bounce_sender_arn(Option<String>)`](crate::operation::send_bounce::builders::SendBounceFluentBuilder::set_bounce_sender_arn):<br>required: **false**<br><p>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 <a href="https://docs.aws.amazon.com/ses/latest/dg/sending-authorization.html">Amazon SES Developer Guide</a>.</p><br>
    /// - On success, responds with [`SendBounceOutput`](crate::operation::send_bounce::SendBounceOutput) with field(s):
    ///   - [`message_id(Option<String>)`](crate::operation::send_bounce::SendBounceOutput::message_id): <p>The message ID of the bounce message.</p>
    /// - On failure, responds with [`SdkError<SendBounceError>`](crate::operation::send_bounce::SendBounceError)
    pub fn send_bounce(&self) -> crate::operation::send_bounce::builders::SendBounceFluentBuilder {
        crate::operation::send_bounce::builders::SendBounceFluentBuilder::new(self.handle.clone())
    }
}