AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SendTemplatedEmailRequest.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/email/model/Destination.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/email/model/MessageTag.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 "SendTemplatedEmail"; }
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 SendTemplatedEmailRequest& WithSource(const Aws::String& value) { SetSource(value); return *this;}
79 inline SendTemplatedEmailRequest& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
80 inline SendTemplatedEmailRequest& WithSource(const char* value) { SetSource(value); return *this;}
82
84
88 inline const Destination& GetDestination() const{ return m_destination; }
89 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
90 inline void SetDestination(const Destination& value) { m_destinationHasBeenSet = true; m_destination = value; }
91 inline void SetDestination(Destination&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
92 inline SendTemplatedEmailRequest& WithDestination(const Destination& value) { SetDestination(value); return *this;}
93 inline SendTemplatedEmailRequest& WithDestination(Destination&& value) { SetDestination(std::move(value)); return *this;}
95
97
101 inline const Aws::Vector<Aws::String>& GetReplyToAddresses() const{ return m_replyToAddresses; }
102 inline bool ReplyToAddressesHasBeenSet() const { return m_replyToAddressesHasBeenSet; }
103 inline void SetReplyToAddresses(const Aws::Vector<Aws::String>& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses = value; }
104 inline void SetReplyToAddresses(Aws::Vector<Aws::String>&& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses = std::move(value); }
107 inline SendTemplatedEmailRequest& AddReplyToAddresses(const Aws::String& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(value); return *this; }
108 inline SendTemplatedEmailRequest& AddReplyToAddresses(Aws::String&& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(std::move(value)); return *this; }
109 inline SendTemplatedEmailRequest& AddReplyToAddresses(const char* value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(value); return *this; }
111
113
122 inline const Aws::String& GetReturnPath() const{ return m_returnPath; }
123 inline bool ReturnPathHasBeenSet() const { return m_returnPathHasBeenSet; }
124 inline void SetReturnPath(const Aws::String& value) { m_returnPathHasBeenSet = true; m_returnPath = value; }
125 inline void SetReturnPath(Aws::String&& value) { m_returnPathHasBeenSet = true; m_returnPath = std::move(value); }
126 inline void SetReturnPath(const char* value) { m_returnPathHasBeenSet = true; m_returnPath.assign(value); }
127 inline SendTemplatedEmailRequest& WithReturnPath(const Aws::String& value) { SetReturnPath(value); return *this;}
128 inline SendTemplatedEmailRequest& WithReturnPath(Aws::String&& value) { SetReturnPath(std::move(value)); return *this;}
129 inline SendTemplatedEmailRequest& WithReturnPath(const char* value) { SetReturnPath(value); return *this;}
131
133
147 inline const Aws::String& GetSourceArn() const{ return m_sourceArn; }
148 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
149 inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
150 inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::move(value); }
151 inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); }
152 inline SendTemplatedEmailRequest& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
153 inline SendTemplatedEmailRequest& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;}
154 inline SendTemplatedEmailRequest& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
156
158
173 inline const Aws::String& GetReturnPathArn() const{ return m_returnPathArn; }
174 inline bool ReturnPathArnHasBeenSet() const { return m_returnPathArnHasBeenSet; }
175 inline void SetReturnPathArn(const Aws::String& value) { m_returnPathArnHasBeenSet = true; m_returnPathArn = value; }
176 inline void SetReturnPathArn(Aws::String&& value) { m_returnPathArnHasBeenSet = true; m_returnPathArn = std::move(value); }
177 inline void SetReturnPathArn(const char* value) { m_returnPathArnHasBeenSet = true; m_returnPathArn.assign(value); }
178 inline SendTemplatedEmailRequest& WithReturnPathArn(const Aws::String& value) { SetReturnPathArn(value); return *this;}
179 inline SendTemplatedEmailRequest& WithReturnPathArn(Aws::String&& value) { SetReturnPathArn(std::move(value)); return *this;}
180 inline SendTemplatedEmailRequest& WithReturnPathArn(const char* value) { SetReturnPathArn(value); return *this;}
182
184
190 inline const Aws::Vector<MessageTag>& GetTags() const{ return m_tags; }
191 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
192 inline void SetTags(const Aws::Vector<MessageTag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
193 inline void SetTags(Aws::Vector<MessageTag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
194 inline SendTemplatedEmailRequest& WithTags(const Aws::Vector<MessageTag>& value) { SetTags(value); return *this;}
195 inline SendTemplatedEmailRequest& WithTags(Aws::Vector<MessageTag>&& value) { SetTags(std::move(value)); return *this;}
196 inline SendTemplatedEmailRequest& AddTags(const MessageTag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
197 inline SendTemplatedEmailRequest& AddTags(MessageTag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
199
201
205 inline const Aws::String& GetConfigurationSetName() const{ return m_configurationSetName; }
206 inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
207 inline void SetConfigurationSetName(const Aws::String& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = value; }
208 inline void SetConfigurationSetName(Aws::String&& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::move(value); }
209 inline void SetConfigurationSetName(const char* value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName.assign(value); }
212 inline SendTemplatedEmailRequest& WithConfigurationSetName(const char* value) { SetConfigurationSetName(value); return *this;}
214
216
219 inline const Aws::String& GetTemplate() const{ return m_template; }
220 inline bool TemplateHasBeenSet() const { return m_templateHasBeenSet; }
221 inline void SetTemplate(const Aws::String& value) { m_templateHasBeenSet = true; m_template = value; }
222 inline void SetTemplate(Aws::String&& value) { m_templateHasBeenSet = true; m_template = std::move(value); }
223 inline void SetTemplate(const char* value) { m_templateHasBeenSet = true; m_template.assign(value); }
224 inline SendTemplatedEmailRequest& WithTemplate(const Aws::String& value) { SetTemplate(value); return *this;}
225 inline SendTemplatedEmailRequest& WithTemplate(Aws::String&& value) { SetTemplate(std::move(value)); return *this;}
226 inline SendTemplatedEmailRequest& WithTemplate(const char* value) { SetTemplate(value); return *this;}
228
230
233 inline const Aws::String& GetTemplateArn() const{ return m_templateArn; }
234 inline bool TemplateArnHasBeenSet() const { return m_templateArnHasBeenSet; }
235 inline void SetTemplateArn(const Aws::String& value) { m_templateArnHasBeenSet = true; m_templateArn = value; }
236 inline void SetTemplateArn(Aws::String&& value) { m_templateArnHasBeenSet = true; m_templateArn = std::move(value); }
237 inline void SetTemplateArn(const char* value) { m_templateArnHasBeenSet = true; m_templateArn.assign(value); }
238 inline SendTemplatedEmailRequest& WithTemplateArn(const Aws::String& value) { SetTemplateArn(value); return *this;}
239 inline SendTemplatedEmailRequest& WithTemplateArn(Aws::String&& value) { SetTemplateArn(std::move(value)); return *this;}
240 inline SendTemplatedEmailRequest& WithTemplateArn(const char* value) { SetTemplateArn(value); return *this;}
242
244
249 inline const Aws::String& GetTemplateData() const{ return m_templateData; }
250 inline bool TemplateDataHasBeenSet() const { return m_templateDataHasBeenSet; }
251 inline void SetTemplateData(const Aws::String& value) { m_templateDataHasBeenSet = true; m_templateData = value; }
252 inline void SetTemplateData(Aws::String&& value) { m_templateDataHasBeenSet = true; m_templateData = std::move(value); }
253 inline void SetTemplateData(const char* value) { m_templateDataHasBeenSet = true; m_templateData.assign(value); }
254 inline SendTemplatedEmailRequest& WithTemplateData(const Aws::String& value) { SetTemplateData(value); return *this;}
255 inline SendTemplatedEmailRequest& WithTemplateData(Aws::String&& value) { SetTemplateData(std::move(value)); return *this;}
256 inline SendTemplatedEmailRequest& WithTemplateData(const char* value) { SetTemplateData(value); return *this;}
258 private:
259
260 Aws::String m_source;
261 bool m_sourceHasBeenSet = false;
262
263 Destination m_destination;
264 bool m_destinationHasBeenSet = false;
265
266 Aws::Vector<Aws::String> m_replyToAddresses;
267 bool m_replyToAddressesHasBeenSet = false;
268
269 Aws::String m_returnPath;
270 bool m_returnPathHasBeenSet = false;
271
272 Aws::String m_sourceArn;
273 bool m_sourceArnHasBeenSet = false;
274
275 Aws::String m_returnPathArn;
276 bool m_returnPathArnHasBeenSet = false;
277
279 bool m_tagsHasBeenSet = false;
280
281 Aws::String m_configurationSetName;
282 bool m_configurationSetNameHasBeenSet = false;
283
284 Aws::String m_template;
285 bool m_templateHasBeenSet = false;
286
287 Aws::String m_templateArn;
288 bool m_templateArnHasBeenSet = false;
289
290 Aws::String m_templateData;
291 bool m_templateDataHasBeenSet = false;
292 };
293
294} // namespace Model
295} // namespace SES
296} // namespace Aws
void SetReplyToAddresses(Aws::Vector< Aws::String > &&value)
SendTemplatedEmailRequest & WithTemplateData(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< MessageTag > & GetTags() const
SendTemplatedEmailRequest & AddReplyToAddresses(Aws::String &&value)
SendTemplatedEmailRequest & WithReturnPath(Aws::String &&value)
SendTemplatedEmailRequest & WithTemplateData(const char *value)
SendTemplatedEmailRequest & WithReturnPathArn(const Aws::String &value)
AWS_SES_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_SES_API Aws::String SerializePayload() const override
SendTemplatedEmailRequest & WithReplyToAddresses(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetReplyToAddresses() const
SendTemplatedEmailRequest & WithSourceArn(const char *value)
SendTemplatedEmailRequest & WithReplyToAddresses(Aws::Vector< Aws::String > &&value)
SendTemplatedEmailRequest & WithDestination(Destination &&value)
SendTemplatedEmailRequest & WithTemplateArn(const Aws::String &value)
SendTemplatedEmailRequest & AddReplyToAddresses(const char *value)
SendTemplatedEmailRequest & WithTemplate(const char *value)
void SetTags(const Aws::Vector< MessageTag > &value)
SendTemplatedEmailRequest & WithSource(const Aws::String &value)
SendTemplatedEmailRequest & WithTemplateArn(const char *value)
SendTemplatedEmailRequest & WithConfigurationSetName(const char *value)
SendTemplatedEmailRequest & WithTemplate(const Aws::String &value)
SendTemplatedEmailRequest & WithTemplateData(Aws::String &&value)
SendTemplatedEmailRequest & WithSourceArn(const Aws::String &value)
SendTemplatedEmailRequest & WithConfigurationSetName(const Aws::String &value)
void SetTags(Aws::Vector< MessageTag > &&value)
SendTemplatedEmailRequest & AddReplyToAddresses(const Aws::String &value)
SendTemplatedEmailRequest & WithTemplateArn(Aws::String &&value)
SendTemplatedEmailRequest & WithSourceArn(Aws::String &&value)
SendTemplatedEmailRequest & WithDestination(const Destination &value)
SendTemplatedEmailRequest & WithReturnPathArn(Aws::String &&value)
SendTemplatedEmailRequest & WithTags(Aws::Vector< MessageTag > &&value)
SendTemplatedEmailRequest & AddTags(MessageTag &&value)
SendTemplatedEmailRequest & WithSource(Aws::String &&value)
SendTemplatedEmailRequest & WithTemplate(Aws::String &&value)
void SetReplyToAddresses(const Aws::Vector< Aws::String > &value)
SendTemplatedEmailRequest & WithReturnPathArn(const char *value)
SendTemplatedEmailRequest & WithSource(const char *value)
SendTemplatedEmailRequest & AddTags(const MessageTag &value)
SendTemplatedEmailRequest & WithTags(const Aws::Vector< MessageTag > &value)
SendTemplatedEmailRequest & WithReturnPath(const char *value)
SendTemplatedEmailRequest & WithReturnPath(const Aws::String &value)
SendTemplatedEmailRequest & WithConfigurationSetName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector