AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SendRawEmailRequest.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/RawMessage.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 SendRawEmailRequest();
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 "SendRawEmail"; }
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
70 inline const Aws::String& GetSource() const{ return m_source; }
71 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
72 inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
73 inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
74 inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
75 inline SendRawEmailRequest& WithSource(const Aws::String& value) { SetSource(value); return *this;}
76 inline SendRawEmailRequest& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
77 inline SendRawEmailRequest& WithSource(const char* value) { SetSource(value); return *this;}
79
81
85 inline const Aws::Vector<Aws::String>& GetDestinations() const{ return m_destinations; }
86 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
87 inline void SetDestinations(const Aws::Vector<Aws::String>& value) { m_destinationsHasBeenSet = true; m_destinations = value; }
88 inline void SetDestinations(Aws::Vector<Aws::String>&& value) { m_destinationsHasBeenSet = true; m_destinations = std::move(value); }
90 inline SendRawEmailRequest& WithDestinations(Aws::Vector<Aws::String>&& value) { SetDestinations(std::move(value)); return *this;}
91 inline SendRawEmailRequest& AddDestinations(const Aws::String& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
92 inline SendRawEmailRequest& AddDestinations(Aws::String&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; }
93 inline SendRawEmailRequest& AddDestinations(const char* value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
95
97
117 inline const RawMessage& GetRawMessage() const{ return m_rawMessage; }
118 inline bool RawMessageHasBeenSet() const { return m_rawMessageHasBeenSet; }
119 inline void SetRawMessage(const RawMessage& value) { m_rawMessageHasBeenSet = true; m_rawMessage = value; }
120 inline void SetRawMessage(RawMessage&& value) { m_rawMessageHasBeenSet = true; m_rawMessage = std::move(value); }
121 inline SendRawEmailRequest& WithRawMessage(const RawMessage& value) { SetRawMessage(value); return *this;}
122 inline SendRawEmailRequest& WithRawMessage(RawMessage&& value) { SetRawMessage(std::move(value)); return *this;}
124
126
139 inline const Aws::String& GetFromArn() const{ return m_fromArn; }
140 inline bool FromArnHasBeenSet() const { return m_fromArnHasBeenSet; }
141 inline void SetFromArn(const Aws::String& value) { m_fromArnHasBeenSet = true; m_fromArn = value; }
142 inline void SetFromArn(Aws::String&& value) { m_fromArnHasBeenSet = true; m_fromArn = std::move(value); }
143 inline void SetFromArn(const char* value) { m_fromArnHasBeenSet = true; m_fromArn.assign(value); }
144 inline SendRawEmailRequest& WithFromArn(const Aws::String& value) { SetFromArn(value); return *this;}
145 inline SendRawEmailRequest& WithFromArn(Aws::String&& value) { SetFromArn(std::move(value)); return *this;}
146 inline SendRawEmailRequest& WithFromArn(const char* value) { SetFromArn(value); return *this;}
148
150
169 inline const Aws::String& GetSourceArn() const{ return m_sourceArn; }
170 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
171 inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
172 inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::move(value); }
173 inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); }
174 inline SendRawEmailRequest& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
175 inline SendRawEmailRequest& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;}
176 inline SendRawEmailRequest& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
178
180
200 inline const Aws::String& GetReturnPathArn() const{ return m_returnPathArn; }
201 inline bool ReturnPathArnHasBeenSet() const { return m_returnPathArnHasBeenSet; }
202 inline void SetReturnPathArn(const Aws::String& value) { m_returnPathArnHasBeenSet = true; m_returnPathArn = value; }
203 inline void SetReturnPathArn(Aws::String&& value) { m_returnPathArnHasBeenSet = true; m_returnPathArn = std::move(value); }
204 inline void SetReturnPathArn(const char* value) { m_returnPathArnHasBeenSet = true; m_returnPathArn.assign(value); }
205 inline SendRawEmailRequest& WithReturnPathArn(const Aws::String& value) { SetReturnPathArn(value); return *this;}
206 inline SendRawEmailRequest& WithReturnPathArn(Aws::String&& value) { SetReturnPathArn(std::move(value)); return *this;}
207 inline SendRawEmailRequest& WithReturnPathArn(const char* value) { SetReturnPathArn(value); return *this;}
209
211
216 inline const Aws::Vector<MessageTag>& GetTags() const{ return m_tags; }
217 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
218 inline void SetTags(const Aws::Vector<MessageTag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
219 inline void SetTags(Aws::Vector<MessageTag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
220 inline SendRawEmailRequest& WithTags(const Aws::Vector<MessageTag>& value) { SetTags(value); return *this;}
221 inline SendRawEmailRequest& WithTags(Aws::Vector<MessageTag>&& value) { SetTags(std::move(value)); return *this;}
222 inline SendRawEmailRequest& AddTags(const MessageTag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
223 inline SendRawEmailRequest& AddTags(MessageTag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
225
227
231 inline const Aws::String& GetConfigurationSetName() const{ return m_configurationSetName; }
232 inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
233 inline void SetConfigurationSetName(const Aws::String& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = value; }
234 inline void SetConfigurationSetName(Aws::String&& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::move(value); }
235 inline void SetConfigurationSetName(const char* value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName.assign(value); }
237 inline SendRawEmailRequest& WithConfigurationSetName(Aws::String&& value) { SetConfigurationSetName(std::move(value)); return *this;}
238 inline SendRawEmailRequest& WithConfigurationSetName(const char* value) { SetConfigurationSetName(value); return *this;}
240 private:
241
242 Aws::String m_source;
243 bool m_sourceHasBeenSet = false;
244
245 Aws::Vector<Aws::String> m_destinations;
246 bool m_destinationsHasBeenSet = false;
247
248 RawMessage m_rawMessage;
249 bool m_rawMessageHasBeenSet = false;
250
251 Aws::String m_fromArn;
252 bool m_fromArnHasBeenSet = false;
253
254 Aws::String m_sourceArn;
255 bool m_sourceArnHasBeenSet = false;
256
257 Aws::String m_returnPathArn;
258 bool m_returnPathArnHasBeenSet = false;
259
261 bool m_tagsHasBeenSet = false;
262
263 Aws::String m_configurationSetName;
264 bool m_configurationSetNameHasBeenSet = false;
265 };
266
267} // namespace Model
268} // namespace SES
269} // namespace Aws
void SetReturnPathArn(Aws::String &&value)
SendRawEmailRequest & WithDestinations(Aws::Vector< Aws::String > &&value)
SendRawEmailRequest & WithDestinations(const Aws::Vector< Aws::String > &value)
SendRawEmailRequest & WithSourceArn(const Aws::String &value)
const Aws::String & GetSourceArn() const
SendRawEmailRequest & WithConfigurationSetName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetReturnPathArn() const
SendRawEmailRequest & WithConfigurationSetName(const char *value)
const Aws::String & GetFromArn() const
void SetConfigurationSetName(Aws::String &&value)
void SetRawMessage(const RawMessage &value)
SendRawEmailRequest & AddDestinations(const Aws::String &value)
void SetDestinations(const Aws::Vector< Aws::String > &value)
AWS_SES_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetConfigurationSetName(const char *value)
void SetTags(Aws::Vector< MessageTag > &&value)
SendRawEmailRequest & AddDestinations(const char *value)
SendRawEmailRequest & AddTags(MessageTag &&value)
SendRawEmailRequest & WithReturnPathArn(Aws::String &&value)
const Aws::String & GetSource() const
void SetReturnPathArn(const Aws::String &value)
AWS_SES_API Aws::String SerializePayload() const override
SendRawEmailRequest & AddTags(const MessageTag &value)
const RawMessage & GetRawMessage() const
SendRawEmailRequest & WithReturnPathArn(const Aws::String &value)
SendRawEmailRequest & WithSource(const Aws::String &value)
void SetSource(const Aws::String &value)
SendRawEmailRequest & WithFromArn(const Aws::String &value)
SendRawEmailRequest & WithSource(Aws::String &&value)
SendRawEmailRequest & AddDestinations(Aws::String &&value)
void SetTags(const Aws::Vector< MessageTag > &value)
SendRawEmailRequest & WithReturnPathArn(const char *value)
SendRawEmailRequest & WithFromArn(const char *value)
SendRawEmailRequest & WithRawMessage(const RawMessage &value)
const Aws::Vector< Aws::String > & GetDestinations() const
SendRawEmailRequest & WithSourceArn(const char *value)
SendRawEmailRequest & WithConfigurationSetName(Aws::String &&value)
void SetFromArn(const Aws::String &value)
void SetDestinations(Aws::Vector< Aws::String > &&value)
SendRawEmailRequest & WithTags(const Aws::Vector< MessageTag > &value)
const Aws::String & GetConfigurationSetName() const
SendRawEmailRequest & WithFromArn(Aws::String &&value)
SendRawEmailRequest & WithSourceArn(Aws::String &&value)
SendRawEmailRequest & WithRawMessage(RawMessage &&value)
void SetConfigurationSetName(const Aws::String &value)
SendRawEmailRequest & WithTags(Aws::Vector< MessageTag > &&value)
const Aws::Vector< MessageTag > & GetTags() const
SendRawEmailRequest & WithSource(const char *value)
void SetSourceArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector