AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
33 AWS_SES_API SendBulkTemplatedEmailRequest() = 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 "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 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 SendBulkTemplatedEmailRequest& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
80
82
96 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
97 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
98 template<typename SourceArnT = Aws::String>
99 void SetSourceArn(SourceArnT&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::forward<SourceArnT>(value); }
100 template<typename SourceArnT = Aws::String>
101 SendBulkTemplatedEmailRequest& WithSourceArn(SourceArnT&& value) { SetSourceArn(std::forward<SourceArnT>(value)); return *this;}
103
105
109 inline const Aws::Vector<Aws::String>& GetReplyToAddresses() const { return m_replyToAddresses; }
110 inline bool ReplyToAddressesHasBeenSet() const { return m_replyToAddressesHasBeenSet; }
111 template<typename ReplyToAddressesT = Aws::Vector<Aws::String>>
112 void SetReplyToAddresses(ReplyToAddressesT&& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses = std::forward<ReplyToAddressesT>(value); }
113 template<typename ReplyToAddressesT = Aws::Vector<Aws::String>>
114 SendBulkTemplatedEmailRequest& WithReplyToAddresses(ReplyToAddressesT&& value) { SetReplyToAddresses(std::forward<ReplyToAddressesT>(value)); return *this;}
115 template<typename ReplyToAddressesT = Aws::String>
116 SendBulkTemplatedEmailRequest& AddReplyToAddresses(ReplyToAddressesT&& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.emplace_back(std::forward<ReplyToAddressesT>(value)); return *this; }
118
120
129 inline const Aws::String& GetReturnPath() const { return m_returnPath; }
130 inline bool ReturnPathHasBeenSet() const { return m_returnPathHasBeenSet; }
131 template<typename ReturnPathT = Aws::String>
132 void SetReturnPath(ReturnPathT&& value) { m_returnPathHasBeenSet = true; m_returnPath = std::forward<ReturnPathT>(value); }
133 template<typename ReturnPathT = Aws::String>
134 SendBulkTemplatedEmailRequest& WithReturnPath(ReturnPathT&& value) { SetReturnPath(std::forward<ReturnPathT>(value)); return *this;}
136
138
153 inline const Aws::String& GetReturnPathArn() const { return m_returnPathArn; }
154 inline bool ReturnPathArnHasBeenSet() const { return m_returnPathArnHasBeenSet; }
155 template<typename ReturnPathArnT = Aws::String>
156 void SetReturnPathArn(ReturnPathArnT&& value) { m_returnPathArnHasBeenSet = true; m_returnPathArn = std::forward<ReturnPathArnT>(value); }
157 template<typename ReturnPathArnT = Aws::String>
158 SendBulkTemplatedEmailRequest& WithReturnPathArn(ReturnPathArnT&& value) { SetReturnPathArn(std::forward<ReturnPathArnT>(value)); return *this;}
160
162
166 inline const Aws::String& GetConfigurationSetName() const { return m_configurationSetName; }
167 inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
168 template<typename ConfigurationSetNameT = Aws::String>
169 void SetConfigurationSetName(ConfigurationSetNameT&& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::forward<ConfigurationSetNameT>(value); }
170 template<typename ConfigurationSetNameT = Aws::String>
171 SendBulkTemplatedEmailRequest& WithConfigurationSetName(ConfigurationSetNameT&& value) { SetConfigurationSetName(std::forward<ConfigurationSetNameT>(value)); return *this;}
173
175
179 inline const Aws::Vector<MessageTag>& GetDefaultTags() const { return m_defaultTags; }
180 inline bool DefaultTagsHasBeenSet() const { return m_defaultTagsHasBeenSet; }
181 template<typename DefaultTagsT = Aws::Vector<MessageTag>>
182 void SetDefaultTags(DefaultTagsT&& value) { m_defaultTagsHasBeenSet = true; m_defaultTags = std::forward<DefaultTagsT>(value); }
183 template<typename DefaultTagsT = Aws::Vector<MessageTag>>
184 SendBulkTemplatedEmailRequest& WithDefaultTags(DefaultTagsT&& value) { SetDefaultTags(std::forward<DefaultTagsT>(value)); return *this;}
185 template<typename DefaultTagsT = MessageTag>
186 SendBulkTemplatedEmailRequest& AddDefaultTags(DefaultTagsT&& value) { m_defaultTagsHasBeenSet = true; m_defaultTags.emplace_back(std::forward<DefaultTagsT>(value)); return *this; }
188
190
193 inline const Aws::String& GetTemplate() const { return m_template; }
194 inline bool TemplateHasBeenSet() const { return m_templateHasBeenSet; }
195 template<typename TemplateT = Aws::String>
196 void SetTemplate(TemplateT&& value) { m_templateHasBeenSet = true; m_template = std::forward<TemplateT>(value); }
197 template<typename TemplateT = Aws::String>
198 SendBulkTemplatedEmailRequest& WithTemplate(TemplateT&& value) { SetTemplate(std::forward<TemplateT>(value)); return *this;}
200
202
205 inline const Aws::String& GetTemplateArn() const { return m_templateArn; }
206 inline bool TemplateArnHasBeenSet() const { return m_templateArnHasBeenSet; }
207 template<typename TemplateArnT = Aws::String>
208 void SetTemplateArn(TemplateArnT&& value) { m_templateArnHasBeenSet = true; m_templateArn = std::forward<TemplateArnT>(value); }
209 template<typename TemplateArnT = Aws::String>
210 SendBulkTemplatedEmailRequest& WithTemplateArn(TemplateArnT&& value) { SetTemplateArn(std::forward<TemplateArnT>(value)); return *this;}
212
214
221 inline const Aws::String& GetDefaultTemplateData() const { return m_defaultTemplateData; }
222 inline bool DefaultTemplateDataHasBeenSet() const { return m_defaultTemplateDataHasBeenSet; }
223 template<typename DefaultTemplateDataT = Aws::String>
224 void SetDefaultTemplateData(DefaultTemplateDataT&& value) { m_defaultTemplateDataHasBeenSet = true; m_defaultTemplateData = std::forward<DefaultTemplateDataT>(value); }
225 template<typename DefaultTemplateDataT = Aws::String>
226 SendBulkTemplatedEmailRequest& WithDefaultTemplateData(DefaultTemplateDataT&& value) { SetDefaultTemplateData(std::forward<DefaultTemplateDataT>(value)); return *this;}
228
230
236 inline const Aws::Vector<BulkEmailDestination>& GetDestinations() const { return m_destinations; }
237 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
238 template<typename DestinationsT = Aws::Vector<BulkEmailDestination>>
239 void SetDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations = std::forward<DestinationsT>(value); }
240 template<typename DestinationsT = Aws::Vector<BulkEmailDestination>>
241 SendBulkTemplatedEmailRequest& WithDestinations(DestinationsT&& value) { SetDestinations(std::forward<DestinationsT>(value)); return *this;}
242 template<typename DestinationsT = BulkEmailDestination>
243 SendBulkTemplatedEmailRequest& AddDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations.emplace_back(std::forward<DestinationsT>(value)); return *this; }
245 private:
246
247 Aws::String m_source;
248 bool m_sourceHasBeenSet = false;
249
250 Aws::String m_sourceArn;
251 bool m_sourceArnHasBeenSet = false;
252
253 Aws::Vector<Aws::String> m_replyToAddresses;
254 bool m_replyToAddressesHasBeenSet = false;
255
256 Aws::String m_returnPath;
257 bool m_returnPathHasBeenSet = false;
258
259 Aws::String m_returnPathArn;
260 bool m_returnPathArnHasBeenSet = false;
261
262 Aws::String m_configurationSetName;
263 bool m_configurationSetNameHasBeenSet = false;
264
265 Aws::Vector<MessageTag> m_defaultTags;
266 bool m_defaultTagsHasBeenSet = false;
267
268 Aws::String m_template;
269 bool m_templateHasBeenSet = false;
270
271 Aws::String m_templateArn;
272 bool m_templateArnHasBeenSet = false;
273
274 Aws::String m_defaultTemplateData;
275 bool m_defaultTemplateDataHasBeenSet = false;
276
278 bool m_destinationsHasBeenSet = false;
279 };
280
281} // namespace Model
282} // namespace SES
283} // 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