AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
SendBulkTemplatedEmailRequest.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/email/SESRequest.h>
10#include <aws/email/SES_EXPORTS.h>
11#include <aws/email/model/BulkEmailDestination.h>
12#include <aws/email/model/MessageTag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SES {
18namespace Model {
19
29 public:
30 AWS_SES_API SendBulkTemplatedEmailRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "SendBulkTemplatedEmail"; }
37
38 AWS_SES_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_SES_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
42
43 public:
45
69 inline const Aws::String& GetSource() const { return m_source; }
70 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
71 template <typename SourceT = Aws::String>
72 void SetSource(SourceT&& value) {
73 m_sourceHasBeenSet = true;
74 m_source = std::forward<SourceT>(value);
75 }
76 template <typename SourceT = Aws::String>
78 SetSource(std::forward<SourceT>(value));
79 return *this;
80 }
82
84
98 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
99 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
100 template <typename SourceArnT = Aws::String>
101 void SetSourceArn(SourceArnT&& value) {
102 m_sourceArnHasBeenSet = true;
103 m_sourceArn = std::forward<SourceArnT>(value);
104 }
105 template <typename SourceArnT = Aws::String>
107 SetSourceArn(std::forward<SourceArnT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::Vector<Aws::String>& GetReplyToAddresses() const { return m_replyToAddresses; }
118 inline bool ReplyToAddressesHasBeenSet() const { return m_replyToAddressesHasBeenSet; }
119 template <typename ReplyToAddressesT = Aws::Vector<Aws::String>>
120 void SetReplyToAddresses(ReplyToAddressesT&& value) {
121 m_replyToAddressesHasBeenSet = true;
122 m_replyToAddresses = std::forward<ReplyToAddressesT>(value);
123 }
124 template <typename ReplyToAddressesT = Aws::Vector<Aws::String>>
126 SetReplyToAddresses(std::forward<ReplyToAddressesT>(value));
127 return *this;
128 }
129 template <typename ReplyToAddressesT = Aws::String>
131 m_replyToAddressesHasBeenSet = true;
132 m_replyToAddresses.emplace_back(std::forward<ReplyToAddressesT>(value));
133 return *this;
134 }
136
138
147 inline const Aws::String& GetReturnPath() const { return m_returnPath; }
148 inline bool ReturnPathHasBeenSet() const { return m_returnPathHasBeenSet; }
149 template <typename ReturnPathT = Aws::String>
150 void SetReturnPath(ReturnPathT&& value) {
151 m_returnPathHasBeenSet = true;
152 m_returnPath = std::forward<ReturnPathT>(value);
153 }
154 template <typename ReturnPathT = Aws::String>
156 SetReturnPath(std::forward<ReturnPathT>(value));
157 return *this;
158 }
160
162
177 inline const Aws::String& GetReturnPathArn() const { return m_returnPathArn; }
178 inline bool ReturnPathArnHasBeenSet() const { return m_returnPathArnHasBeenSet; }
179 template <typename ReturnPathArnT = Aws::String>
180 void SetReturnPathArn(ReturnPathArnT&& value) {
181 m_returnPathArnHasBeenSet = true;
182 m_returnPathArn = std::forward<ReturnPathArnT>(value);
183 }
184 template <typename ReturnPathArnT = Aws::String>
186 SetReturnPathArn(std::forward<ReturnPathArnT>(value));
187 return *this;
188 }
190
192
196 inline const Aws::String& GetConfigurationSetName() const { return m_configurationSetName; }
197 inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
198 template <typename ConfigurationSetNameT = Aws::String>
199 void SetConfigurationSetName(ConfigurationSetNameT&& value) {
200 m_configurationSetNameHasBeenSet = true;
201 m_configurationSetName = std::forward<ConfigurationSetNameT>(value);
202 }
203 template <typename ConfigurationSetNameT = Aws::String>
205 SetConfigurationSetName(std::forward<ConfigurationSetNameT>(value));
206 return *this;
207 }
209
211
215 inline const Aws::Vector<MessageTag>& GetDefaultTags() const { return m_defaultTags; }
216 inline bool DefaultTagsHasBeenSet() const { return m_defaultTagsHasBeenSet; }
217 template <typename DefaultTagsT = Aws::Vector<MessageTag>>
218 void SetDefaultTags(DefaultTagsT&& value) {
219 m_defaultTagsHasBeenSet = true;
220 m_defaultTags = std::forward<DefaultTagsT>(value);
221 }
222 template <typename DefaultTagsT = Aws::Vector<MessageTag>>
224 SetDefaultTags(std::forward<DefaultTagsT>(value));
225 return *this;
226 }
227 template <typename DefaultTagsT = MessageTag>
229 m_defaultTagsHasBeenSet = true;
230 m_defaultTags.emplace_back(std::forward<DefaultTagsT>(value));
231 return *this;
232 }
234
236
239 inline const Aws::String& GetTemplate() const { return m_template; }
240 inline bool TemplateHasBeenSet() const { return m_templateHasBeenSet; }
241 template <typename TemplateT = Aws::String>
242 void SetTemplate(TemplateT&& value) {
243 m_templateHasBeenSet = true;
244 m_template = std::forward<TemplateT>(value);
245 }
246 template <typename TemplateT = Aws::String>
248 SetTemplate(std::forward<TemplateT>(value));
249 return *this;
250 }
252
254
257 inline const Aws::String& GetTemplateArn() const { return m_templateArn; }
258 inline bool TemplateArnHasBeenSet() const { return m_templateArnHasBeenSet; }
259 template <typename TemplateArnT = Aws::String>
260 void SetTemplateArn(TemplateArnT&& value) {
261 m_templateArnHasBeenSet = true;
262 m_templateArn = std::forward<TemplateArnT>(value);
263 }
264 template <typename TemplateArnT = Aws::String>
266 SetTemplateArn(std::forward<TemplateArnT>(value));
267 return *this;
268 }
270
272
279 inline const Aws::String& GetDefaultTemplateData() const { return m_defaultTemplateData; }
280 inline bool DefaultTemplateDataHasBeenSet() const { return m_defaultTemplateDataHasBeenSet; }
281 template <typename DefaultTemplateDataT = Aws::String>
282 void SetDefaultTemplateData(DefaultTemplateDataT&& value) {
283 m_defaultTemplateDataHasBeenSet = true;
284 m_defaultTemplateData = std::forward<DefaultTemplateDataT>(value);
285 }
286 template <typename DefaultTemplateDataT = Aws::String>
288 SetDefaultTemplateData(std::forward<DefaultTemplateDataT>(value));
289 return *this;
290 }
292
294
300 inline const Aws::Vector<BulkEmailDestination>& GetDestinations() const { return m_destinations; }
301 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
302 template <typename DestinationsT = Aws::Vector<BulkEmailDestination>>
303 void SetDestinations(DestinationsT&& value) {
304 m_destinationsHasBeenSet = true;
305 m_destinations = std::forward<DestinationsT>(value);
306 }
307 template <typename DestinationsT = Aws::Vector<BulkEmailDestination>>
309 SetDestinations(std::forward<DestinationsT>(value));
310 return *this;
311 }
312 template <typename DestinationsT = BulkEmailDestination>
314 m_destinationsHasBeenSet = true;
315 m_destinations.emplace_back(std::forward<DestinationsT>(value));
316 return *this;
317 }
319 private:
320 Aws::String m_source;
321
322 Aws::String m_sourceArn;
323
324 Aws::Vector<Aws::String> m_replyToAddresses;
325
326 Aws::String m_returnPath;
327
328 Aws::String m_returnPathArn;
329
330 Aws::String m_configurationSetName;
331
332 Aws::Vector<MessageTag> m_defaultTags;
333
334 Aws::String m_template;
335
336 Aws::String m_templateArn;
337
338 Aws::String m_defaultTemplateData;
339
341 bool m_sourceHasBeenSet = false;
342 bool m_sourceArnHasBeenSet = false;
343 bool m_replyToAddressesHasBeenSet = false;
344 bool m_returnPathHasBeenSet = false;
345 bool m_returnPathArnHasBeenSet = false;
346 bool m_configurationSetNameHasBeenSet = false;
347 bool m_defaultTagsHasBeenSet = false;
348 bool m_templateHasBeenSet = false;
349 bool m_templateArnHasBeenSet = false;
350 bool m_defaultTemplateDataHasBeenSet = false;
351 bool m_destinationsHasBeenSet = false;
352};
353
354} // namespace Model
355} // namespace SES
356} // namespace Aws
SendBulkTemplatedEmailRequest & AddDefaultTags(DefaultTagsT &&value)
SendBulkTemplatedEmailRequest & WithSource(SourceT &&value)
SendBulkTemplatedEmailRequest & WithDefaultTags(DefaultTagsT &&value)
AWS_SES_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_SES_API Aws::String SerializePayload() const override
SendBulkTemplatedEmailRequest & WithReplyToAddresses(ReplyToAddressesT &&value)
const Aws::Vector< Aws::String > & GetReplyToAddresses() const
SendBulkTemplatedEmailRequest & WithDefaultTemplateData(DefaultTemplateDataT &&value)
SendBulkTemplatedEmailRequest & WithConfigurationSetName(ConfigurationSetNameT &&value)
SendBulkTemplatedEmailRequest & AddDestinations(DestinationsT &&value)
SendBulkTemplatedEmailRequest & WithTemplate(TemplateT &&value)
SendBulkTemplatedEmailRequest & WithTemplateArn(TemplateArnT &&value)
virtual const char * GetServiceRequestName() const override
SendBulkTemplatedEmailRequest & WithReturnPathArn(ReturnPathArnT &&value)
SendBulkTemplatedEmailRequest & AddReplyToAddresses(ReplyToAddressesT &&value)
const Aws::Vector< BulkEmailDestination > & GetDestinations() const
const Aws::Vector< MessageTag > & GetDefaultTags() const
SendBulkTemplatedEmailRequest & WithReturnPath(ReturnPathT &&value)
SendBulkTemplatedEmailRequest & WithDestinations(DestinationsT &&value)
SendBulkTemplatedEmailRequest & WithSourceArn(SourceArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector