AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
SendBulkEmailRequest.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/BulkEmailContent.h>
12#include <aws/sesv2/model/BulkEmailEntry.h>
13#include <aws/sesv2/model/ConfigurationOverrides.h>
14#include <aws/sesv2/model/MessageTag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace SESV2 {
20namespace Model {
21
31 public:
32 AWS_SESV2_API SendBulkEmailRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "SendBulkEmail"; }
39
40 AWS_SESV2_API Aws::String SerializePayload() const override;
41
45 AWS_SESV2_API EndpointParameters GetEndpointContextParams() const override;
46
48
52 inline const Aws::String& GetFromEmailAddress() const { return m_fromEmailAddress; }
53 inline bool FromEmailAddressHasBeenSet() const { return m_fromEmailAddressHasBeenSet; }
54 template <typename FromEmailAddressT = Aws::String>
55 void SetFromEmailAddress(FromEmailAddressT&& value) {
56 m_fromEmailAddressHasBeenSet = true;
57 m_fromEmailAddress = std::forward<FromEmailAddressT>(value);
58 }
59 template <typename FromEmailAddressT = Aws::String>
60 SendBulkEmailRequest& WithFromEmailAddress(FromEmailAddressT&& value) {
61 SetFromEmailAddress(std::forward<FromEmailAddressT>(value));
62 return *this;
63 }
65
67
81 inline const Aws::String& GetFromEmailAddressIdentityArn() const { return m_fromEmailAddressIdentityArn; }
82 inline bool FromEmailAddressIdentityArnHasBeenSet() const { return m_fromEmailAddressIdentityArnHasBeenSet; }
83 template <typename FromEmailAddressIdentityArnT = Aws::String>
84 void SetFromEmailAddressIdentityArn(FromEmailAddressIdentityArnT&& value) {
85 m_fromEmailAddressIdentityArnHasBeenSet = true;
86 m_fromEmailAddressIdentityArn = std::forward<FromEmailAddressIdentityArnT>(value);
87 }
88 template <typename FromEmailAddressIdentityArnT = Aws::String>
89 SendBulkEmailRequest& WithFromEmailAddressIdentityArn(FromEmailAddressIdentityArnT&& value) {
90 SetFromEmailAddressIdentityArn(std::forward<FromEmailAddressIdentityArnT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::Vector<Aws::String>& GetReplyToAddresses() const { return m_replyToAddresses; }
101 inline bool ReplyToAddressesHasBeenSet() const { return m_replyToAddressesHasBeenSet; }
102 template <typename ReplyToAddressesT = Aws::Vector<Aws::String>>
103 void SetReplyToAddresses(ReplyToAddressesT&& value) {
104 m_replyToAddressesHasBeenSet = true;
105 m_replyToAddresses = std::forward<ReplyToAddressesT>(value);
106 }
107 template <typename ReplyToAddressesT = Aws::Vector<Aws::String>>
108 SendBulkEmailRequest& WithReplyToAddresses(ReplyToAddressesT&& value) {
109 SetReplyToAddresses(std::forward<ReplyToAddressesT>(value));
110 return *this;
111 }
112 template <typename ReplyToAddressesT = Aws::String>
113 SendBulkEmailRequest& AddReplyToAddresses(ReplyToAddressesT&& value) {
114 m_replyToAddressesHasBeenSet = true;
115 m_replyToAddresses.emplace_back(std::forward<ReplyToAddressesT>(value));
116 return *this;
117 }
119
121
125 inline const Aws::String& GetFeedbackForwardingEmailAddress() const { return m_feedbackForwardingEmailAddress; }
126 inline bool FeedbackForwardingEmailAddressHasBeenSet() const { return m_feedbackForwardingEmailAddressHasBeenSet; }
127 template <typename FeedbackForwardingEmailAddressT = Aws::String>
128 void SetFeedbackForwardingEmailAddress(FeedbackForwardingEmailAddressT&& value) {
129 m_feedbackForwardingEmailAddressHasBeenSet = true;
130 m_feedbackForwardingEmailAddress = std::forward<FeedbackForwardingEmailAddressT>(value);
131 }
132 template <typename FeedbackForwardingEmailAddressT = Aws::String>
133 SendBulkEmailRequest& WithFeedbackForwardingEmailAddress(FeedbackForwardingEmailAddressT&& value) {
134 SetFeedbackForwardingEmailAddress(std::forward<FeedbackForwardingEmailAddressT>(value));
135 return *this;
136 }
138
140
155 inline const Aws::String& GetFeedbackForwardingEmailAddressIdentityArn() const { return m_feedbackForwardingEmailAddressIdentityArn; }
156 inline bool FeedbackForwardingEmailAddressIdentityArnHasBeenSet() const { return m_feedbackForwardingEmailAddressIdentityArnHasBeenSet; }
157 template <typename FeedbackForwardingEmailAddressIdentityArnT = Aws::String>
158 void SetFeedbackForwardingEmailAddressIdentityArn(FeedbackForwardingEmailAddressIdentityArnT&& value) {
159 m_feedbackForwardingEmailAddressIdentityArnHasBeenSet = true;
160 m_feedbackForwardingEmailAddressIdentityArn = std::forward<FeedbackForwardingEmailAddressIdentityArnT>(value);
161 }
162 template <typename FeedbackForwardingEmailAddressIdentityArnT = Aws::String>
163 SendBulkEmailRequest& WithFeedbackForwardingEmailAddressIdentityArn(FeedbackForwardingEmailAddressIdentityArnT&& value) {
164 SetFeedbackForwardingEmailAddressIdentityArn(std::forward<FeedbackForwardingEmailAddressIdentityArnT>(value));
165 return *this;
166 }
168
170
176 inline const Aws::Vector<MessageTag>& GetDefaultEmailTags() const { return m_defaultEmailTags; }
177 inline bool DefaultEmailTagsHasBeenSet() const { return m_defaultEmailTagsHasBeenSet; }
178 template <typename DefaultEmailTagsT = Aws::Vector<MessageTag>>
179 void SetDefaultEmailTags(DefaultEmailTagsT&& value) {
180 m_defaultEmailTagsHasBeenSet = true;
181 m_defaultEmailTags = std::forward<DefaultEmailTagsT>(value);
182 }
183 template <typename DefaultEmailTagsT = Aws::Vector<MessageTag>>
184 SendBulkEmailRequest& WithDefaultEmailTags(DefaultEmailTagsT&& value) {
185 SetDefaultEmailTags(std::forward<DefaultEmailTagsT>(value));
186 return *this;
187 }
188 template <typename DefaultEmailTagsT = MessageTag>
189 SendBulkEmailRequest& AddDefaultEmailTags(DefaultEmailTagsT&& value) {
190 m_defaultEmailTagsHasBeenSet = true;
191 m_defaultEmailTags.emplace_back(std::forward<DefaultEmailTagsT>(value));
192 return *this;
193 }
195
197
201 inline const BulkEmailContent& GetDefaultContent() const { return m_defaultContent; }
202 inline bool DefaultContentHasBeenSet() const { return m_defaultContentHasBeenSet; }
203 template <typename DefaultContentT = BulkEmailContent>
204 void SetDefaultContent(DefaultContentT&& value) {
205 m_defaultContentHasBeenSet = true;
206 m_defaultContent = std::forward<DefaultContentT>(value);
207 }
208 template <typename DefaultContentT = BulkEmailContent>
209 SendBulkEmailRequest& WithDefaultContent(DefaultContentT&& value) {
210 SetDefaultContent(std::forward<DefaultContentT>(value));
211 return *this;
212 }
214
216
219 inline const Aws::Vector<BulkEmailEntry>& GetBulkEmailEntries() const { return m_bulkEmailEntries; }
220 inline bool BulkEmailEntriesHasBeenSet() const { return m_bulkEmailEntriesHasBeenSet; }
221 template <typename BulkEmailEntriesT = Aws::Vector<BulkEmailEntry>>
222 void SetBulkEmailEntries(BulkEmailEntriesT&& value) {
223 m_bulkEmailEntriesHasBeenSet = true;
224 m_bulkEmailEntries = std::forward<BulkEmailEntriesT>(value);
225 }
226 template <typename BulkEmailEntriesT = Aws::Vector<BulkEmailEntry>>
227 SendBulkEmailRequest& WithBulkEmailEntries(BulkEmailEntriesT&& value) {
228 SetBulkEmailEntries(std::forward<BulkEmailEntriesT>(value));
229 return *this;
230 }
231 template <typename BulkEmailEntriesT = BulkEmailEntry>
232 SendBulkEmailRequest& AddBulkEmailEntries(BulkEmailEntriesT&& value) {
233 m_bulkEmailEntriesHasBeenSet = true;
234 m_bulkEmailEntries.emplace_back(std::forward<BulkEmailEntriesT>(value));
235 return *this;
236 }
238
240
243 inline const Aws::String& GetConfigurationSetName() const { return m_configurationSetName; }
244 inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
245 template <typename ConfigurationSetNameT = Aws::String>
246 void SetConfigurationSetName(ConfigurationSetNameT&& value) {
247 m_configurationSetNameHasBeenSet = true;
248 m_configurationSetName = std::forward<ConfigurationSetNameT>(value);
249 }
250 template <typename ConfigurationSetNameT = Aws::String>
251 SendBulkEmailRequest& WithConfigurationSetName(ConfigurationSetNameT&& value) {
252 SetConfigurationSetName(std::forward<ConfigurationSetNameT>(value));
253 return *this;
254 }
256
258
261 inline const Aws::String& GetEndpointId() const { return m_endpointId; }
262 inline bool EndpointIdHasBeenSet() const { return m_endpointIdHasBeenSet; }
263 template <typename EndpointIdT = Aws::String>
264 void SetEndpointId(EndpointIdT&& value) {
265 m_endpointIdHasBeenSet = true;
266 m_endpointId = std::forward<EndpointIdT>(value);
267 }
268 template <typename EndpointIdT = Aws::String>
269 SendBulkEmailRequest& WithEndpointId(EndpointIdT&& value) {
270 SetEndpointId(std::forward<EndpointIdT>(value));
271 return *this;
272 }
274
276
282 inline const Aws::String& GetTenantName() const { return m_tenantName; }
283 inline bool TenantNameHasBeenSet() const { return m_tenantNameHasBeenSet; }
284 template <typename TenantNameT = Aws::String>
285 void SetTenantName(TenantNameT&& value) {
286 m_tenantNameHasBeenSet = true;
287 m_tenantName = std::forward<TenantNameT>(value);
288 }
289 template <typename TenantNameT = Aws::String>
290 SendBulkEmailRequest& WithTenantName(TenantNameT&& value) {
291 SetTenantName(std::forward<TenantNameT>(value));
292 return *this;
293 }
295
297
303 inline const ConfigurationOverrides& GetConfigurationOverrides() const { return m_configurationOverrides; }
304 inline bool ConfigurationOverridesHasBeenSet() const { return m_configurationOverridesHasBeenSet; }
305 template <typename ConfigurationOverridesT = ConfigurationOverrides>
306 void SetConfigurationOverrides(ConfigurationOverridesT&& value) {
307 m_configurationOverridesHasBeenSet = true;
308 m_configurationOverrides = std::forward<ConfigurationOverridesT>(value);
309 }
310 template <typename ConfigurationOverridesT = ConfigurationOverrides>
311 SendBulkEmailRequest& WithConfigurationOverrides(ConfigurationOverridesT&& value) {
312 SetConfigurationOverrides(std::forward<ConfigurationOverridesT>(value));
313 return *this;
314 }
316 private:
317 Aws::String m_fromEmailAddress;
318
319 Aws::String m_fromEmailAddressIdentityArn;
320
321 Aws::Vector<Aws::String> m_replyToAddresses;
322
323 Aws::String m_feedbackForwardingEmailAddress;
324
325 Aws::String m_feedbackForwardingEmailAddressIdentityArn;
326
327 Aws::Vector<MessageTag> m_defaultEmailTags;
328
329 BulkEmailContent m_defaultContent;
330
331 Aws::Vector<BulkEmailEntry> m_bulkEmailEntries;
332
333 Aws::String m_configurationSetName;
334
335 Aws::String m_endpointId;
336
337 Aws::String m_tenantName;
338
339 ConfigurationOverrides m_configurationOverrides;
340 bool m_fromEmailAddressHasBeenSet = false;
341 bool m_fromEmailAddressIdentityArnHasBeenSet = false;
342 bool m_replyToAddressesHasBeenSet = false;
343 bool m_feedbackForwardingEmailAddressHasBeenSet = false;
344 bool m_feedbackForwardingEmailAddressIdentityArnHasBeenSet = false;
345 bool m_defaultEmailTagsHasBeenSet = false;
346 bool m_defaultContentHasBeenSet = false;
347 bool m_bulkEmailEntriesHasBeenSet = false;
348 bool m_configurationSetNameHasBeenSet = false;
349 bool m_endpointIdHasBeenSet = false;
350 bool m_tenantNameHasBeenSet = false;
351 bool m_configurationOverridesHasBeenSet = false;
352};
353
354} // namespace Model
355} // namespace SESV2
356} // namespace Aws
const Aws::String & GetFeedbackForwardingEmailAddress() const
void SetFromEmailAddress(FromEmailAddressT &&value)
void SetBulkEmailEntries(BulkEmailEntriesT &&value)
void SetConfigurationSetName(ConfigurationSetNameT &&value)
const Aws::String & GetFromEmailAddressIdentityArn() const
SendBulkEmailRequest & WithBulkEmailEntries(BulkEmailEntriesT &&value)
SendBulkEmailRequest & WithFromEmailAddressIdentityArn(FromEmailAddressIdentityArnT &&value)
SendBulkEmailRequest & WithFeedbackForwardingEmailAddressIdentityArn(FeedbackForwardingEmailAddressIdentityArnT &&value)
SendBulkEmailRequest & WithFromEmailAddress(FromEmailAddressT &&value)
const Aws::String & GetFeedbackForwardingEmailAddressIdentityArn() const
const Aws::Vector< MessageTag > & GetDefaultEmailTags() const
const ConfigurationOverrides & GetConfigurationOverrides() const
SendBulkEmailRequest & WithReplyToAddresses(ReplyToAddressesT &&value)
void SetDefaultEmailTags(DefaultEmailTagsT &&value)
SendBulkEmailRequest & WithTenantName(TenantNameT &&value)
void SetFeedbackForwardingEmailAddressIdentityArn(FeedbackForwardingEmailAddressIdentityArnT &&value)
SendBulkEmailRequest & WithDefaultEmailTags(DefaultEmailTagsT &&value)
void SetFromEmailAddressIdentityArn(FromEmailAddressIdentityArnT &&value)
const Aws::Vector< Aws::String > & GetReplyToAddresses() const
const Aws::String & GetConfigurationSetName() const
void SetDefaultContent(DefaultContentT &&value)
SendBulkEmailRequest & WithEndpointId(EndpointIdT &&value)
AWS_SESV2_API Aws::String SerializePayload() const override
void SetFeedbackForwardingEmailAddress(FeedbackForwardingEmailAddressT &&value)
const BulkEmailContent & GetDefaultContent() const
AWS_SESV2_API SendBulkEmailRequest()=default
void SetConfigurationOverrides(ConfigurationOverridesT &&value)
virtual const char * GetServiceRequestName() const override
SendBulkEmailRequest & WithFeedbackForwardingEmailAddress(FeedbackForwardingEmailAddressT &&value)
SendBulkEmailRequest & WithDefaultContent(DefaultContentT &&value)
SendBulkEmailRequest & AddReplyToAddresses(ReplyToAddressesT &&value)
AWS_SESV2_API EndpointParameters GetEndpointContextParams() const override
const Aws::String & GetFromEmailAddress() const
const Aws::Vector< BulkEmailEntry > & GetBulkEmailEntries() const
SendBulkEmailRequest & WithConfigurationOverrides(ConfigurationOverridesT &&value)
SendBulkEmailRequest & WithConfigurationSetName(ConfigurationSetNameT &&value)
void SetReplyToAddresses(ReplyToAddressesT &&value)
SendBulkEmailRequest & AddBulkEmailEntries(BulkEmailEntriesT &&value)
SendBulkEmailRequest & AddDefaultEmailTags(DefaultEmailTagsT &&value)
Aws::Endpoint::EndpointParameters EndpointParameters
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector