aws_sdk_ses/operation/send_email/_send_email_input.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>Represents a request to send a single formatted email using Amazon SES. For more information, see the <a href="https://docs.aws.amazon.com/ses/latest/dg/send-email-formatted.html">Amazon SES Developer Guide</a>.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct SendEmailInput {
7 /// <p>The email address that is sending the email. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. For information about verifying identities, see the <a href="https://docs.aws.amazon.com/ses/latest/dg/creating-identities.html">Amazon SES Developer Guide</a>.</p>
8 /// <p>If you are sending on behalf of another user and have been permitted to do so by a sending authorization policy, then you must also specify the <code>SourceArn</code> parameter. 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><note>
9 /// <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>
10 /// </note>
11 pub source: ::std::option::Option<::std::string::String>,
12 /// <p>The destination for this email, composed of To:, CC:, and BCC: fields.</p>
13 pub destination: ::std::option::Option<crate::types::Destination>,
14 /// <p>The message to be sent.</p>
15 pub message: ::std::option::Option<crate::types::Message>,
16 /// <p>The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address receives the reply.</p>
17 pub reply_to_addresses: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
18 /// <p>The email address that bounces and complaints are forwarded to when feedback forwarding is enabled. If the message cannot be delivered to the recipient, then an error message is returned from the recipient's ISP; this message is forwarded to the email address specified by the <code>ReturnPath</code> parameter. The <code>ReturnPath</code> parameter is never overwritten. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES.</p>
19 pub return_path: ::std::option::Option<::std::string::String>,
20 /// <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>
21 /// <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>
22 /// <p>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>
23 pub source_arn: ::std::option::Option<::std::string::String>,
24 /// <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>
25 /// <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>
26 /// <p>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>
27 pub return_path_arn: ::std::option::Option<::std::string::String>,
28 /// <p>A list of tags, in the form of name/value pairs, to apply to an email that you send using <code>SendEmail</code>. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.</p>
29 pub tags: ::std::option::Option<::std::vec::Vec<crate::types::MessageTag>>,
30 /// <p>The name of the configuration set to use when you send an email using <code>SendEmail</code>.</p>
31 pub configuration_set_name: ::std::option::Option<::std::string::String>,
32}
33impl SendEmailInput {
34 /// <p>The email address that is sending the email. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. For information about verifying identities, see the <a href="https://docs.aws.amazon.com/ses/latest/dg/creating-identities.html">Amazon SES Developer Guide</a>.</p>
35 /// <p>If you are sending on behalf of another user and have been permitted to do so by a sending authorization policy, then you must also specify the <code>SourceArn</code> parameter. 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><note>
36 /// <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>
37 /// </note>
38 pub fn source(&self) -> ::std::option::Option<&str> {
39 self.source.as_deref()
40 }
41 /// <p>The destination for this email, composed of To:, CC:, and BCC: fields.</p>
42 pub fn destination(&self) -> ::std::option::Option<&crate::types::Destination> {
43 self.destination.as_ref()
44 }
45 /// <p>The message to be sent.</p>
46 pub fn message(&self) -> ::std::option::Option<&crate::types::Message> {
47 self.message.as_ref()
48 }
49 /// <p>The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address receives the reply.</p>
50 ///
51 /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.reply_to_addresses.is_none()`.
52 pub fn reply_to_addresses(&self) -> &[::std::string::String] {
53 self.reply_to_addresses.as_deref().unwrap_or_default()
54 }
55 /// <p>The email address that bounces and complaints are forwarded to when feedback forwarding is enabled. If the message cannot be delivered to the recipient, then an error message is returned from the recipient's ISP; this message is forwarded to the email address specified by the <code>ReturnPath</code> parameter. The <code>ReturnPath</code> parameter is never overwritten. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES.</p>
56 pub fn return_path(&self) -> ::std::option::Option<&str> {
57 self.return_path.as_deref()
58 }
59 /// <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>
60 /// <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>
61 /// <p>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>
62 pub fn source_arn(&self) -> ::std::option::Option<&str> {
63 self.source_arn.as_deref()
64 }
65 /// <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>
66 /// <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>
67 /// <p>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>
68 pub fn return_path_arn(&self) -> ::std::option::Option<&str> {
69 self.return_path_arn.as_deref()
70 }
71 /// <p>A list of tags, in the form of name/value pairs, to apply to an email that you send using <code>SendEmail</code>. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.</p>
72 ///
73 /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.tags.is_none()`.
74 pub fn tags(&self) -> &[crate::types::MessageTag] {
75 self.tags.as_deref().unwrap_or_default()
76 }
77 /// <p>The name of the configuration set to use when you send an email using <code>SendEmail</code>.</p>
78 pub fn configuration_set_name(&self) -> ::std::option::Option<&str> {
79 self.configuration_set_name.as_deref()
80 }
81}
82impl SendEmailInput {
83 /// Creates a new builder-style object to manufacture [`SendEmailInput`](crate::operation::send_email::SendEmailInput).
84 pub fn builder() -> crate::operation::send_email::builders::SendEmailInputBuilder {
85 crate::operation::send_email::builders::SendEmailInputBuilder::default()
86 }
87}
88
89/// A builder for [`SendEmailInput`](crate::operation::send_email::SendEmailInput).
90#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
91#[non_exhaustive]
92pub struct SendEmailInputBuilder {
93 pub(crate) source: ::std::option::Option<::std::string::String>,
94 pub(crate) destination: ::std::option::Option<crate::types::Destination>,
95 pub(crate) message: ::std::option::Option<crate::types::Message>,
96 pub(crate) reply_to_addresses: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
97 pub(crate) return_path: ::std::option::Option<::std::string::String>,
98 pub(crate) source_arn: ::std::option::Option<::std::string::String>,
99 pub(crate) return_path_arn: ::std::option::Option<::std::string::String>,
100 pub(crate) tags: ::std::option::Option<::std::vec::Vec<crate::types::MessageTag>>,
101 pub(crate) configuration_set_name: ::std::option::Option<::std::string::String>,
102}
103impl SendEmailInputBuilder {
104 /// <p>The email address that is sending the email. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. For information about verifying identities, see the <a href="https://docs.aws.amazon.com/ses/latest/dg/creating-identities.html">Amazon SES Developer Guide</a>.</p>
105 /// <p>If you are sending on behalf of another user and have been permitted to do so by a sending authorization policy, then you must also specify the <code>SourceArn</code> parameter. 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><note>
106 /// <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>
107 /// </note>
108 /// This field is required.
109 pub fn source(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
110 self.source = ::std::option::Option::Some(input.into());
111 self
112 }
113 /// <p>The email address that is sending the email. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. For information about verifying identities, see the <a href="https://docs.aws.amazon.com/ses/latest/dg/creating-identities.html">Amazon SES Developer Guide</a>.</p>
114 /// <p>If you are sending on behalf of another user and have been permitted to do so by a sending authorization policy, then you must also specify the <code>SourceArn</code> parameter. 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><note>
115 /// <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>
116 /// </note>
117 pub fn set_source(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
118 self.source = input;
119 self
120 }
121 /// <p>The email address that is sending the email. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. For information about verifying identities, see the <a href="https://docs.aws.amazon.com/ses/latest/dg/creating-identities.html">Amazon SES Developer Guide</a>.</p>
122 /// <p>If you are sending on behalf of another user and have been permitted to do so by a sending authorization policy, then you must also specify the <code>SourceArn</code> parameter. 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><note>
123 /// <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>
124 /// </note>
125 pub fn get_source(&self) -> &::std::option::Option<::std::string::String> {
126 &self.source
127 }
128 /// <p>The destination for this email, composed of To:, CC:, and BCC: fields.</p>
129 /// This field is required.
130 pub fn destination(mut self, input: crate::types::Destination) -> Self {
131 self.destination = ::std::option::Option::Some(input);
132 self
133 }
134 /// <p>The destination for this email, composed of To:, CC:, and BCC: fields.</p>
135 pub fn set_destination(mut self, input: ::std::option::Option<crate::types::Destination>) -> Self {
136 self.destination = input;
137 self
138 }
139 /// <p>The destination for this email, composed of To:, CC:, and BCC: fields.</p>
140 pub fn get_destination(&self) -> &::std::option::Option<crate::types::Destination> {
141 &self.destination
142 }
143 /// <p>The message to be sent.</p>
144 /// This field is required.
145 pub fn message(mut self, input: crate::types::Message) -> Self {
146 self.message = ::std::option::Option::Some(input);
147 self
148 }
149 /// <p>The message to be sent.</p>
150 pub fn set_message(mut self, input: ::std::option::Option<crate::types::Message>) -> Self {
151 self.message = input;
152 self
153 }
154 /// <p>The message to be sent.</p>
155 pub fn get_message(&self) -> &::std::option::Option<crate::types::Message> {
156 &self.message
157 }
158 /// Appends an item to `reply_to_addresses`.
159 ///
160 /// To override the contents of this collection use [`set_reply_to_addresses`](Self::set_reply_to_addresses).
161 ///
162 /// <p>The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address receives the reply.</p>
163 pub fn reply_to_addresses(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
164 let mut v = self.reply_to_addresses.unwrap_or_default();
165 v.push(input.into());
166 self.reply_to_addresses = ::std::option::Option::Some(v);
167 self
168 }
169 /// <p>The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address receives the reply.</p>
170 pub fn set_reply_to_addresses(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
171 self.reply_to_addresses = input;
172 self
173 }
174 /// <p>The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address receives the reply.</p>
175 pub fn get_reply_to_addresses(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
176 &self.reply_to_addresses
177 }
178 /// <p>The email address that bounces and complaints are forwarded to when feedback forwarding is enabled. If the message cannot be delivered to the recipient, then an error message is returned from the recipient's ISP; this message is forwarded to the email address specified by the <code>ReturnPath</code> parameter. The <code>ReturnPath</code> parameter is never overwritten. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES.</p>
179 pub fn return_path(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
180 self.return_path = ::std::option::Option::Some(input.into());
181 self
182 }
183 /// <p>The email address that bounces and complaints are forwarded to when feedback forwarding is enabled. If the message cannot be delivered to the recipient, then an error message is returned from the recipient's ISP; this message is forwarded to the email address specified by the <code>ReturnPath</code> parameter. The <code>ReturnPath</code> parameter is never overwritten. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES.</p>
184 pub fn set_return_path(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
185 self.return_path = input;
186 self
187 }
188 /// <p>The email address that bounces and complaints are forwarded to when feedback forwarding is enabled. If the message cannot be delivered to the recipient, then an error message is returned from the recipient's ISP; this message is forwarded to the email address specified by the <code>ReturnPath</code> parameter. The <code>ReturnPath</code> parameter is never overwritten. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES.</p>
189 pub fn get_return_path(&self) -> &::std::option::Option<::std::string::String> {
190 &self.return_path
191 }
192 /// <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>
193 /// <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>
194 /// <p>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>
195 pub fn source_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
196 self.source_arn = ::std::option::Option::Some(input.into());
197 self
198 }
199 /// <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>
200 /// <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>
201 /// <p>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>
202 pub fn set_source_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
203 self.source_arn = input;
204 self
205 }
206 /// <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>
207 /// <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>
208 /// <p>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>
209 pub fn get_source_arn(&self) -> &::std::option::Option<::std::string::String> {
210 &self.source_arn
211 }
212 /// <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>
213 /// <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>
214 /// <p>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>
215 pub fn return_path_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
216 self.return_path_arn = ::std::option::Option::Some(input.into());
217 self
218 }
219 /// <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>
220 /// <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>
221 /// <p>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>
222 pub fn set_return_path_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
223 self.return_path_arn = input;
224 self
225 }
226 /// <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>
227 /// <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>
228 /// <p>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>
229 pub fn get_return_path_arn(&self) -> &::std::option::Option<::std::string::String> {
230 &self.return_path_arn
231 }
232 /// Appends an item to `tags`.
233 ///
234 /// To override the contents of this collection use [`set_tags`](Self::set_tags).
235 ///
236 /// <p>A list of tags, in the form of name/value pairs, to apply to an email that you send using <code>SendEmail</code>. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.</p>
237 pub fn tags(mut self, input: crate::types::MessageTag) -> Self {
238 let mut v = self.tags.unwrap_or_default();
239 v.push(input);
240 self.tags = ::std::option::Option::Some(v);
241 self
242 }
243 /// <p>A list of tags, in the form of name/value pairs, to apply to an email that you send using <code>SendEmail</code>. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.</p>
244 pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::MessageTag>>) -> Self {
245 self.tags = input;
246 self
247 }
248 /// <p>A list of tags, in the form of name/value pairs, to apply to an email that you send using <code>SendEmail</code>. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.</p>
249 pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::MessageTag>> {
250 &self.tags
251 }
252 /// <p>The name of the configuration set to use when you send an email using <code>SendEmail</code>.</p>
253 pub fn configuration_set_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
254 self.configuration_set_name = ::std::option::Option::Some(input.into());
255 self
256 }
257 /// <p>The name of the configuration set to use when you send an email using <code>SendEmail</code>.</p>
258 pub fn set_configuration_set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
259 self.configuration_set_name = input;
260 self
261 }
262 /// <p>The name of the configuration set to use when you send an email using <code>SendEmail</code>.</p>
263 pub fn get_configuration_set_name(&self) -> &::std::option::Option<::std::string::String> {
264 &self.configuration_set_name
265 }
266 /// Consumes the builder and constructs a [`SendEmailInput`](crate::operation::send_email::SendEmailInput).
267 pub fn build(self) -> ::std::result::Result<crate::operation::send_email::SendEmailInput, ::aws_smithy_types::error::operation::BuildError> {
268 ::std::result::Result::Ok(crate::operation::send_email::SendEmailInput {
269 source: self.source,
270 destination: self.destination,
271 message: self.message,
272 reply_to_addresses: self.reply_to_addresses,
273 return_path: self.return_path,
274 source_arn: self.source_arn,
275 return_path_arn: self.return_path_arn,
276 tags: self.tags,
277 configuration_set_name: self.configuration_set_name,
278 })
279 }
280}