AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
SendEmailRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sesv2/SESV2Request.h>
10#include <aws/sesv2/SESV2_EXPORTS.h>
11#include <aws/sesv2/model/ConfigurationOverrides.h>
12#include <aws/sesv2/model/Destination.h>
13#include <aws/sesv2/model/EmailContent.h>
14#include <aws/sesv2/model/ListManagementOptions.h>
15#include <aws/sesv2/model/MessageTag.h>
16
17#include <utility>
18
19namespace Aws {
20namespace SESV2 {
21namespace Model {
22
32 public:
33 AWS_SESV2_API SendEmailRequest() = default;
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "SendEmail"; }
40
41 AWS_SESV2_API Aws::String SerializePayload() const override;
42
46 AWS_SESV2_API EndpointParameters GetEndpointContextParams() const override;
47
49
53 inline const Aws::String& GetFromEmailAddress() const { return m_fromEmailAddress; }
54 inline bool FromEmailAddressHasBeenSet() const { return m_fromEmailAddressHasBeenSet; }
55 template <typename FromEmailAddressT = Aws::String>
56 void SetFromEmailAddress(FromEmailAddressT&& value) {
57 m_fromEmailAddressHasBeenSet = true;
58 m_fromEmailAddress = std::forward<FromEmailAddressT>(value);
59 }
60 template <typename FromEmailAddressT = Aws::String>
61 SendEmailRequest& WithFromEmailAddress(FromEmailAddressT&& value) {
62 SetFromEmailAddress(std::forward<FromEmailAddressT>(value));
63 return *this;
64 }
66
68
84 inline const Aws::String& GetFromEmailAddressIdentityArn() const { return m_fromEmailAddressIdentityArn; }
85 inline bool FromEmailAddressIdentityArnHasBeenSet() const { return m_fromEmailAddressIdentityArnHasBeenSet; }
86 template <typename FromEmailAddressIdentityArnT = Aws::String>
87 void SetFromEmailAddressIdentityArn(FromEmailAddressIdentityArnT&& value) {
88 m_fromEmailAddressIdentityArnHasBeenSet = true;
89 m_fromEmailAddressIdentityArn = std::forward<FromEmailAddressIdentityArnT>(value);
90 }
91 template <typename FromEmailAddressIdentityArnT = Aws::String>
92 SendEmailRequest& WithFromEmailAddressIdentityArn(FromEmailAddressIdentityArnT&& value) {
93 SetFromEmailAddressIdentityArn(std::forward<FromEmailAddressIdentityArnT>(value));
94 return *this;
95 }
97
99
102 inline const Destination& GetDestination() const { return m_destination; }
103 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
104 template <typename DestinationT = Destination>
105 void SetDestination(DestinationT&& value) {
106 m_destinationHasBeenSet = true;
107 m_destination = std::forward<DestinationT>(value);
108 }
109 template <typename DestinationT = Destination>
110 SendEmailRequest& WithDestination(DestinationT&& value) {
111 SetDestination(std::forward<DestinationT>(value));
112 return *this;
113 }
115
117
121 inline const Aws::Vector<Aws::String>& GetReplyToAddresses() const { return m_replyToAddresses; }
122 inline bool ReplyToAddressesHasBeenSet() const { return m_replyToAddressesHasBeenSet; }
123 template <typename ReplyToAddressesT = Aws::Vector<Aws::String>>
124 void SetReplyToAddresses(ReplyToAddressesT&& value) {
125 m_replyToAddressesHasBeenSet = true;
126 m_replyToAddresses = std::forward<ReplyToAddressesT>(value);
127 }
128 template <typename ReplyToAddressesT = Aws::Vector<Aws::String>>
129 SendEmailRequest& WithReplyToAddresses(ReplyToAddressesT&& value) {
130 SetReplyToAddresses(std::forward<ReplyToAddressesT>(value));
131 return *this;
132 }
133 template <typename ReplyToAddressesT = Aws::String>
134 SendEmailRequest& AddReplyToAddresses(ReplyToAddressesT&& value) {
135 m_replyToAddressesHasBeenSet = true;
136 m_replyToAddresses.emplace_back(std::forward<ReplyToAddressesT>(value));
137 return *this;
138 }
140
142
146 inline const Aws::String& GetFeedbackForwardingEmailAddress() const { return m_feedbackForwardingEmailAddress; }
147 inline bool FeedbackForwardingEmailAddressHasBeenSet() const { return m_feedbackForwardingEmailAddressHasBeenSet; }
148 template <typename FeedbackForwardingEmailAddressT = Aws::String>
149 void SetFeedbackForwardingEmailAddress(FeedbackForwardingEmailAddressT&& value) {
150 m_feedbackForwardingEmailAddressHasBeenSet = true;
151 m_feedbackForwardingEmailAddress = std::forward<FeedbackForwardingEmailAddressT>(value);
152 }
153 template <typename FeedbackForwardingEmailAddressT = Aws::String>
154 SendEmailRequest& WithFeedbackForwardingEmailAddress(FeedbackForwardingEmailAddressT&& value) {
155 SetFeedbackForwardingEmailAddress(std::forward<FeedbackForwardingEmailAddressT>(value));
156 return *this;
157 }
159
161
176 inline const Aws::String& GetFeedbackForwardingEmailAddressIdentityArn() const { return m_feedbackForwardingEmailAddressIdentityArn; }
177 inline bool FeedbackForwardingEmailAddressIdentityArnHasBeenSet() const { return m_feedbackForwardingEmailAddressIdentityArnHasBeenSet; }
178 template <typename FeedbackForwardingEmailAddressIdentityArnT = Aws::String>
179 void SetFeedbackForwardingEmailAddressIdentityArn(FeedbackForwardingEmailAddressIdentityArnT&& value) {
180 m_feedbackForwardingEmailAddressIdentityArnHasBeenSet = true;
181 m_feedbackForwardingEmailAddressIdentityArn = std::forward<FeedbackForwardingEmailAddressIdentityArnT>(value);
182 }
183 template <typename FeedbackForwardingEmailAddressIdentityArnT = Aws::String>
184 SendEmailRequest& WithFeedbackForwardingEmailAddressIdentityArn(FeedbackForwardingEmailAddressIdentityArnT&& value) {
185 SetFeedbackForwardingEmailAddressIdentityArn(std::forward<FeedbackForwardingEmailAddressIdentityArnT>(value));
186 return *this;
187 }
189
191
195 inline const EmailContent& GetContent() const { return m_content; }
196 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
197 template <typename ContentT = EmailContent>
198 void SetContent(ContentT&& value) {
199 m_contentHasBeenSet = true;
200 m_content = std::forward<ContentT>(value);
201 }
202 template <typename ContentT = EmailContent>
203 SendEmailRequest& WithContent(ContentT&& value) {
204 SetContent(std::forward<ContentT>(value));
205 return *this;
206 }
208
210
216 inline const Aws::Vector<MessageTag>& GetEmailTags() const { return m_emailTags; }
217 inline bool EmailTagsHasBeenSet() const { return m_emailTagsHasBeenSet; }
218 template <typename EmailTagsT = Aws::Vector<MessageTag>>
219 void SetEmailTags(EmailTagsT&& value) {
220 m_emailTagsHasBeenSet = true;
221 m_emailTags = std::forward<EmailTagsT>(value);
222 }
223 template <typename EmailTagsT = Aws::Vector<MessageTag>>
224 SendEmailRequest& WithEmailTags(EmailTagsT&& value) {
225 SetEmailTags(std::forward<EmailTagsT>(value));
226 return *this;
227 }
228 template <typename EmailTagsT = MessageTag>
229 SendEmailRequest& AddEmailTags(EmailTagsT&& value) {
230 m_emailTagsHasBeenSet = true;
231 m_emailTags.emplace_back(std::forward<EmailTagsT>(value));
232 return *this;
233 }
235
237
240 inline const Aws::String& GetConfigurationSetName() const { return m_configurationSetName; }
241 inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
242 template <typename ConfigurationSetNameT = Aws::String>
243 void SetConfigurationSetName(ConfigurationSetNameT&& value) {
244 m_configurationSetNameHasBeenSet = true;
245 m_configurationSetName = std::forward<ConfigurationSetNameT>(value);
246 }
247 template <typename ConfigurationSetNameT = Aws::String>
248 SendEmailRequest& WithConfigurationSetName(ConfigurationSetNameT&& value) {
249 SetConfigurationSetName(std::forward<ConfigurationSetNameT>(value));
250 return *this;
251 }
253
255
258 inline const Aws::String& GetEndpointId() const { return m_endpointId; }
259 inline bool EndpointIdHasBeenSet() const { return m_endpointIdHasBeenSet; }
260 template <typename EndpointIdT = Aws::String>
261 void SetEndpointId(EndpointIdT&& value) {
262 m_endpointIdHasBeenSet = true;
263 m_endpointId = std::forward<EndpointIdT>(value);
264 }
265 template <typename EndpointIdT = Aws::String>
266 SendEmailRequest& WithEndpointId(EndpointIdT&& value) {
267 SetEndpointId(std::forward<EndpointIdT>(value));
268 return *this;
269 }
271
273
279 inline const Aws::String& GetTenantName() const { return m_tenantName; }
280 inline bool TenantNameHasBeenSet() const { return m_tenantNameHasBeenSet; }
281 template <typename TenantNameT = Aws::String>
282 void SetTenantName(TenantNameT&& value) {
283 m_tenantNameHasBeenSet = true;
284 m_tenantName = std::forward<TenantNameT>(value);
285 }
286 template <typename TenantNameT = Aws::String>
287 SendEmailRequest& WithTenantName(TenantNameT&& value) {
288 SetTenantName(std::forward<TenantNameT>(value));
289 return *this;
290 }
292
294
298 inline const ListManagementOptions& GetListManagementOptions() const { return m_listManagementOptions; }
299 inline bool ListManagementOptionsHasBeenSet() const { return m_listManagementOptionsHasBeenSet; }
300 template <typename ListManagementOptionsT = ListManagementOptions>
301 void SetListManagementOptions(ListManagementOptionsT&& value) {
302 m_listManagementOptionsHasBeenSet = true;
303 m_listManagementOptions = std::forward<ListManagementOptionsT>(value);
304 }
305 template <typename ListManagementOptionsT = ListManagementOptions>
306 SendEmailRequest& WithListManagementOptions(ListManagementOptionsT&& value) {
307 SetListManagementOptions(std::forward<ListManagementOptionsT>(value));
308 return *this;
309 }
311
313
318 inline const ConfigurationOverrides& GetConfigurationOverrides() const { return m_configurationOverrides; }
319 inline bool ConfigurationOverridesHasBeenSet() const { return m_configurationOverridesHasBeenSet; }
320 template <typename ConfigurationOverridesT = ConfigurationOverrides>
321 void SetConfigurationOverrides(ConfigurationOverridesT&& value) {
322 m_configurationOverridesHasBeenSet = true;
323 m_configurationOverrides = std::forward<ConfigurationOverridesT>(value);
324 }
325 template <typename ConfigurationOverridesT = ConfigurationOverrides>
326 SendEmailRequest& WithConfigurationOverrides(ConfigurationOverridesT&& value) {
327 SetConfigurationOverrides(std::forward<ConfigurationOverridesT>(value));
328 return *this;
329 }
331 private:
332 Aws::String m_fromEmailAddress;
333
334 Aws::String m_fromEmailAddressIdentityArn;
335
336 Destination m_destination;
337
338 Aws::Vector<Aws::String> m_replyToAddresses;
339
340 Aws::String m_feedbackForwardingEmailAddress;
341
342 Aws::String m_feedbackForwardingEmailAddressIdentityArn;
343
344 EmailContent m_content;
345
346 Aws::Vector<MessageTag> m_emailTags;
347
348 Aws::String m_configurationSetName;
349
350 Aws::String m_endpointId;
351
352 Aws::String m_tenantName;
353
354 ListManagementOptions m_listManagementOptions;
355
356 ConfigurationOverrides m_configurationOverrides;
357 bool m_fromEmailAddressHasBeenSet = false;
358 bool m_fromEmailAddressIdentityArnHasBeenSet = false;
359 bool m_destinationHasBeenSet = false;
360 bool m_replyToAddressesHasBeenSet = false;
361 bool m_feedbackForwardingEmailAddressHasBeenSet = false;
362 bool m_feedbackForwardingEmailAddressIdentityArnHasBeenSet = false;
363 bool m_contentHasBeenSet = false;
364 bool m_emailTagsHasBeenSet = false;
365 bool m_configurationSetNameHasBeenSet = false;
366 bool m_endpointIdHasBeenSet = false;
367 bool m_tenantNameHasBeenSet = false;
368 bool m_listManagementOptionsHasBeenSet = false;
369 bool m_configurationOverridesHasBeenSet = false;
370};
371
372} // namespace Model
373} // namespace SESV2
374} // namespace Aws
SendEmailRequest & WithEmailTags(EmailTagsT &&value)
SendEmailRequest & WithFeedbackForwardingEmailAddress(FeedbackForwardingEmailAddressT &&value)
const Aws::String & GetFeedbackForwardingEmailAddress() const
void SetListManagementOptions(ListManagementOptionsT &&value)
const ConfigurationOverrides & GetConfigurationOverrides() const
SendEmailRequest & WithFromEmailAddress(FromEmailAddressT &&value)
SendEmailRequest & WithFeedbackForwardingEmailAddressIdentityArn(FeedbackForwardingEmailAddressIdentityArnT &&value)
const Aws::String & GetFromEmailAddress() const
const EmailContent & GetContent() const
virtual const char * GetServiceRequestName() const override
const Aws::String & GetFeedbackForwardingEmailAddressIdentityArn() const
void SetFeedbackForwardingEmailAddressIdentityArn(FeedbackForwardingEmailAddressIdentityArnT &&value)
AWS_SESV2_API SendEmailRequest()=default
void SetConfigurationOverrides(ConfigurationOverridesT &&value)
const Aws::Vector< MessageTag > & GetEmailTags() const
AWS_SESV2_API EndpointParameters GetEndpointContextParams() const override
void SetFeedbackForwardingEmailAddress(FeedbackForwardingEmailAddressT &&value)
SendEmailRequest & WithReplyToAddresses(ReplyToAddressesT &&value)
const Aws::String & GetEndpointId() const
bool FeedbackForwardingEmailAddressIdentityArnHasBeenSet() const
void SetConfigurationSetName(ConfigurationSetNameT &&value)
const Aws::Vector< Aws::String > & GetReplyToAddresses() const
void SetFromEmailAddress(FromEmailAddressT &&value)
SendEmailRequest & AddReplyToAddresses(ReplyToAddressesT &&value)
void SetReplyToAddresses(ReplyToAddressesT &&value)
void SetEmailTags(EmailTagsT &&value)
void SetFromEmailAddressIdentityArn(FromEmailAddressIdentityArnT &&value)
AWS_SESV2_API Aws::String SerializePayload() const override
const Aws::String & GetTenantName() const
SendEmailRequest & WithEndpointId(EndpointIdT &&value)
const Destination & GetDestination() const
SendEmailRequest & WithDestination(DestinationT &&value)
void SetTenantName(TenantNameT &&value)
SendEmailRequest & WithContent(ContentT &&value)
void SetEndpointId(EndpointIdT &&value)
void SetDestination(DestinationT &&value)
SendEmailRequest & WithFromEmailAddressIdentityArn(FromEmailAddressIdentityArnT &&value)
SendEmailRequest & AddEmailTags(EmailTagsT &&value)
const ListManagementOptions & GetListManagementOptions() const
SendEmailRequest & WithListManagementOptions(ListManagementOptionsT &&value)
SendEmailRequest & WithConfigurationOverrides(ConfigurationOverridesT &&value)
SendEmailRequest & WithTenantName(TenantNameT &&value)
const Aws::String & GetFromEmailAddressIdentityArn() const
const Aws::String & GetConfigurationSetName() const
SendEmailRequest & WithConfigurationSetName(ConfigurationSetNameT &&value)
Aws::Endpoint::EndpointParameters EndpointParameters
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector