AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SendBulkTemplatedEmailRequest.h
1
6#pragma once
7#include <aws/email/SES_EXPORTS.h>
8#include <aws/email/SESRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/email/model/MessageTag.h>
12#include <aws/email/model/BulkEmailDestination.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SES
18{
19namespace Model
20{
21
31 {
32 public:
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 "SendBulkTemplatedEmail"; }
40
41 AWS_SES_API Aws::String SerializePayload() const override;
42
43 protected:
44 AWS_SES_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
45
46 public:
47
49
73 inline const Aws::String& GetSource() const{ return m_source; }
74 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
75 inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
76 inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
77 inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
78 inline SendBulkTemplatedEmailRequest& WithSource(const Aws::String& value) { SetSource(value); return *this;}
79 inline SendBulkTemplatedEmailRequest& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
80 inline SendBulkTemplatedEmailRequest& WithSource(const char* value) { SetSource(value); return *this;}
82
84
98 inline const Aws::String& GetSourceArn() const{ return m_sourceArn; }
99 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
100 inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
101 inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::move(value); }
102 inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); }
103 inline SendBulkTemplatedEmailRequest& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
104 inline SendBulkTemplatedEmailRequest& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;}
105 inline SendBulkTemplatedEmailRequest& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
107
109
113 inline const Aws::Vector<Aws::String>& GetReplyToAddresses() const{ return m_replyToAddresses; }
114 inline bool ReplyToAddressesHasBeenSet() const { return m_replyToAddressesHasBeenSet; }
115 inline void SetReplyToAddresses(const Aws::Vector<Aws::String>& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses = value; }
116 inline void SetReplyToAddresses(Aws::Vector<Aws::String>&& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses = std::move(value); }
119 inline SendBulkTemplatedEmailRequest& AddReplyToAddresses(const Aws::String& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(value); return *this; }
120 inline SendBulkTemplatedEmailRequest& AddReplyToAddresses(Aws::String&& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(std::move(value)); return *this; }
121 inline SendBulkTemplatedEmailRequest& AddReplyToAddresses(const char* value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(value); return *this; }
123
125
134 inline const Aws::String& GetReturnPath() const{ return m_returnPath; }
135 inline bool ReturnPathHasBeenSet() const { return m_returnPathHasBeenSet; }
136 inline void SetReturnPath(const Aws::String& value) { m_returnPathHasBeenSet = true; m_returnPath = value; }
137 inline void SetReturnPath(Aws::String&& value) { m_returnPathHasBeenSet = true; m_returnPath = std::move(value); }
138 inline void SetReturnPath(const char* value) { m_returnPathHasBeenSet = true; m_returnPath.assign(value); }
139 inline SendBulkTemplatedEmailRequest& WithReturnPath(const Aws::String& value) { SetReturnPath(value); return *this;}
140 inline SendBulkTemplatedEmailRequest& WithReturnPath(Aws::String&& value) { SetReturnPath(std::move(value)); return *this;}
141 inline SendBulkTemplatedEmailRequest& WithReturnPath(const char* value) { SetReturnPath(value); return *this;}
143
145
160 inline const Aws::String& GetReturnPathArn() const{ return m_returnPathArn; }
161 inline bool ReturnPathArnHasBeenSet() const { return m_returnPathArnHasBeenSet; }
162 inline void SetReturnPathArn(const Aws::String& value) { m_returnPathArnHasBeenSet = true; m_returnPathArn = value; }
163 inline void SetReturnPathArn(Aws::String&& value) { m_returnPathArnHasBeenSet = true; m_returnPathArn = std::move(value); }
164 inline void SetReturnPathArn(const char* value) { m_returnPathArnHasBeenSet = true; m_returnPathArn.assign(value); }
166 inline SendBulkTemplatedEmailRequest& WithReturnPathArn(Aws::String&& value) { SetReturnPathArn(std::move(value)); return *this;}
167 inline SendBulkTemplatedEmailRequest& WithReturnPathArn(const char* value) { SetReturnPathArn(value); return *this;}
169
171
175 inline const Aws::String& GetConfigurationSetName() const{ return m_configurationSetName; }
176 inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
177 inline void SetConfigurationSetName(const Aws::String& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = value; }
178 inline void SetConfigurationSetName(Aws::String&& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::move(value); }
179 inline void SetConfigurationSetName(const char* value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName.assign(value); }
182 inline SendBulkTemplatedEmailRequest& WithConfigurationSetName(const char* value) { SetConfigurationSetName(value); return *this;}
184
186
190 inline const Aws::Vector<MessageTag>& GetDefaultTags() const{ return m_defaultTags; }
191 inline bool DefaultTagsHasBeenSet() const { return m_defaultTagsHasBeenSet; }
192 inline void SetDefaultTags(const Aws::Vector<MessageTag>& value) { m_defaultTagsHasBeenSet = true; m_defaultTags = value; }
193 inline void SetDefaultTags(Aws::Vector<MessageTag>&& value) { m_defaultTagsHasBeenSet = true; m_defaultTags = std::move(value); }
195 inline SendBulkTemplatedEmailRequest& WithDefaultTags(Aws::Vector<MessageTag>&& value) { SetDefaultTags(std::move(value)); return *this;}
196 inline SendBulkTemplatedEmailRequest& AddDefaultTags(const MessageTag& value) { m_defaultTagsHasBeenSet = true; m_defaultTags.push_back(value); return *this; }
197 inline SendBulkTemplatedEmailRequest& AddDefaultTags(MessageTag&& value) { m_defaultTagsHasBeenSet = true; m_defaultTags.push_back(std::move(value)); return *this; }
199
201
204 inline const Aws::String& GetTemplate() const{ return m_template; }
205 inline bool TemplateHasBeenSet() const { return m_templateHasBeenSet; }
206 inline void SetTemplate(const Aws::String& value) { m_templateHasBeenSet = true; m_template = value; }
207 inline void SetTemplate(Aws::String&& value) { m_templateHasBeenSet = true; m_template = std::move(value); }
208 inline void SetTemplate(const char* value) { m_templateHasBeenSet = true; m_template.assign(value); }
209 inline SendBulkTemplatedEmailRequest& WithTemplate(const Aws::String& value) { SetTemplate(value); return *this;}
210 inline SendBulkTemplatedEmailRequest& WithTemplate(Aws::String&& value) { SetTemplate(std::move(value)); return *this;}
211 inline SendBulkTemplatedEmailRequest& WithTemplate(const char* value) { SetTemplate(value); return *this;}
213
215
218 inline const Aws::String& GetTemplateArn() const{ return m_templateArn; }
219 inline bool TemplateArnHasBeenSet() const { return m_templateArnHasBeenSet; }
220 inline void SetTemplateArn(const Aws::String& value) { m_templateArnHasBeenSet = true; m_templateArn = value; }
221 inline void SetTemplateArn(Aws::String&& value) { m_templateArnHasBeenSet = true; m_templateArn = std::move(value); }
222 inline void SetTemplateArn(const char* value) { m_templateArnHasBeenSet = true; m_templateArn.assign(value); }
223 inline SendBulkTemplatedEmailRequest& WithTemplateArn(const Aws::String& value) { SetTemplateArn(value); return *this;}
224 inline SendBulkTemplatedEmailRequest& WithTemplateArn(Aws::String&& value) { SetTemplateArn(std::move(value)); return *this;}
225 inline SendBulkTemplatedEmailRequest& WithTemplateArn(const char* value) { SetTemplateArn(value); return *this;}
227
229
236 inline const Aws::String& GetDefaultTemplateData() const{ return m_defaultTemplateData; }
237 inline bool DefaultTemplateDataHasBeenSet() const { return m_defaultTemplateDataHasBeenSet; }
238 inline void SetDefaultTemplateData(const Aws::String& value) { m_defaultTemplateDataHasBeenSet = true; m_defaultTemplateData = value; }
239 inline void SetDefaultTemplateData(Aws::String&& value) { m_defaultTemplateDataHasBeenSet = true; m_defaultTemplateData = std::move(value); }
240 inline void SetDefaultTemplateData(const char* value) { m_defaultTemplateDataHasBeenSet = true; m_defaultTemplateData.assign(value); }
243 inline SendBulkTemplatedEmailRequest& WithDefaultTemplateData(const char* value) { SetDefaultTemplateData(value); return *this;}
245
247
253 inline const Aws::Vector<BulkEmailDestination>& GetDestinations() const{ return m_destinations; }
254 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
255 inline void SetDestinations(const Aws::Vector<BulkEmailDestination>& value) { m_destinationsHasBeenSet = true; m_destinations = value; }
256 inline void SetDestinations(Aws::Vector<BulkEmailDestination>&& value) { m_destinationsHasBeenSet = true; m_destinations = std::move(value); }
259 inline SendBulkTemplatedEmailRequest& AddDestinations(const BulkEmailDestination& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
260 inline SendBulkTemplatedEmailRequest& AddDestinations(BulkEmailDestination&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; }
262 private:
263
264 Aws::String m_source;
265 bool m_sourceHasBeenSet = false;
266
267 Aws::String m_sourceArn;
268 bool m_sourceArnHasBeenSet = false;
269
270 Aws::Vector<Aws::String> m_replyToAddresses;
271 bool m_replyToAddressesHasBeenSet = false;
272
273 Aws::String m_returnPath;
274 bool m_returnPathHasBeenSet = false;
275
276 Aws::String m_returnPathArn;
277 bool m_returnPathArnHasBeenSet = false;
278
279 Aws::String m_configurationSetName;
280 bool m_configurationSetNameHasBeenSet = false;
281
282 Aws::Vector<MessageTag> m_defaultTags;
283 bool m_defaultTagsHasBeenSet = false;
284
285 Aws::String m_template;
286 bool m_templateHasBeenSet = false;
287
288 Aws::String m_templateArn;
289 bool m_templateArnHasBeenSet = false;
290
291 Aws::String m_defaultTemplateData;
292 bool m_defaultTemplateDataHasBeenSet = false;
293
295 bool m_destinationsHasBeenSet = false;
296 };
297
298} // namespace Model
299} // namespace SES
300} // namespace Aws
SendBulkTemplatedEmailRequest & AddReplyToAddresses(const char *value)
SendBulkTemplatedEmailRequest & WithTemplateArn(Aws::String &&value)
SendBulkTemplatedEmailRequest & WithReturnPathArn(Aws::String &&value)
SendBulkTemplatedEmailRequest & WithReturnPath(const Aws::String &value)
void SetDefaultTags(Aws::Vector< MessageTag > &&value)
SendBulkTemplatedEmailRequest & WithSource(Aws::String &&value)
void SetReplyToAddresses(Aws::Vector< Aws::String > &&value)
SendBulkTemplatedEmailRequest & WithDefaultTemplateData(const char *value)
SendBulkTemplatedEmailRequest & WithTemplate(const Aws::String &value)
SendBulkTemplatedEmailRequest & WithTemplate(const char *value)
SendBulkTemplatedEmailRequest & WithConfigurationSetName(Aws::String &&value)
void SetDestinations(Aws::Vector< BulkEmailDestination > &&value)
AWS_SES_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
SendBulkTemplatedEmailRequest & AddReplyToAddresses(const Aws::String &value)
AWS_SES_API Aws::String SerializePayload() const override
SendBulkTemplatedEmailRequest & WithTemplateArn(const char *value)
SendBulkTemplatedEmailRequest & WithTemplateArn(const Aws::String &value)
void SetDefaultTags(const Aws::Vector< MessageTag > &value)
SendBulkTemplatedEmailRequest & WithSourceArn(const char *value)
const Aws::Vector< Aws::String > & GetReplyToAddresses() const
SendBulkTemplatedEmailRequest & AddDestinations(BulkEmailDestination &&value)
SendBulkTemplatedEmailRequest & WithConfigurationSetName(const Aws::String &value)
SendBulkTemplatedEmailRequest & WithDefaultTemplateData(Aws::String &&value)
SendBulkTemplatedEmailRequest & WithDestinations(const Aws::Vector< BulkEmailDestination > &value)
void SetReplyToAddresses(const Aws::Vector< Aws::String > &value)
SendBulkTemplatedEmailRequest & WithConfigurationSetName(const char *value)
SendBulkTemplatedEmailRequest & WithReturnPath(const char *value)
SendBulkTemplatedEmailRequest & WithReplyToAddresses(Aws::Vector< Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
SendBulkTemplatedEmailRequest & AddDefaultTags(const MessageTag &value)
SendBulkTemplatedEmailRequest & WithReturnPath(Aws::String &&value)
SendBulkTemplatedEmailRequest & WithSourceArn(const Aws::String &value)
SendBulkTemplatedEmailRequest & WithReplyToAddresses(const Aws::Vector< Aws::String > &value)
SendBulkTemplatedEmailRequest & AddReplyToAddresses(Aws::String &&value)
SendBulkTemplatedEmailRequest & WithDefaultTags(Aws::Vector< MessageTag > &&value)
SendBulkTemplatedEmailRequest & WithTemplate(Aws::String &&value)
SendBulkTemplatedEmailRequest & WithReturnPathArn(const Aws::String &value)
SendBulkTemplatedEmailRequest & AddDefaultTags(MessageTag &&value)
const Aws::Vector< BulkEmailDestination > & GetDestinations() const
const Aws::Vector< MessageTag > & GetDefaultTags() const
SendBulkTemplatedEmailRequest & WithReturnPathArn(const char *value)
SendBulkTemplatedEmailRequest & WithDestinations(Aws::Vector< BulkEmailDestination > &&value)
SendBulkTemplatedEmailRequest & AddDestinations(const BulkEmailDestination &value)
SendBulkTemplatedEmailRequest & WithDefaultTags(const Aws::Vector< MessageTag > &value)
SendBulkTemplatedEmailRequest & WithSourceArn(Aws::String &&value)
SendBulkTemplatedEmailRequest & WithSource(const Aws::String &value)
SendBulkTemplatedEmailRequest & WithDefaultTemplateData(const Aws::String &value)
SendBulkTemplatedEmailRequest & WithSource(const char *value)
void SetDestinations(const Aws::Vector< BulkEmailDestination > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector