aws_sdk_ses/operation/send_raw_email/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::send_raw_email::_send_raw_email_output::SendRawEmailOutputBuilder;
3
4pub use crate::operation::send_raw_email::_send_raw_email_input::SendRawEmailInputBuilder;
5
6impl crate::operation::send_raw_email::builders::SendRawEmailInputBuilder {
7    /// Sends a request with this input using the given client.
8    pub async fn send_with(
9        self,
10        client: &crate::Client,
11    ) -> ::std::result::Result<
12        crate::operation::send_raw_email::SendRawEmailOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::send_raw_email::SendRawEmailError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.send_raw_email();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `SendRawEmail`.
24///
25/// <p>Composes an email message and immediately queues it for sending.</p>
26/// <p>This operation is more flexible than the <code>SendEmail</code> operation. When you use the <code>SendRawEmail</code> operation, you can specify the headers of the message as well as its content. This flexibility is useful, for example, when you need to send a multipart MIME email (such a message that contains both a text and an HTML version). You can also use this operation to send messages that include attachments.</p>
27/// <p>The <code>SendRawEmail</code> operation has the following requirements:</p>
28/// <ul>
29/// <li>
30/// <p>You can only send email from <a href="https://docs.aws.amazon.com/ses/latest/dg/verify-addresses-and-domains.html">verified email addresses or domains</a>. If you try to send email from an address that isn't verified, the operation results in an "Email address not verified" error.</p></li>
31/// <li>
32/// <p>If your account is still in the <a href="https://docs.aws.amazon.com/ses/latest/dg/request-production-access.html">Amazon SES sandbox</a>, you can only send email to other verified addresses in your account, or to addresses that are associated with the <a href="https://docs.aws.amazon.com/ses/latest/dg/send-an-email-from-console.html">Amazon SES mailbox simulator</a>.</p></li>
33/// <li>
34/// <p>The maximum message size, including attachments, is 10 MB.</p></li>
35/// <li>
36/// <p>Each message has to include at least one recipient address. A recipient address includes any address on the To:, CC:, or BCC: lines.</p></li>
37/// <li>
38/// <p>If you send a single message to more than one recipient address, and one of the recipient addresses isn't in a valid format (that is, it's not in the format <i>UserName@\[SubDomain.\]Domain.TopLevelDomain</i>), Amazon SES rejects the entire message, even if the other addresses are valid.</p></li>
39/// <li>
40/// <p>Each message can include up to 50 recipient addresses across the To:, CC:, or BCC: lines. If you need to send a single message to more than 50 recipients, you have to split the list of recipient addresses into groups of less than 50 recipients, and send separate messages to each group.</p></li>
41/// <li>
42/// <p>Amazon SES allows you to specify 8-bit Content-Transfer-Encoding for MIME message parts. However, if Amazon SES has to modify the contents of your message (for example, if you use open and click tracking), 8-bit content isn't preserved. For this reason, we highly recommend that you encode all content that isn't 7-bit ASCII. For more information, see <a href="https://docs.aws.amazon.com/ses/latest/dg/send-email-raw.html#send-email-mime-encoding">MIME Encoding</a> in the <i>Amazon SES Developer Guide</i>.</p></li>
43/// </ul>
44/// <p>Additionally, keep the following considerations in mind when using the <code>SendRawEmail</code> operation:</p>
45/// <ul>
46/// <li>
47/// <p>Although you can customize the message headers when using the <code>SendRawEmail</code> operation, Amazon SES automatically applies its own <code>Message-ID</code> and <code>Date</code> headers; if you passed these headers when creating the message, they are overwritten by the values that Amazon SES provides.</p></li>
48/// <li>
49/// <p>If you are using sending authorization to send on behalf of another user, <code>SendRawEmail</code> enables you to specify the cross-account identity for the email's Source, From, and Return-Path parameters in one of two ways: you can pass optional parameters <code>SourceArn</code>, <code>FromArn</code>, and/or <code>ReturnPathArn</code>, or you can include the following X-headers in the header of your raw email:</p>
50/// <ul>
51/// <li>
52/// <p><code>X-SES-SOURCE-ARN</code></p></li>
53/// <li>
54/// <p><code>X-SES-FROM-ARN</code></p></li>
55/// <li>
56/// <p><code>X-SES-RETURN-PATH-ARN</code></p></li>
57/// </ul><important>
58/// <p>Don't include these X-headers in the DKIM signature. Amazon SES removes these before it sends the email.</p>
59/// </important>
60/// <p>If you only specify the <code>SourceIdentityArn</code> parameter, Amazon SES sets the From and Return-Path addresses to the same identity that you specified.</p>
61/// <p>For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/dg/sending-authorization.html">Using Sending Authorization with Amazon SES</a> in the <i>Amazon SES Developer Guide.</i></p></li>
62/// <li>
63/// <p>For every message that you send, the total number of recipients (including each recipient in the To:, CC: and BCC: fields) is counted against the maximum number of emails you can send in a 24-hour period (your <i>sending quota</i>). For more information about sending quotas in Amazon SES, see <a href="https://docs.aws.amazon.com/ses/latest/dg/manage-sending-quotas.html">Managing Your Amazon SES Sending Limits</a> in the <i>Amazon SES Developer Guide.</i></p></li>
64/// </ul>
65#[derive(::std::clone::Clone, ::std::fmt::Debug)]
66pub struct SendRawEmailFluentBuilder {
67    handle: ::std::sync::Arc<crate::client::Handle>,
68    inner: crate::operation::send_raw_email::builders::SendRawEmailInputBuilder,
69    config_override: ::std::option::Option<crate::config::Builder>,
70}
71impl
72    crate::client::customize::internal::CustomizableSend<
73        crate::operation::send_raw_email::SendRawEmailOutput,
74        crate::operation::send_raw_email::SendRawEmailError,
75    > for SendRawEmailFluentBuilder
76{
77    fn send(
78        self,
79        config_override: crate::config::Builder,
80    ) -> crate::client::customize::internal::BoxFuture<
81        crate::client::customize::internal::SendResult<
82            crate::operation::send_raw_email::SendRawEmailOutput,
83            crate::operation::send_raw_email::SendRawEmailError,
84        >,
85    > {
86        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
87    }
88}
89impl SendRawEmailFluentBuilder {
90    /// Creates a new `SendRawEmailFluentBuilder`.
91    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
92        Self {
93            handle,
94            inner: ::std::default::Default::default(),
95            config_override: ::std::option::Option::None,
96        }
97    }
98    /// Access the SendRawEmail as a reference.
99    pub fn as_input(&self) -> &crate::operation::send_raw_email::builders::SendRawEmailInputBuilder {
100        &self.inner
101    }
102    /// Sends the request and returns the response.
103    ///
104    /// If an error occurs, an `SdkError` will be returned with additional details that
105    /// can be matched against.
106    ///
107    /// By default, any retryable failures will be retried twice. Retry behavior
108    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
109    /// set when configuring the client.
110    pub async fn send(
111        self,
112    ) -> ::std::result::Result<
113        crate::operation::send_raw_email::SendRawEmailOutput,
114        ::aws_smithy_runtime_api::client::result::SdkError<
115            crate::operation::send_raw_email::SendRawEmailError,
116            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
117        >,
118    > {
119        let input = self
120            .inner
121            .build()
122            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
123        let runtime_plugins = crate::operation::send_raw_email::SendRawEmail::operation_runtime_plugins(
124            self.handle.runtime_plugins.clone(),
125            &self.handle.conf,
126            self.config_override,
127        );
128        crate::operation::send_raw_email::SendRawEmail::orchestrate(&runtime_plugins, input).await
129    }
130
131    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
132    pub fn customize(
133        self,
134    ) -> crate::client::customize::CustomizableOperation<
135        crate::operation::send_raw_email::SendRawEmailOutput,
136        crate::operation::send_raw_email::SendRawEmailError,
137        Self,
138    > {
139        crate::client::customize::CustomizableOperation::new(self)
140    }
141    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
142        self.set_config_override(::std::option::Option::Some(config_override.into()));
143        self
144    }
145
146    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
147        self.config_override = config_override;
148        self
149    }
150    /// <p>The identity's email address. If you do not provide a value for this parameter, you must specify a "From" address in the raw text of the message. (You can also specify both.)</p><note>
151    /// <p>Amazon SES does not support the SMTPUTF8 extension, as described in<a href="https://tools.ietf.org/html/rfc6531">RFC6531</a>. For this reason, the email address string must be 7-bit ASCII. If you want to send to or from email addresses that contain Unicode characters in the domain part of an address, you must encode the domain using Punycode. Punycode is not permitted in the local part of the email address (the part before the @ sign) nor in the "friendly from" name. If you want to use Unicode characters in the "friendly from" name, you must encode the "friendly from" name using MIME encoded-word syntax, as described in <a href="https://docs.aws.amazon.com/ses/latest/dg/send-email-raw.html">Sending raw email using the Amazon SES API</a>. For more information about Punycode, see <a href="http://tools.ietf.org/html/rfc3492">RFC 3492</a>.</p>
152    /// </note>
153    /// <p>If you specify the <code>Source</code> parameter and have feedback forwarding enabled, then bounces and complaints are sent to this email address. This takes precedence over any Return-Path header that you might include in the raw text of the message.</p>
154    pub fn source(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
155        self.inner = self.inner.source(input.into());
156        self
157    }
158    /// <p>The identity's email address. If you do not provide a value for this parameter, you must specify a "From" address in the raw text of the message. (You can also specify both.)</p><note>
159    /// <p>Amazon SES does not support the SMTPUTF8 extension, as described in<a href="https://tools.ietf.org/html/rfc6531">RFC6531</a>. For this reason, the email address string must be 7-bit ASCII. If you want to send to or from email addresses that contain Unicode characters in the domain part of an address, you must encode the domain using Punycode. Punycode is not permitted in the local part of the email address (the part before the @ sign) nor in the "friendly from" name. If you want to use Unicode characters in the "friendly from" name, you must encode the "friendly from" name using MIME encoded-word syntax, as described in <a href="https://docs.aws.amazon.com/ses/latest/dg/send-email-raw.html">Sending raw email using the Amazon SES API</a>. For more information about Punycode, see <a href="http://tools.ietf.org/html/rfc3492">RFC 3492</a>.</p>
160    /// </note>
161    /// <p>If you specify the <code>Source</code> parameter and have feedback forwarding enabled, then bounces and complaints are sent to this email address. This takes precedence over any Return-Path header that you might include in the raw text of the message.</p>
162    pub fn set_source(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
163        self.inner = self.inner.set_source(input);
164        self
165    }
166    /// <p>The identity's email address. If you do not provide a value for this parameter, you must specify a "From" address in the raw text of the message. (You can also specify both.)</p><note>
167    /// <p>Amazon SES does not support the SMTPUTF8 extension, as described in<a href="https://tools.ietf.org/html/rfc6531">RFC6531</a>. For this reason, the email address string must be 7-bit ASCII. If you want to send to or from email addresses that contain Unicode characters in the domain part of an address, you must encode the domain using Punycode. Punycode is not permitted in the local part of the email address (the part before the @ sign) nor in the "friendly from" name. If you want to use Unicode characters in the "friendly from" name, you must encode the "friendly from" name using MIME encoded-word syntax, as described in <a href="https://docs.aws.amazon.com/ses/latest/dg/send-email-raw.html">Sending raw email using the Amazon SES API</a>. For more information about Punycode, see <a href="http://tools.ietf.org/html/rfc3492">RFC 3492</a>.</p>
168    /// </note>
169    /// <p>If you specify the <code>Source</code> parameter and have feedback forwarding enabled, then bounces and complaints are sent to this email address. This takes precedence over any Return-Path header that you might include in the raw text of the message.</p>
170    pub fn get_source(&self) -> &::std::option::Option<::std::string::String> {
171        self.inner.get_source()
172    }
173    ///
174    /// Appends an item to `Destinations`.
175    ///
176    /// To override the contents of this collection use [`set_destinations`](Self::set_destinations).
177    ///
178    /// <p>A list of destinations for the message, consisting of To:, CC:, and BCC: addresses.</p>
179    pub fn destinations(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
180        self.inner = self.inner.destinations(input.into());
181        self
182    }
183    /// <p>A list of destinations for the message, consisting of To:, CC:, and BCC: addresses.</p>
184    pub fn set_destinations(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
185        self.inner = self.inner.set_destinations(input);
186        self
187    }
188    /// <p>A list of destinations for the message, consisting of To:, CC:, and BCC: addresses.</p>
189    pub fn get_destinations(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
190        self.inner.get_destinations()
191    }
192    /// <p>The raw email message itself. The message has to meet the following criteria:</p>
193    /// <ul>
194    /// <li>
195    /// <p>The message has to contain a header and a body, separated by a blank line.</p></li>
196    /// <li>
197    /// <p>All of the required header fields must be present in the message.</p></li>
198    /// <li>
199    /// <p>Each part of a multipart MIME message must be formatted properly.</p></li>
200    /// <li>
201    /// <p>Attachments must be of a content type that Amazon SES supports. For a list on unsupported content types, see <a href="https://docs.aws.amazon.com/ses/latest/dg/mime-types.html">Unsupported Attachment Types</a> in the <i>Amazon SES Developer Guide</i>.</p></li>
202    /// <li>
203    /// <p>The entire message must be base64-encoded.</p></li>
204    /// <li>
205    /// <p>If any of the MIME parts in your message contain content that is outside of the 7-bit ASCII character range, we highly recommend that you encode that content. For more information, see <a href="https://docs.aws.amazon.com/ses/latest/dg/send-email-raw.html">Sending Raw Email</a> in the <i>Amazon SES Developer Guide</i>.</p></li>
206    /// <li>
207    /// <p>Per <a href="https://tools.ietf.org/html/rfc5321#section-4.5.3.1.6">RFC 5321</a>, the maximum length of each line of text, including the <crlf>
208    /// , must not exceed 1,000 characters.
209    /// </crlf></p></li>
210    /// </ul>
211    pub fn raw_message(mut self, input: crate::types::RawMessage) -> Self {
212        self.inner = self.inner.raw_message(input);
213        self
214    }
215    /// <p>The raw email message itself. The message has to meet the following criteria:</p>
216    /// <ul>
217    /// <li>
218    /// <p>The message has to contain a header and a body, separated by a blank line.</p></li>
219    /// <li>
220    /// <p>All of the required header fields must be present in the message.</p></li>
221    /// <li>
222    /// <p>Each part of a multipart MIME message must be formatted properly.</p></li>
223    /// <li>
224    /// <p>Attachments must be of a content type that Amazon SES supports. For a list on unsupported content types, see <a href="https://docs.aws.amazon.com/ses/latest/dg/mime-types.html">Unsupported Attachment Types</a> in the <i>Amazon SES Developer Guide</i>.</p></li>
225    /// <li>
226    /// <p>The entire message must be base64-encoded.</p></li>
227    /// <li>
228    /// <p>If any of the MIME parts in your message contain content that is outside of the 7-bit ASCII character range, we highly recommend that you encode that content. For more information, see <a href="https://docs.aws.amazon.com/ses/latest/dg/send-email-raw.html">Sending Raw Email</a> in the <i>Amazon SES Developer Guide</i>.</p></li>
229    /// <li>
230    /// <p>Per <a href="https://tools.ietf.org/html/rfc5321#section-4.5.3.1.6">RFC 5321</a>, the maximum length of each line of text, including the <crlf>
231    /// , must not exceed 1,000 characters.
232    /// </crlf></p></li>
233    /// </ul>
234    pub fn set_raw_message(mut self, input: ::std::option::Option<crate::types::RawMessage>) -> Self {
235        self.inner = self.inner.set_raw_message(input);
236        self
237    }
238    /// <p>The raw email message itself. The message has to meet the following criteria:</p>
239    /// <ul>
240    /// <li>
241    /// <p>The message has to contain a header and a body, separated by a blank line.</p></li>
242    /// <li>
243    /// <p>All of the required header fields must be present in the message.</p></li>
244    /// <li>
245    /// <p>Each part of a multipart MIME message must be formatted properly.</p></li>
246    /// <li>
247    /// <p>Attachments must be of a content type that Amazon SES supports. For a list on unsupported content types, see <a href="https://docs.aws.amazon.com/ses/latest/dg/mime-types.html">Unsupported Attachment Types</a> in the <i>Amazon SES Developer Guide</i>.</p></li>
248    /// <li>
249    /// <p>The entire message must be base64-encoded.</p></li>
250    /// <li>
251    /// <p>If any of the MIME parts in your message contain content that is outside of the 7-bit ASCII character range, we highly recommend that you encode that content. For more information, see <a href="https://docs.aws.amazon.com/ses/latest/dg/send-email-raw.html">Sending Raw Email</a> in the <i>Amazon SES Developer Guide</i>.</p></li>
252    /// <li>
253    /// <p>Per <a href="https://tools.ietf.org/html/rfc5321#section-4.5.3.1.6">RFC 5321</a>, the maximum length of each line of text, including the <crlf>
254    /// , must not exceed 1,000 characters.
255    /// </crlf></p></li>
256    /// </ul>
257    pub fn get_raw_message(&self) -> &::std::option::Option<crate::types::RawMessage> {
258        self.inner.get_raw_message()
259    }
260    /// <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 specify a particular "From" address in the header of the raw email.</p>
261    /// <p>Instead of using this parameter, you can use the X-header <code>X-SES-FROM-ARN</code> in the raw message of the email. If you use both the <code>FromArn</code> parameter and the corresponding X-header, Amazon SES uses the value of the <code>FromArn</code> parameter.</p><note>
262    /// <p>For information about when to use this parameter, see the description of <code>SendRawEmail</code> in this guide, or see the <a href="https://docs.aws.amazon.com/ses/latest/dg/sending-authorization-delegate-sender-tasks-email.html">Amazon SES Developer Guide</a>.</p>
263    /// </note>
264    pub fn from_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
265        self.inner = self.inner.from_arn(input.into());
266        self
267    }
268    /// <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 specify a particular "From" address in the header of the raw email.</p>
269    /// <p>Instead of using this parameter, you can use the X-header <code>X-SES-FROM-ARN</code> in the raw message of the email. If you use both the <code>FromArn</code> parameter and the corresponding X-header, Amazon SES uses the value of the <code>FromArn</code> parameter.</p><note>
270    /// <p>For information about when to use this parameter, see the description of <code>SendRawEmail</code> in this guide, or see the <a href="https://docs.aws.amazon.com/ses/latest/dg/sending-authorization-delegate-sender-tasks-email.html">Amazon SES Developer Guide</a>.</p>
271    /// </note>
272    pub fn set_from_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
273        self.inner = self.inner.set_from_arn(input);
274        self
275    }
276    /// <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 specify a particular "From" address in the header of the raw email.</p>
277    /// <p>Instead of using this parameter, you can use the X-header <code>X-SES-FROM-ARN</code> in the raw message of the email. If you use both the <code>FromArn</code> parameter and the corresponding X-header, Amazon SES uses the value of the <code>FromArn</code> parameter.</p><note>
278    /// <p>For information about when to use this parameter, see the description of <code>SendRawEmail</code> in this guide, or see the <a href="https://docs.aws.amazon.com/ses/latest/dg/sending-authorization-delegate-sender-tasks-email.html">Amazon SES Developer Guide</a>.</p>
279    /// </note>
280    pub fn get_from_arn(&self) -> &::std::option::Option<::std::string::String> {
281        self.inner.get_from_arn()
282    }
283    /// <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 send for the email address specified in the <code>Source</code> parameter.</p>
284    /// <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to send from <code>user@example.com</code>, then you would specify the <code>SourceArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>Source</code> to be <code>user@example.com</code>.</p>
285    /// <p>Instead of using this parameter, you can use the X-header <code>X-SES-SOURCE-ARN</code> in the raw message of the email. If you use both the <code>SourceArn</code> parameter and the corresponding X-header, Amazon SES uses the value of the <code>SourceArn</code> parameter.</p><note>
286    /// <p>For information about when to use this parameter, see the description of <code>SendRawEmail</code> in this guide, or see the <a href="https://docs.aws.amazon.com/ses/latest/dg/sending-authorization-delegate-sender-tasks-email.html">Amazon SES Developer Guide</a>.</p>
287    /// </note>
288    pub fn source_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
289        self.inner = self.inner.source_arn(input.into());
290        self
291    }
292    /// <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 send for the email address specified in the <code>Source</code> parameter.</p>
293    /// <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to send from <code>user@example.com</code>, then you would specify the <code>SourceArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>Source</code> to be <code>user@example.com</code>.</p>
294    /// <p>Instead of using this parameter, you can use the X-header <code>X-SES-SOURCE-ARN</code> in the raw message of the email. If you use both the <code>SourceArn</code> parameter and the corresponding X-header, Amazon SES uses the value of the <code>SourceArn</code> parameter.</p><note>
295    /// <p>For information about when to use this parameter, see the description of <code>SendRawEmail</code> in this guide, or see the <a href="https://docs.aws.amazon.com/ses/latest/dg/sending-authorization-delegate-sender-tasks-email.html">Amazon SES Developer Guide</a>.</p>
296    /// </note>
297    pub fn set_source_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
298        self.inner = self.inner.set_source_arn(input);
299        self
300    }
301    /// <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 send for the email address specified in the <code>Source</code> parameter.</p>
302    /// <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to send from <code>user@example.com</code>, then you would specify the <code>SourceArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>Source</code> to be <code>user@example.com</code>.</p>
303    /// <p>Instead of using this parameter, you can use the X-header <code>X-SES-SOURCE-ARN</code> in the raw message of the email. If you use both the <code>SourceArn</code> parameter and the corresponding X-header, Amazon SES uses the value of the <code>SourceArn</code> parameter.</p><note>
304    /// <p>For information about when to use this parameter, see the description of <code>SendRawEmail</code> in this guide, or see the <a href="https://docs.aws.amazon.com/ses/latest/dg/sending-authorization-delegate-sender-tasks-email.html">Amazon SES Developer Guide</a>.</p>
305    /// </note>
306    pub fn get_source_arn(&self) -> &::std::option::Option<::std::string::String> {
307        self.inner.get_source_arn()
308    }
309    /// <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 email address specified in the <code>ReturnPath</code> parameter.</p>
310    /// <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to use <code>feedback@example.com</code>, then you would specify the <code>ReturnPathArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>ReturnPath</code> to be <code>feedback@example.com</code>.</p>
311    /// <p>Instead of using this parameter, you can use the X-header <code>X-SES-RETURN-PATH-ARN</code> in the raw message of the email. If you use both the <code>ReturnPathArn</code> parameter and the corresponding X-header, Amazon SES uses the value of the <code>ReturnPathArn</code> parameter.</p><note>
312    /// <p>For information about when to use this parameter, see the description of <code>SendRawEmail</code> in this guide, or see the <a href="https://docs.aws.amazon.com/ses/latest/dg/sending-authorization-delegate-sender-tasks-email.html">Amazon SES Developer Guide</a>.</p>
313    /// </note>
314    pub fn return_path_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
315        self.inner = self.inner.return_path_arn(input.into());
316        self
317    }
318    /// <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 email address specified in the <code>ReturnPath</code> parameter.</p>
319    /// <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to use <code>feedback@example.com</code>, then you would specify the <code>ReturnPathArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>ReturnPath</code> to be <code>feedback@example.com</code>.</p>
320    /// <p>Instead of using this parameter, you can use the X-header <code>X-SES-RETURN-PATH-ARN</code> in the raw message of the email. If you use both the <code>ReturnPathArn</code> parameter and the corresponding X-header, Amazon SES uses the value of the <code>ReturnPathArn</code> parameter.</p><note>
321    /// <p>For information about when to use this parameter, see the description of <code>SendRawEmail</code> in this guide, or see the <a href="https://docs.aws.amazon.com/ses/latest/dg/sending-authorization-delegate-sender-tasks-email.html">Amazon SES Developer Guide</a>.</p>
322    /// </note>
323    pub fn set_return_path_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
324        self.inner = self.inner.set_return_path_arn(input);
325        self
326    }
327    /// <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 email address specified in the <code>ReturnPath</code> parameter.</p>
328    /// <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to use <code>feedback@example.com</code>, then you would specify the <code>ReturnPathArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>ReturnPath</code> to be <code>feedback@example.com</code>.</p>
329    /// <p>Instead of using this parameter, you can use the X-header <code>X-SES-RETURN-PATH-ARN</code> in the raw message of the email. If you use both the <code>ReturnPathArn</code> parameter and the corresponding X-header, Amazon SES uses the value of the <code>ReturnPathArn</code> parameter.</p><note>
330    /// <p>For information about when to use this parameter, see the description of <code>SendRawEmail</code> in this guide, or see the <a href="https://docs.aws.amazon.com/ses/latest/dg/sending-authorization-delegate-sender-tasks-email.html">Amazon SES Developer Guide</a>.</p>
331    /// </note>
332    pub fn get_return_path_arn(&self) -> &::std::option::Option<::std::string::String> {
333        self.inner.get_return_path_arn()
334    }
335    ///
336    /// Appends an item to `Tags`.
337    ///
338    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
339    ///
340    /// <p>A list of tags, in the form of name/value pairs, to apply to an email that you send using <code>SendRawEmail</code>. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.</p>
341    pub fn tags(mut self, input: crate::types::MessageTag) -> Self {
342        self.inner = self.inner.tags(input);
343        self
344    }
345    /// <p>A list of tags, in the form of name/value pairs, to apply to an email that you send using <code>SendRawEmail</code>. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.</p>
346    pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::MessageTag>>) -> Self {
347        self.inner = self.inner.set_tags(input);
348        self
349    }
350    /// <p>A list of tags, in the form of name/value pairs, to apply to an email that you send using <code>SendRawEmail</code>. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.</p>
351    pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::MessageTag>> {
352        self.inner.get_tags()
353    }
354    /// <p>The name of the configuration set to use when you send an email using <code>SendRawEmail</code>.</p>
355    pub fn configuration_set_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
356        self.inner = self.inner.configuration_set_name(input.into());
357        self
358    }
359    /// <p>The name of the configuration set to use when you send an email using <code>SendRawEmail</code>.</p>
360    pub fn set_configuration_set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
361        self.inner = self.inner.set_configuration_set_name(input);
362        self
363    }
364    /// <p>The name of the configuration set to use when you send an email using <code>SendRawEmail</code>.</p>
365    pub fn get_configuration_set_name(&self) -> &::std::option::Option<::std::string::String> {
366        self.inner.get_configuration_set_name()
367    }
368}