AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
33 AWS_SES_API SendTemplatedEmailRequest() = default;
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 template<typename SourceT = Aws::String>
76 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
77 template<typename SourceT = Aws::String>
78 SendTemplatedEmailRequest& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
80
82
86 inline const Destination& GetDestination() const { return m_destination; }
87 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
88 template<typename DestinationT = Destination>
89 void SetDestination(DestinationT&& value) { m_destinationHasBeenSet = true; m_destination = std::forward<DestinationT>(value); }
90 template<typename DestinationT = Destination>
91 SendTemplatedEmailRequest& WithDestination(DestinationT&& value) { SetDestination(std::forward<DestinationT>(value)); return *this;}
93
95
99 inline const Aws::Vector<Aws::String>& GetReplyToAddresses() const { return m_replyToAddresses; }
100 inline bool ReplyToAddressesHasBeenSet() const { return m_replyToAddressesHasBeenSet; }
101 template<typename ReplyToAddressesT = Aws::Vector<Aws::String>>
102 void SetReplyToAddresses(ReplyToAddressesT&& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses = std::forward<ReplyToAddressesT>(value); }
103 template<typename ReplyToAddressesT = Aws::Vector<Aws::String>>
104 SendTemplatedEmailRequest& WithReplyToAddresses(ReplyToAddressesT&& value) { SetReplyToAddresses(std::forward<ReplyToAddressesT>(value)); return *this;}
105 template<typename ReplyToAddressesT = Aws::String>
106 SendTemplatedEmailRequest& AddReplyToAddresses(ReplyToAddressesT&& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.emplace_back(std::forward<ReplyToAddressesT>(value)); return *this; }
108
110
119 inline const Aws::String& GetReturnPath() const { return m_returnPath; }
120 inline bool ReturnPathHasBeenSet() const { return m_returnPathHasBeenSet; }
121 template<typename ReturnPathT = Aws::String>
122 void SetReturnPath(ReturnPathT&& value) { m_returnPathHasBeenSet = true; m_returnPath = std::forward<ReturnPathT>(value); }
123 template<typename ReturnPathT = Aws::String>
124 SendTemplatedEmailRequest& WithReturnPath(ReturnPathT&& value) { SetReturnPath(std::forward<ReturnPathT>(value)); return *this;}
126
128
142 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
143 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
144 template<typename SourceArnT = Aws::String>
145 void SetSourceArn(SourceArnT&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::forward<SourceArnT>(value); }
146 template<typename SourceArnT = Aws::String>
147 SendTemplatedEmailRequest& WithSourceArn(SourceArnT&& value) { SetSourceArn(std::forward<SourceArnT>(value)); return *this;}
149
151
166 inline const Aws::String& GetReturnPathArn() const { return m_returnPathArn; }
167 inline bool ReturnPathArnHasBeenSet() const { return m_returnPathArnHasBeenSet; }
168 template<typename ReturnPathArnT = Aws::String>
169 void SetReturnPathArn(ReturnPathArnT&& value) { m_returnPathArnHasBeenSet = true; m_returnPathArn = std::forward<ReturnPathArnT>(value); }
170 template<typename ReturnPathArnT = Aws::String>
171 SendTemplatedEmailRequest& WithReturnPathArn(ReturnPathArnT&& value) { SetReturnPathArn(std::forward<ReturnPathArnT>(value)); return *this;}
173
175
181 inline const Aws::Vector<MessageTag>& GetTags() const { return m_tags; }
182 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
183 template<typename TagsT = Aws::Vector<MessageTag>>
184 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
185 template<typename TagsT = Aws::Vector<MessageTag>>
186 SendTemplatedEmailRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
187 template<typename TagsT = MessageTag>
188 SendTemplatedEmailRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
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) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::forward<ConfigurationSetNameT>(value); }
200 template<typename ConfigurationSetNameT = Aws::String>
201 SendTemplatedEmailRequest& WithConfigurationSetName(ConfigurationSetNameT&& value) { SetConfigurationSetName(std::forward<ConfigurationSetNameT>(value)); return *this;}
203
205
208 inline const Aws::String& GetTemplate() const { return m_template; }
209 inline bool TemplateHasBeenSet() const { return m_templateHasBeenSet; }
210 template<typename TemplateT = Aws::String>
211 void SetTemplate(TemplateT&& value) { m_templateHasBeenSet = true; m_template = std::forward<TemplateT>(value); }
212 template<typename TemplateT = Aws::String>
213 SendTemplatedEmailRequest& WithTemplate(TemplateT&& value) { SetTemplate(std::forward<TemplateT>(value)); return *this;}
215
217
220 inline const Aws::String& GetTemplateArn() const { return m_templateArn; }
221 inline bool TemplateArnHasBeenSet() const { return m_templateArnHasBeenSet; }
222 template<typename TemplateArnT = Aws::String>
223 void SetTemplateArn(TemplateArnT&& value) { m_templateArnHasBeenSet = true; m_templateArn = std::forward<TemplateArnT>(value); }
224 template<typename TemplateArnT = Aws::String>
225 SendTemplatedEmailRequest& WithTemplateArn(TemplateArnT&& value) { SetTemplateArn(std::forward<TemplateArnT>(value)); return *this;}
227
229
234 inline const Aws::String& GetTemplateData() const { return m_templateData; }
235 inline bool TemplateDataHasBeenSet() const { return m_templateDataHasBeenSet; }
236 template<typename TemplateDataT = Aws::String>
237 void SetTemplateData(TemplateDataT&& value) { m_templateDataHasBeenSet = true; m_templateData = std::forward<TemplateDataT>(value); }
238 template<typename TemplateDataT = Aws::String>
239 SendTemplatedEmailRequest& WithTemplateData(TemplateDataT&& value) { SetTemplateData(std::forward<TemplateDataT>(value)); return *this;}
241 private:
242
243 Aws::String m_source;
244 bool m_sourceHasBeenSet = false;
245
246 Destination m_destination;
247 bool m_destinationHasBeenSet = false;
248
249 Aws::Vector<Aws::String> m_replyToAddresses;
250 bool m_replyToAddressesHasBeenSet = false;
251
252 Aws::String m_returnPath;
253 bool m_returnPathHasBeenSet = false;
254
255 Aws::String m_sourceArn;
256 bool m_sourceArnHasBeenSet = false;
257
258 Aws::String m_returnPathArn;
259 bool m_returnPathArnHasBeenSet = false;
260
262 bool m_tagsHasBeenSet = false;
263
264 Aws::String m_configurationSetName;
265 bool m_configurationSetNameHasBeenSet = false;
266
267 Aws::String m_template;
268 bool m_templateHasBeenSet = false;
269
270 Aws::String m_templateArn;
271 bool m_templateArnHasBeenSet = false;
272
273 Aws::String m_templateData;
274 bool m_templateDataHasBeenSet = false;
275 };
276
277} // namespace Model
278} // namespace SES
279} // 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