AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
SendRawEmailRequest.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/MessageTag.h>
12#include <aws/email/model/RawMessage.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SES {
18namespace Model {
19
29 public:
30 AWS_SES_API SendRawEmailRequest() = 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 "SendRawEmail"; }
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
66 inline const Aws::String& GetSource() const { return m_source; }
67 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
68 template <typename SourceT = Aws::String>
69 void SetSource(SourceT&& value) {
70 m_sourceHasBeenSet = true;
71 m_source = std::forward<SourceT>(value);
72 }
73 template <typename SourceT = Aws::String>
74 SendRawEmailRequest& WithSource(SourceT&& value) {
75 SetSource(std::forward<SourceT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::Vector<Aws::String>& GetDestinations() const { return m_destinations; }
86 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
87 template <typename DestinationsT = Aws::Vector<Aws::String>>
88 void SetDestinations(DestinationsT&& value) {
89 m_destinationsHasBeenSet = true;
90 m_destinations = std::forward<DestinationsT>(value);
91 }
92 template <typename DestinationsT = Aws::Vector<Aws::String>>
93 SendRawEmailRequest& WithDestinations(DestinationsT&& value) {
94 SetDestinations(std::forward<DestinationsT>(value));
95 return *this;
96 }
97 template <typename DestinationsT = Aws::String>
98 SendRawEmailRequest& AddDestinations(DestinationsT&& value) {
99 m_destinationsHasBeenSet = true;
100 m_destinations.emplace_back(std::forward<DestinationsT>(value));
101 return *this;
102 }
104
106
126 inline const RawMessage& GetRawMessage() const { return m_rawMessage; }
127 inline bool RawMessageHasBeenSet() const { return m_rawMessageHasBeenSet; }
128 template <typename RawMessageT = RawMessage>
129 void SetRawMessage(RawMessageT&& value) {
130 m_rawMessageHasBeenSet = true;
131 m_rawMessage = std::forward<RawMessageT>(value);
132 }
133 template <typename RawMessageT = RawMessage>
134 SendRawEmailRequest& WithRawMessage(RawMessageT&& value) {
135 SetRawMessage(std::forward<RawMessageT>(value));
136 return *this;
137 }
139
141
154 inline const Aws::String& GetFromArn() const { return m_fromArn; }
155 inline bool FromArnHasBeenSet() const { return m_fromArnHasBeenSet; }
156 template <typename FromArnT = Aws::String>
157 void SetFromArn(FromArnT&& value) {
158 m_fromArnHasBeenSet = true;
159 m_fromArn = std::forward<FromArnT>(value);
160 }
161 template <typename FromArnT = Aws::String>
162 SendRawEmailRequest& WithFromArn(FromArnT&& value) {
163 SetFromArn(std::forward<FromArnT>(value));
164 return *this;
165 }
167
169
188 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
189 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
190 template <typename SourceArnT = Aws::String>
191 void SetSourceArn(SourceArnT&& value) {
192 m_sourceArnHasBeenSet = true;
193 m_sourceArn = std::forward<SourceArnT>(value);
194 }
195 template <typename SourceArnT = Aws::String>
196 SendRawEmailRequest& WithSourceArn(SourceArnT&& value) {
197 SetSourceArn(std::forward<SourceArnT>(value));
198 return *this;
199 }
201
203
223 inline const Aws::String& GetReturnPathArn() const { return m_returnPathArn; }
224 inline bool ReturnPathArnHasBeenSet() const { return m_returnPathArnHasBeenSet; }
225 template <typename ReturnPathArnT = Aws::String>
226 void SetReturnPathArn(ReturnPathArnT&& value) {
227 m_returnPathArnHasBeenSet = true;
228 m_returnPathArn = std::forward<ReturnPathArnT>(value);
229 }
230 template <typename ReturnPathArnT = Aws::String>
231 SendRawEmailRequest& WithReturnPathArn(ReturnPathArnT&& value) {
232 SetReturnPathArn(std::forward<ReturnPathArnT>(value));
233 return *this;
234 }
236
238
243 inline const Aws::Vector<MessageTag>& GetTags() const { return m_tags; }
244 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
245 template <typename TagsT = Aws::Vector<MessageTag>>
246 void SetTags(TagsT&& value) {
247 m_tagsHasBeenSet = true;
248 m_tags = std::forward<TagsT>(value);
249 }
250 template <typename TagsT = Aws::Vector<MessageTag>>
252 SetTags(std::forward<TagsT>(value));
253 return *this;
254 }
255 template <typename TagsT = MessageTag>
256 SendRawEmailRequest& AddTags(TagsT&& value) {
257 m_tagsHasBeenSet = true;
258 m_tags.emplace_back(std::forward<TagsT>(value));
259 return *this;
260 }
262
264
268 inline const Aws::String& GetConfigurationSetName() const { return m_configurationSetName; }
269 inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
270 template <typename ConfigurationSetNameT = Aws::String>
271 void SetConfigurationSetName(ConfigurationSetNameT&& value) {
272 m_configurationSetNameHasBeenSet = true;
273 m_configurationSetName = std::forward<ConfigurationSetNameT>(value);
274 }
275 template <typename ConfigurationSetNameT = Aws::String>
276 SendRawEmailRequest& WithConfigurationSetName(ConfigurationSetNameT&& value) {
277 SetConfigurationSetName(std::forward<ConfigurationSetNameT>(value));
278 return *this;
279 }
281 private:
282 Aws::String m_source;
283
284 Aws::Vector<Aws::String> m_destinations;
285
286 RawMessage m_rawMessage;
287
288 Aws::String m_fromArn;
289
290 Aws::String m_sourceArn;
291
292 Aws::String m_returnPathArn;
293
295
296 Aws::String m_configurationSetName;
297 bool m_sourceHasBeenSet = false;
298 bool m_destinationsHasBeenSet = false;
299 bool m_rawMessageHasBeenSet = false;
300 bool m_fromArnHasBeenSet = false;
301 bool m_sourceArnHasBeenSet = false;
302 bool m_returnPathArnHasBeenSet = false;
303 bool m_tagsHasBeenSet = false;
304 bool m_configurationSetNameHasBeenSet = false;
305};
306
307} // namespace Model
308} // namespace SES
309} // namespace Aws
const Aws::String & GetSourceArn() const
SendRawEmailRequest & AddTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetReturnPathArn() const
const Aws::String & GetFromArn() const
SendRawEmailRequest & WithReturnPathArn(ReturnPathArnT &&value)
SendRawEmailRequest & WithDestinations(DestinationsT &&value)
SendRawEmailRequest & WithSource(SourceT &&value)
AWS_SES_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
SendRawEmailRequest & WithSourceArn(SourceArnT &&value)
SendRawEmailRequest & WithConfigurationSetName(ConfigurationSetNameT &&value)
const Aws::String & GetSource() const
AWS_SES_API Aws::String SerializePayload() const override
void SetReturnPathArn(ReturnPathArnT &&value)
void SetDestinations(DestinationsT &&value)
const RawMessage & GetRawMessage() const
SendRawEmailRequest & WithRawMessage(RawMessageT &&value)
SendRawEmailRequest & AddDestinations(DestinationsT &&value)
void SetConfigurationSetName(ConfigurationSetNameT &&value)
AWS_SES_API SendRawEmailRequest()=default
const Aws::Vector< Aws::String > & GetDestinations() const
SendRawEmailRequest & WithFromArn(FromArnT &&value)
const Aws::String & GetConfigurationSetName() const
SendRawEmailRequest & WithTags(TagsT &&value)
const Aws::Vector< MessageTag > & GetTags() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector