AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
SendTemplatedEmailRequest.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/Destination.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 SendTemplatedEmailRequest() = 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 "SendTemplatedEmail"; }
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
88 inline const Destination& GetDestination() const { return m_destination; }
89 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
90 template <typename DestinationT = Destination>
91 void SetDestination(DestinationT&& value) {
92 m_destinationHasBeenSet = true;
93 m_destination = std::forward<DestinationT>(value);
94 }
95 template <typename DestinationT = Destination>
97 SetDestination(std::forward<DestinationT>(value));
98 return *this;
99 }
101
103
107 inline const Aws::Vector<Aws::String>& GetReplyToAddresses() const { return m_replyToAddresses; }
108 inline bool ReplyToAddressesHasBeenSet() const { return m_replyToAddressesHasBeenSet; }
109 template <typename ReplyToAddressesT = Aws::Vector<Aws::String>>
110 void SetReplyToAddresses(ReplyToAddressesT&& value) {
111 m_replyToAddressesHasBeenSet = true;
112 m_replyToAddresses = std::forward<ReplyToAddressesT>(value);
113 }
114 template <typename ReplyToAddressesT = Aws::Vector<Aws::String>>
116 SetReplyToAddresses(std::forward<ReplyToAddressesT>(value));
117 return *this;
118 }
119 template <typename ReplyToAddressesT = Aws::String>
120 SendTemplatedEmailRequest& AddReplyToAddresses(ReplyToAddressesT&& value) {
121 m_replyToAddressesHasBeenSet = true;
122 m_replyToAddresses.emplace_back(std::forward<ReplyToAddressesT>(value));
123 return *this;
124 }
126
128
137 inline const Aws::String& GetReturnPath() const { return m_returnPath; }
138 inline bool ReturnPathHasBeenSet() const { return m_returnPathHasBeenSet; }
139 template <typename ReturnPathT = Aws::String>
140 void SetReturnPath(ReturnPathT&& value) {
141 m_returnPathHasBeenSet = true;
142 m_returnPath = std::forward<ReturnPathT>(value);
143 }
144 template <typename ReturnPathT = Aws::String>
146 SetReturnPath(std::forward<ReturnPathT>(value));
147 return *this;
148 }
150
152
166 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
167 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
168 template <typename SourceArnT = Aws::String>
169 void SetSourceArn(SourceArnT&& value) {
170 m_sourceArnHasBeenSet = true;
171 m_sourceArn = std::forward<SourceArnT>(value);
172 }
173 template <typename SourceArnT = Aws::String>
175 SetSourceArn(std::forward<SourceArnT>(value));
176 return *this;
177 }
179
181
196 inline const Aws::String& GetReturnPathArn() const { return m_returnPathArn; }
197 inline bool ReturnPathArnHasBeenSet() const { return m_returnPathArnHasBeenSet; }
198 template <typename ReturnPathArnT = Aws::String>
199 void SetReturnPathArn(ReturnPathArnT&& value) {
200 m_returnPathArnHasBeenSet = true;
201 m_returnPathArn = std::forward<ReturnPathArnT>(value);
202 }
203 template <typename ReturnPathArnT = Aws::String>
205 SetReturnPathArn(std::forward<ReturnPathArnT>(value));
206 return *this;
207 }
209
211
217 inline const Aws::Vector<MessageTag>& GetTags() const { return m_tags; }
218 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
219 template <typename TagsT = Aws::Vector<MessageTag>>
220 void SetTags(TagsT&& value) {
221 m_tagsHasBeenSet = true;
222 m_tags = std::forward<TagsT>(value);
223 }
224 template <typename TagsT = Aws::Vector<MessageTag>>
226 SetTags(std::forward<TagsT>(value));
227 return *this;
228 }
229 template <typename TagsT = MessageTag>
231 m_tagsHasBeenSet = true;
232 m_tags.emplace_back(std::forward<TagsT>(value));
233 return *this;
234 }
236
238
242 inline const Aws::String& GetConfigurationSetName() const { return m_configurationSetName; }
243 inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
244 template <typename ConfigurationSetNameT = Aws::String>
245 void SetConfigurationSetName(ConfigurationSetNameT&& value) {
246 m_configurationSetNameHasBeenSet = true;
247 m_configurationSetName = std::forward<ConfigurationSetNameT>(value);
248 }
249 template <typename ConfigurationSetNameT = Aws::String>
250 SendTemplatedEmailRequest& WithConfigurationSetName(ConfigurationSetNameT&& value) {
251 SetConfigurationSetName(std::forward<ConfigurationSetNameT>(value));
252 return *this;
253 }
255
257
260 inline const Aws::String& GetTemplate() const { return m_template; }
261 inline bool TemplateHasBeenSet() const { return m_templateHasBeenSet; }
262 template <typename TemplateT = Aws::String>
263 void SetTemplate(TemplateT&& value) {
264 m_templateHasBeenSet = true;
265 m_template = std::forward<TemplateT>(value);
266 }
267 template <typename TemplateT = Aws::String>
269 SetTemplate(std::forward<TemplateT>(value));
270 return *this;
271 }
273
275
278 inline const Aws::String& GetTemplateArn() const { return m_templateArn; }
279 inline bool TemplateArnHasBeenSet() const { return m_templateArnHasBeenSet; }
280 template <typename TemplateArnT = Aws::String>
281 void SetTemplateArn(TemplateArnT&& value) {
282 m_templateArnHasBeenSet = true;
283 m_templateArn = std::forward<TemplateArnT>(value);
284 }
285 template <typename TemplateArnT = Aws::String>
287 SetTemplateArn(std::forward<TemplateArnT>(value));
288 return *this;
289 }
291
293
298 inline const Aws::String& GetTemplateData() const { return m_templateData; }
299 inline bool TemplateDataHasBeenSet() const { return m_templateDataHasBeenSet; }
300 template <typename TemplateDataT = Aws::String>
301 void SetTemplateData(TemplateDataT&& value) {
302 m_templateDataHasBeenSet = true;
303 m_templateData = std::forward<TemplateDataT>(value);
304 }
305 template <typename TemplateDataT = Aws::String>
307 SetTemplateData(std::forward<TemplateDataT>(value));
308 return *this;
309 }
311 private:
312 Aws::String m_source;
313
314 Destination m_destination;
315
316 Aws::Vector<Aws::String> m_replyToAddresses;
317
318 Aws::String m_returnPath;
319
320 Aws::String m_sourceArn;
321
322 Aws::String m_returnPathArn;
323
325
326 Aws::String m_configurationSetName;
327
328 Aws::String m_template;
329
330 Aws::String m_templateArn;
331
332 Aws::String m_templateData;
333 bool m_sourceHasBeenSet = false;
334 bool m_destinationHasBeenSet = false;
335 bool m_replyToAddressesHasBeenSet = false;
336 bool m_returnPathHasBeenSet = false;
337 bool m_sourceArnHasBeenSet = false;
338 bool m_returnPathArnHasBeenSet = false;
339 bool m_tagsHasBeenSet = false;
340 bool m_configurationSetNameHasBeenSet = false;
341 bool m_templateHasBeenSet = false;
342 bool m_templateArnHasBeenSet = false;
343 bool m_templateDataHasBeenSet = false;
344};
345
346} // namespace Model
347} // namespace SES
348} // namespace Aws
virtual const char * GetServiceRequestName() const override
const Aws::Vector< MessageTag > & GetTags() const
SendTemplatedEmailRequest & AddTags(TagsT &&value)
AWS_SES_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_SES_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetReplyToAddresses() const
SendTemplatedEmailRequest & WithReplyToAddresses(ReplyToAddressesT &&value)
SendTemplatedEmailRequest & WithTemplate(TemplateT &&value)
SendTemplatedEmailRequest & WithSource(SourceT &&value)
void SetConfigurationSetName(ConfigurationSetNameT &&value)
SendTemplatedEmailRequest & WithReturnPathArn(ReturnPathArnT &&value)
SendTemplatedEmailRequest & WithTags(TagsT &&value)
SendTemplatedEmailRequest & WithConfigurationSetName(ConfigurationSetNameT &&value)
SendTemplatedEmailRequest & WithDestination(DestinationT &&value)
SendTemplatedEmailRequest & WithReturnPath(ReturnPathT &&value)
SendTemplatedEmailRequest & WithTemplateArn(TemplateArnT &&value)
SendTemplatedEmailRequest & AddReplyToAddresses(ReplyToAddressesT &&value)
AWS_SES_API SendTemplatedEmailRequest()=default
SendTemplatedEmailRequest & WithTemplateData(TemplateDataT &&value)
SendTemplatedEmailRequest & WithSourceArn(SourceArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector