AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SendEmailRequest.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/email/model/Message.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/email/model/MessageTag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace SES
19{
20namespace Model
21{
22
32 {
33 public:
34 AWS_SES_API SendEmailRequest();
35
36 // Service request name is the Operation name which will send this request out,
37 // each operation should has unique request name, so that we can get operation's name from this request.
38 // Note: this is not true for response, multiple operations may have the same response name,
39 // so we can not get operation's name from response.
40 inline virtual const char* GetServiceRequestName() const override { return "SendEmail"; }
41
42 AWS_SES_API Aws::String SerializePayload() const override;
43
44 protected:
45 AWS_SES_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
46
47 public:
48
50
74 inline const Aws::String& GetSource() const{ return m_source; }
75 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
76 inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
77 inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
78 inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
79 inline SendEmailRequest& WithSource(const Aws::String& value) { SetSource(value); return *this;}
80 inline SendEmailRequest& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
81 inline SendEmailRequest& WithSource(const char* value) { SetSource(value); return *this;}
83
85
88 inline const Destination& GetDestination() const{ return m_destination; }
89 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
90 inline void SetDestination(const Destination& value) { m_destinationHasBeenSet = true; m_destination = value; }
91 inline void SetDestination(Destination&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
92 inline SendEmailRequest& WithDestination(const Destination& value) { SetDestination(value); return *this;}
93 inline SendEmailRequest& WithDestination(Destination&& value) { SetDestination(std::move(value)); return *this;}
95
97
100 inline const Message& GetMessage() const{ return m_message; }
101 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
102 inline void SetMessage(const Message& value) { m_messageHasBeenSet = true; m_message = value; }
103 inline void SetMessage(Message&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
104 inline SendEmailRequest& WithMessage(const Message& value) { SetMessage(value); return *this;}
105 inline SendEmailRequest& WithMessage(Message&& value) { SetMessage(std::move(value)); return *this;}
107
109
113 inline const Aws::Vector<Aws::String>& GetReplyToAddresses() const{ return m_replyToAddresses; }
114 inline bool ReplyToAddressesHasBeenSet() const { return m_replyToAddressesHasBeenSet; }
115 inline void SetReplyToAddresses(const Aws::Vector<Aws::String>& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses = value; }
116 inline void SetReplyToAddresses(Aws::Vector<Aws::String>&& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses = std::move(value); }
118 inline SendEmailRequest& WithReplyToAddresses(Aws::Vector<Aws::String>&& value) { SetReplyToAddresses(std::move(value)); return *this;}
119 inline SendEmailRequest& AddReplyToAddresses(const Aws::String& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(value); return *this; }
120 inline SendEmailRequest& AddReplyToAddresses(Aws::String&& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(std::move(value)); return *this; }
121 inline SendEmailRequest& AddReplyToAddresses(const char* value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(value); return *this; }
123
125
134 inline const Aws::String& GetReturnPath() const{ return m_returnPath; }
135 inline bool ReturnPathHasBeenSet() const { return m_returnPathHasBeenSet; }
136 inline void SetReturnPath(const Aws::String& value) { m_returnPathHasBeenSet = true; m_returnPath = value; }
137 inline void SetReturnPath(Aws::String&& value) { m_returnPathHasBeenSet = true; m_returnPath = std::move(value); }
138 inline void SetReturnPath(const char* value) { m_returnPathHasBeenSet = true; m_returnPath.assign(value); }
139 inline SendEmailRequest& WithReturnPath(const Aws::String& value) { SetReturnPath(value); return *this;}
140 inline SendEmailRequest& WithReturnPath(Aws::String&& value) { SetReturnPath(std::move(value)); return *this;}
141 inline SendEmailRequest& WithReturnPath(const char* value) { SetReturnPath(value); return *this;}
143
145
159 inline const Aws::String& GetSourceArn() const{ return m_sourceArn; }
160 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
161 inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
162 inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::move(value); }
163 inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); }
164 inline SendEmailRequest& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
165 inline SendEmailRequest& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;}
166 inline SendEmailRequest& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
168
170
185 inline const Aws::String& GetReturnPathArn() const{ return m_returnPathArn; }
186 inline bool ReturnPathArnHasBeenSet() const { return m_returnPathArnHasBeenSet; }
187 inline void SetReturnPathArn(const Aws::String& value) { m_returnPathArnHasBeenSet = true; m_returnPathArn = value; }
188 inline void SetReturnPathArn(Aws::String&& value) { m_returnPathArnHasBeenSet = true; m_returnPathArn = std::move(value); }
189 inline void SetReturnPathArn(const char* value) { m_returnPathArnHasBeenSet = true; m_returnPathArn.assign(value); }
190 inline SendEmailRequest& WithReturnPathArn(const Aws::String& value) { SetReturnPathArn(value); return *this;}
191 inline SendEmailRequest& WithReturnPathArn(Aws::String&& value) { SetReturnPathArn(std::move(value)); return *this;}
192 inline SendEmailRequest& WithReturnPathArn(const char* value) { SetReturnPathArn(value); return *this;}
194
196
201 inline const Aws::Vector<MessageTag>& GetTags() const{ return m_tags; }
202 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
203 inline void SetTags(const Aws::Vector<MessageTag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
204 inline void SetTags(Aws::Vector<MessageTag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
205 inline SendEmailRequest& WithTags(const Aws::Vector<MessageTag>& value) { SetTags(value); return *this;}
206 inline SendEmailRequest& WithTags(Aws::Vector<MessageTag>&& value) { SetTags(std::move(value)); return *this;}
207 inline SendEmailRequest& AddTags(const MessageTag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
208 inline SendEmailRequest& AddTags(MessageTag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
210
212
216 inline const Aws::String& GetConfigurationSetName() const{ return m_configurationSetName; }
217 inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
218 inline void SetConfigurationSetName(const Aws::String& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = value; }
219 inline void SetConfigurationSetName(Aws::String&& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::move(value); }
220 inline void SetConfigurationSetName(const char* value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName.assign(value); }
222 inline SendEmailRequest& WithConfigurationSetName(Aws::String&& value) { SetConfigurationSetName(std::move(value)); return *this;}
223 inline SendEmailRequest& WithConfigurationSetName(const char* value) { SetConfigurationSetName(value); return *this;}
225 private:
226
227 Aws::String m_source;
228 bool m_sourceHasBeenSet = false;
229
230 Destination m_destination;
231 bool m_destinationHasBeenSet = false;
232
233 Message m_message;
234 bool m_messageHasBeenSet = false;
235
236 Aws::Vector<Aws::String> m_replyToAddresses;
237 bool m_replyToAddressesHasBeenSet = false;
238
239 Aws::String m_returnPath;
240 bool m_returnPathHasBeenSet = false;
241
242 Aws::String m_sourceArn;
243 bool m_sourceArnHasBeenSet = false;
244
245 Aws::String m_returnPathArn;
246 bool m_returnPathArnHasBeenSet = false;
247
249 bool m_tagsHasBeenSet = false;
250
251 Aws::String m_configurationSetName;
252 bool m_configurationSetNameHasBeenSet = false;
253 };
254
255} // namespace Model
256} // namespace SES
257} // namespace Aws
SendEmailRequest & WithReturnPath(const Aws::String &value)
void SetSourceArn(const Aws::String &value)
SendEmailRequest & WithSource(Aws::String &&value)
const Aws::Vector< MessageTag > & GetTags() const
void SetDestination(const Destination &value)
SendEmailRequest & WithMessage(const Message &value)
void SetConfigurationSetName(const Aws::String &value)
void SetMessage(const Message &value)
SendEmailRequest & WithReturnPathArn(const Aws::String &value)
SendEmailRequest & WithReturnPathArn(const char *value)
void SetSource(const Aws::String &value)
void SetConfigurationSetName(Aws::String &&value)
void SetReturnPath(Aws::String &&value)
SendEmailRequest & AddReplyToAddresses(Aws::String &&value)
SendEmailRequest & AddReplyToAddresses(const Aws::String &value)
SendEmailRequest & WithReplyToAddresses(const Aws::Vector< Aws::String > &value)
const Aws::String & GetReturnPathArn() const
SendEmailRequest & AddTags(const MessageTag &value)
SendEmailRequest & WithMessage(Message &&value)
void SetTags(Aws::Vector< MessageTag > &&value)
void SetReplyToAddresses(const Aws::Vector< Aws::String > &value)
void SetSource(const char *value)
const Aws::String & GetSourceArn() const
void SetConfigurationSetName(const char *value)
void SetSourceArn(const char *value)
SendEmailRequest & WithConfigurationSetName(Aws::String &&value)
void SetReturnPath(const Aws::String &value)
const Message & GetMessage() const
void SetReplyToAddresses(Aws::Vector< Aws::String > &&value)
SendEmailRequest & AddTags(MessageTag &&value)
SendEmailRequest & WithReplyToAddresses(Aws::Vector< Aws::String > &&value)
SendEmailRequest & WithSource(const char *value)
AWS_SES_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
SendEmailRequest & WithTags(Aws::Vector< MessageTag > &&value)
SendEmailRequest & WithDestination(const Destination &value)
const Destination & GetDestination() const
SendEmailRequest & WithConfigurationSetName(const char *value)
void SetReturnPathArn(const char *value)
void SetTags(const Aws::Vector< MessageTag > &value)
SendEmailRequest & AddReplyToAddresses(const char *value)
SendEmailRequest & WithSourceArn(const Aws::String &value)
SendEmailRequest & WithReturnPath(Aws::String &&value)
void SetDestination(Destination &&value)
SendEmailRequest & WithReturnPathArn(Aws::String &&value)
const Aws::Vector< Aws::String > & GetReplyToAddresses() const
void SetSource(Aws::String &&value)
void SetSourceArn(Aws::String &&value)
AWS_SES_API Aws::String SerializePayload() const override
SendEmailRequest & WithTags(const Aws::Vector< MessageTag > &value)
void SetReturnPathArn(Aws::String &&value)
SendEmailRequest & WithSource(const Aws::String &value)
const Aws::String & GetReturnPath() const
SendEmailRequest & WithDestination(Destination &&value)
SendEmailRequest & WithSourceArn(const char *value)
const Aws::String & GetSource() const
void SetReturnPathArn(const Aws::String &value)
SendEmailRequest & WithReturnPath(const char *value)
const Aws::String & GetConfigurationSetName() const
virtual const char * GetServiceRequestName() const override
void SetReturnPath(const char *value)
SendEmailRequest & WithConfigurationSetName(const Aws::String &value)
SendEmailRequest & WithSourceArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector