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/sesv2/SESV2_EXPORTS.h>
8#include <aws/sesv2/SESV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sesv2/model/Destination.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/sesv2/model/EmailContent.h>
13#include <aws/sesv2/model/ListManagementOptions.h>
14#include <aws/sesv2/model/MessageTag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace SESV2
20{
21namespace Model
22{
23
33 {
34 public:
35 AWS_SESV2_API SendEmailRequest();
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "SendEmail"; }
42
43 AWS_SESV2_API Aws::String SerializePayload() const override;
44
45
47
51 inline const Aws::String& GetFromEmailAddress() const{ return m_fromEmailAddress; }
52 inline bool FromEmailAddressHasBeenSet() const { return m_fromEmailAddressHasBeenSet; }
53 inline void SetFromEmailAddress(const Aws::String& value) { m_fromEmailAddressHasBeenSet = true; m_fromEmailAddress = value; }
54 inline void SetFromEmailAddress(Aws::String&& value) { m_fromEmailAddressHasBeenSet = true; m_fromEmailAddress = std::move(value); }
55 inline void SetFromEmailAddress(const char* value) { m_fromEmailAddressHasBeenSet = true; m_fromEmailAddress.assign(value); }
56 inline SendEmailRequest& WithFromEmailAddress(const Aws::String& value) { SetFromEmailAddress(value); return *this;}
57 inline SendEmailRequest& WithFromEmailAddress(Aws::String&& value) { SetFromEmailAddress(std::move(value)); return *this;}
58 inline SendEmailRequest& WithFromEmailAddress(const char* value) { SetFromEmailAddress(value); return *this;}
60
62
78 inline const Aws::String& GetFromEmailAddressIdentityArn() const{ return m_fromEmailAddressIdentityArn; }
79 inline bool FromEmailAddressIdentityArnHasBeenSet() const { return m_fromEmailAddressIdentityArnHasBeenSet; }
80 inline void SetFromEmailAddressIdentityArn(const Aws::String& value) { m_fromEmailAddressIdentityArnHasBeenSet = true; m_fromEmailAddressIdentityArn = value; }
81 inline void SetFromEmailAddressIdentityArn(Aws::String&& value) { m_fromEmailAddressIdentityArnHasBeenSet = true; m_fromEmailAddressIdentityArn = std::move(value); }
82 inline void SetFromEmailAddressIdentityArn(const char* value) { m_fromEmailAddressIdentityArnHasBeenSet = true; m_fromEmailAddressIdentityArn.assign(value); }
85 inline SendEmailRequest& WithFromEmailAddressIdentityArn(const char* value) { SetFromEmailAddressIdentityArn(value); return *this;}
87
89
92 inline const Destination& GetDestination() const{ return m_destination; }
93 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
94 inline void SetDestination(const Destination& value) { m_destinationHasBeenSet = true; m_destination = value; }
95 inline void SetDestination(Destination&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
96 inline SendEmailRequest& WithDestination(const Destination& value) { SetDestination(value); return *this;}
97 inline SendEmailRequest& WithDestination(Destination&& value) { SetDestination(std::move(value)); return *this;}
99
101
105 inline const Aws::Vector<Aws::String>& GetReplyToAddresses() const{ return m_replyToAddresses; }
106 inline bool ReplyToAddressesHasBeenSet() const { return m_replyToAddressesHasBeenSet; }
107 inline void SetReplyToAddresses(const Aws::Vector<Aws::String>& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses = value; }
108 inline void SetReplyToAddresses(Aws::Vector<Aws::String>&& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses = std::move(value); }
110 inline SendEmailRequest& WithReplyToAddresses(Aws::Vector<Aws::String>&& value) { SetReplyToAddresses(std::move(value)); return *this;}
111 inline SendEmailRequest& AddReplyToAddresses(const Aws::String& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(value); return *this; }
112 inline SendEmailRequest& AddReplyToAddresses(Aws::String&& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(std::move(value)); return *this; }
113 inline SendEmailRequest& AddReplyToAddresses(const char* value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(value); return *this; }
115
117
121 inline const Aws::String& GetFeedbackForwardingEmailAddress() const{ return m_feedbackForwardingEmailAddress; }
122 inline bool FeedbackForwardingEmailAddressHasBeenSet() const { return m_feedbackForwardingEmailAddressHasBeenSet; }
123 inline void SetFeedbackForwardingEmailAddress(const Aws::String& value) { m_feedbackForwardingEmailAddressHasBeenSet = true; m_feedbackForwardingEmailAddress = value; }
124 inline void SetFeedbackForwardingEmailAddress(Aws::String&& value) { m_feedbackForwardingEmailAddressHasBeenSet = true; m_feedbackForwardingEmailAddress = std::move(value); }
125 inline void SetFeedbackForwardingEmailAddress(const char* value) { m_feedbackForwardingEmailAddressHasBeenSet = true; m_feedbackForwardingEmailAddress.assign(value); }
130
132
147 inline const Aws::String& GetFeedbackForwardingEmailAddressIdentityArn() const{ return m_feedbackForwardingEmailAddressIdentityArn; }
148 inline bool FeedbackForwardingEmailAddressIdentityArnHasBeenSet() const { return m_feedbackForwardingEmailAddressIdentityArnHasBeenSet; }
149 inline void SetFeedbackForwardingEmailAddressIdentityArn(const Aws::String& value) { m_feedbackForwardingEmailAddressIdentityArnHasBeenSet = true; m_feedbackForwardingEmailAddressIdentityArn = value; }
150 inline void SetFeedbackForwardingEmailAddressIdentityArn(Aws::String&& value) { m_feedbackForwardingEmailAddressIdentityArnHasBeenSet = true; m_feedbackForwardingEmailAddressIdentityArn = std::move(value); }
151 inline void SetFeedbackForwardingEmailAddressIdentityArn(const char* value) { m_feedbackForwardingEmailAddressIdentityArnHasBeenSet = true; m_feedbackForwardingEmailAddressIdentityArn.assign(value); }
156
158
162 inline const EmailContent& GetContent() const{ return m_content; }
163 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
164 inline void SetContent(const EmailContent& value) { m_contentHasBeenSet = true; m_content = value; }
165 inline void SetContent(EmailContent&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
166 inline SendEmailRequest& WithContent(const EmailContent& value) { SetContent(value); return *this;}
167 inline SendEmailRequest& WithContent(EmailContent&& value) { SetContent(std::move(value)); return *this;}
169
171
177 inline const Aws::Vector<MessageTag>& GetEmailTags() const{ return m_emailTags; }
178 inline bool EmailTagsHasBeenSet() const { return m_emailTagsHasBeenSet; }
179 inline void SetEmailTags(const Aws::Vector<MessageTag>& value) { m_emailTagsHasBeenSet = true; m_emailTags = value; }
180 inline void SetEmailTags(Aws::Vector<MessageTag>&& value) { m_emailTagsHasBeenSet = true; m_emailTags = std::move(value); }
181 inline SendEmailRequest& WithEmailTags(const Aws::Vector<MessageTag>& value) { SetEmailTags(value); return *this;}
182 inline SendEmailRequest& WithEmailTags(Aws::Vector<MessageTag>&& value) { SetEmailTags(std::move(value)); return *this;}
183 inline SendEmailRequest& AddEmailTags(const MessageTag& value) { m_emailTagsHasBeenSet = true; m_emailTags.push_back(value); return *this; }
184 inline SendEmailRequest& AddEmailTags(MessageTag&& value) { m_emailTagsHasBeenSet = true; m_emailTags.push_back(std::move(value)); return *this; }
186
188
191 inline const Aws::String& GetConfigurationSetName() const{ return m_configurationSetName; }
192 inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
193 inline void SetConfigurationSetName(const Aws::String& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = value; }
194 inline void SetConfigurationSetName(Aws::String&& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::move(value); }
195 inline void SetConfigurationSetName(const char* value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName.assign(value); }
197 inline SendEmailRequest& WithConfigurationSetName(Aws::String&& value) { SetConfigurationSetName(std::move(value)); return *this;}
198 inline SendEmailRequest& WithConfigurationSetName(const char* value) { SetConfigurationSetName(value); return *this;}
200
202
206 inline const ListManagementOptions& GetListManagementOptions() const{ return m_listManagementOptions; }
207 inline bool ListManagementOptionsHasBeenSet() const { return m_listManagementOptionsHasBeenSet; }
208 inline void SetListManagementOptions(const ListManagementOptions& value) { m_listManagementOptionsHasBeenSet = true; m_listManagementOptions = value; }
209 inline void SetListManagementOptions(ListManagementOptions&& value) { m_listManagementOptionsHasBeenSet = true; m_listManagementOptions = std::move(value); }
213 private:
214
215 Aws::String m_fromEmailAddress;
216 bool m_fromEmailAddressHasBeenSet = false;
217
218 Aws::String m_fromEmailAddressIdentityArn;
219 bool m_fromEmailAddressIdentityArnHasBeenSet = false;
220
221 Destination m_destination;
222 bool m_destinationHasBeenSet = false;
223
224 Aws::Vector<Aws::String> m_replyToAddresses;
225 bool m_replyToAddressesHasBeenSet = false;
226
227 Aws::String m_feedbackForwardingEmailAddress;
228 bool m_feedbackForwardingEmailAddressHasBeenSet = false;
229
230 Aws::String m_feedbackForwardingEmailAddressIdentityArn;
231 bool m_feedbackForwardingEmailAddressIdentityArnHasBeenSet = false;
232
233 EmailContent m_content;
234 bool m_contentHasBeenSet = false;
235
236 Aws::Vector<MessageTag> m_emailTags;
237 bool m_emailTagsHasBeenSet = false;
238
239 Aws::String m_configurationSetName;
240 bool m_configurationSetNameHasBeenSet = false;
241
242 ListManagementOptions m_listManagementOptions;
243 bool m_listManagementOptionsHasBeenSet = false;
244 };
245
246} // namespace Model
247} // namespace SESV2
248} // namespace Aws
void SetFeedbackForwardingEmailAddress(const char *value)
SendEmailRequest & AddEmailTags(const MessageTag &value)
const Aws::String & GetFeedbackForwardingEmailAddress() const
SendEmailRequest & WithEmailTags(const Aws::Vector< MessageTag > &value)
void SetFeedbackForwardingEmailAddress(const Aws::String &value)
SendEmailRequest & WithDestination(Destination &&value)
SendEmailRequest & WithDestination(const Destination &value)
SendEmailRequest & WithFeedbackForwardingEmailAddressIdentityArn(Aws::String &&value)
void SetListManagementOptions(const ListManagementOptions &value)
void SetEmailTags(Aws::Vector< MessageTag > &&value)
SendEmailRequest & WithFeedbackForwardingEmailAddress(const Aws::String &value)
SendEmailRequest & WithFeedbackForwardingEmailAddress(const char *value)
void SetFeedbackForwardingEmailAddressIdentityArn(const Aws::String &value)
const Aws::String & GetFromEmailAddress() const
void SetFeedbackForwardingEmailAddressIdentityArn(const char *value)
const EmailContent & GetContent() const
void SetConfigurationSetName(const char *value)
void SetFromEmailAddress(const char *value)
void SetDestination(const Destination &value)
SendEmailRequest & WithFromEmailAddress(Aws::String &&value)
SendEmailRequest & WithListManagementOptions(ListManagementOptions &&value)
SendEmailRequest & AddEmailTags(MessageTag &&value)
SendEmailRequest & WithFromEmailAddressIdentityArn(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
SendEmailRequest & AddReplyToAddresses(const char *value)
const Aws::String & GetFeedbackForwardingEmailAddressIdentityArn() const
void SetConfigurationSetName(const Aws::String &value)
void SetFeedbackForwardingEmailAddress(Aws::String &&value)
SendEmailRequest & WithContent(EmailContent &&value)
SendEmailRequest & WithConfigurationSetName(Aws::String &&value)
const Aws::Vector< MessageTag > & GetEmailTags() const
SendEmailRequest & WithFromEmailAddressIdentityArn(const Aws::String &value)
SendEmailRequest & WithEmailTags(Aws::Vector< MessageTag > &&value)
SendEmailRequest & WithListManagementOptions(const ListManagementOptions &value)
SendEmailRequest & WithFromEmailAddressIdentityArn(const char *value)
bool FeedbackForwardingEmailAddressIdentityArnHasBeenSet() const
const Aws::Vector< Aws::String > & GetReplyToAddresses() const
void SetEmailTags(const Aws::Vector< MessageTag > &value)
SendEmailRequest & WithConfigurationSetName(const Aws::String &value)
SendEmailRequest & AddReplyToAddresses(Aws::String &&value)
void SetContent(const EmailContent &value)
void SetReplyToAddresses(const Aws::Vector< Aws::String > &value)
AWS_SESV2_API Aws::String SerializePayload() const override
SendEmailRequest & WithFeedbackForwardingEmailAddressIdentityArn(const char *value)
SendEmailRequest & WithFeedbackForwardingEmailAddressIdentityArn(const Aws::String &value)
const Destination & GetDestination() const
SendEmailRequest & AddReplyToAddresses(const Aws::String &value)
void SetFromEmailAddressIdentityArn(Aws::String &&value)
SendEmailRequest & WithReplyToAddresses(Aws::Vector< Aws::String > &&value)
void SetFromEmailAddressIdentityArn(const Aws::String &value)
SendEmailRequest & WithFeedbackForwardingEmailAddress(Aws::String &&value)
SendEmailRequest & WithFromEmailAddress(const Aws::String &value)
void SetDestination(Destination &&value)
SendEmailRequest & WithConfigurationSetName(const char *value)
void SetContent(EmailContent &&value)
const ListManagementOptions & GetListManagementOptions() const
void SetFromEmailAddress(Aws::String &&value)
void SetFromEmailAddress(const Aws::String &value)
void SetFromEmailAddressIdentityArn(const char *value)
const Aws::String & GetFromEmailAddressIdentityArn() const
SendEmailRequest & WithContent(const EmailContent &value)
void SetReplyToAddresses(Aws::Vector< Aws::String > &&value)
void SetFeedbackForwardingEmailAddressIdentityArn(Aws::String &&value)
SendEmailRequest & WithReplyToAddresses(const Aws::Vector< Aws::String > &value)
void SetConfigurationSetName(Aws::String &&value)
const Aws::String & GetConfigurationSetName() const
void SetListManagementOptions(ListManagementOptions &&value)
SendEmailRequest & WithFromEmailAddress(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector