AWS SDK for C++  1.8.71
AWS SDK for C++
SendEmailRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace PinpointEmail
19 {
20 namespace Model
21 {
22 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "SendEmail"; }
38 
39  Aws::String SerializePayload() const override;
40 
41 
46  inline const Aws::String& GetFromEmailAddress() const{ return m_fromEmailAddress; }
47 
52  inline bool FromEmailAddressHasBeenSet() const { return m_fromEmailAddressHasBeenSet; }
53 
58  inline void SetFromEmailAddress(const Aws::String& value) { m_fromEmailAddressHasBeenSet = true; m_fromEmailAddress = value; }
59 
64  inline void SetFromEmailAddress(Aws::String&& value) { m_fromEmailAddressHasBeenSet = true; m_fromEmailAddress = std::move(value); }
65 
70  inline void SetFromEmailAddress(const char* value) { m_fromEmailAddressHasBeenSet = true; m_fromEmailAddress.assign(value); }
71 
76  inline SendEmailRequest& WithFromEmailAddress(const Aws::String& value) { SetFromEmailAddress(value); return *this;}
77 
82  inline SendEmailRequest& WithFromEmailAddress(Aws::String&& value) { SetFromEmailAddress(std::move(value)); return *this;}
83 
88  inline SendEmailRequest& WithFromEmailAddress(const char* value) { SetFromEmailAddress(value); return *this;}
89 
90 
94  inline const Destination& GetDestination() const{ return m_destination; }
95 
99  inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
100 
104  inline void SetDestination(const Destination& value) { m_destinationHasBeenSet = true; m_destination = value; }
105 
109  inline void SetDestination(Destination&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
110 
114  inline SendEmailRequest& WithDestination(const Destination& value) { SetDestination(value); return *this;}
115 
119  inline SendEmailRequest& WithDestination(Destination&& value) { SetDestination(std::move(value)); return *this;}
120 
121 
126  inline const Aws::Vector<Aws::String>& GetReplyToAddresses() const{ return m_replyToAddresses; }
127 
132  inline bool ReplyToAddressesHasBeenSet() const { return m_replyToAddressesHasBeenSet; }
133 
138  inline void SetReplyToAddresses(const Aws::Vector<Aws::String>& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses = value; }
139 
144  inline void SetReplyToAddresses(Aws::Vector<Aws::String>&& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses = std::move(value); }
145 
150  inline SendEmailRequest& WithReplyToAddresses(const Aws::Vector<Aws::String>& value) { SetReplyToAddresses(value); return *this;}
151 
156  inline SendEmailRequest& WithReplyToAddresses(Aws::Vector<Aws::String>&& value) { SetReplyToAddresses(std::move(value)); return *this;}
157 
162  inline SendEmailRequest& AddReplyToAddresses(const Aws::String& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(value); return *this; }
163 
168  inline SendEmailRequest& AddReplyToAddresses(Aws::String&& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(std::move(value)); return *this; }
169 
174  inline SendEmailRequest& AddReplyToAddresses(const char* value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(value); return *this; }
175 
176 
181  inline const Aws::String& GetFeedbackForwardingEmailAddress() const{ return m_feedbackForwardingEmailAddress; }
182 
187  inline bool FeedbackForwardingEmailAddressHasBeenSet() const { return m_feedbackForwardingEmailAddressHasBeenSet; }
188 
193  inline void SetFeedbackForwardingEmailAddress(const Aws::String& value) { m_feedbackForwardingEmailAddressHasBeenSet = true; m_feedbackForwardingEmailAddress = value; }
194 
199  inline void SetFeedbackForwardingEmailAddress(Aws::String&& value) { m_feedbackForwardingEmailAddressHasBeenSet = true; m_feedbackForwardingEmailAddress = std::move(value); }
200 
205  inline void SetFeedbackForwardingEmailAddress(const char* value) { m_feedbackForwardingEmailAddressHasBeenSet = true; m_feedbackForwardingEmailAddress.assign(value); }
206 
211  inline SendEmailRequest& WithFeedbackForwardingEmailAddress(const Aws::String& value) { SetFeedbackForwardingEmailAddress(value); return *this;}
212 
217  inline SendEmailRequest& WithFeedbackForwardingEmailAddress(Aws::String&& value) { SetFeedbackForwardingEmailAddress(std::move(value)); return *this;}
218 
223  inline SendEmailRequest& WithFeedbackForwardingEmailAddress(const char* value) { SetFeedbackForwardingEmailAddress(value); return *this;}
224 
225 
230  inline const EmailContent& GetContent() const{ return m_content; }
231 
236  inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
237 
242  inline void SetContent(const EmailContent& value) { m_contentHasBeenSet = true; m_content = value; }
243 
248  inline void SetContent(EmailContent&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
249 
254  inline SendEmailRequest& WithContent(const EmailContent& value) { SetContent(value); return *this;}
255 
260  inline SendEmailRequest& WithContent(EmailContent&& value) { SetContent(std::move(value)); return *this;}
261 
262 
269  inline const Aws::Vector<MessageTag>& GetEmailTags() const{ return m_emailTags; }
270 
277  inline bool EmailTagsHasBeenSet() const { return m_emailTagsHasBeenSet; }
278 
285  inline void SetEmailTags(const Aws::Vector<MessageTag>& value) { m_emailTagsHasBeenSet = true; m_emailTags = value; }
286 
293  inline void SetEmailTags(Aws::Vector<MessageTag>&& value) { m_emailTagsHasBeenSet = true; m_emailTags = std::move(value); }
294 
301  inline SendEmailRequest& WithEmailTags(const Aws::Vector<MessageTag>& value) { SetEmailTags(value); return *this;}
302 
309  inline SendEmailRequest& WithEmailTags(Aws::Vector<MessageTag>&& value) { SetEmailTags(std::move(value)); return *this;}
310 
317  inline SendEmailRequest& AddEmailTags(const MessageTag& value) { m_emailTagsHasBeenSet = true; m_emailTags.push_back(value); return *this; }
318 
325  inline SendEmailRequest& AddEmailTags(MessageTag&& value) { m_emailTagsHasBeenSet = true; m_emailTags.push_back(std::move(value)); return *this; }
326 
327 
332  inline const Aws::String& GetConfigurationSetName() const{ return m_configurationSetName; }
333 
338  inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
339 
344  inline void SetConfigurationSetName(const Aws::String& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = value; }
345 
350  inline void SetConfigurationSetName(Aws::String&& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::move(value); }
351 
356  inline void SetConfigurationSetName(const char* value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName.assign(value); }
357 
362  inline SendEmailRequest& WithConfigurationSetName(const Aws::String& value) { SetConfigurationSetName(value); return *this;}
363 
368  inline SendEmailRequest& WithConfigurationSetName(Aws::String&& value) { SetConfigurationSetName(std::move(value)); return *this;}
369 
374  inline SendEmailRequest& WithConfigurationSetName(const char* value) { SetConfigurationSetName(value); return *this;}
375 
376  private:
377 
378  Aws::String m_fromEmailAddress;
379  bool m_fromEmailAddressHasBeenSet;
380 
381  Destination m_destination;
382  bool m_destinationHasBeenSet;
383 
384  Aws::Vector<Aws::String> m_replyToAddresses;
385  bool m_replyToAddressesHasBeenSet;
386 
387  Aws::String m_feedbackForwardingEmailAddress;
388  bool m_feedbackForwardingEmailAddressHasBeenSet;
389 
390  EmailContent m_content;
391  bool m_contentHasBeenSet;
392 
393  Aws::Vector<MessageTag> m_emailTags;
394  bool m_emailTagsHasBeenSet;
395 
396  Aws::String m_configurationSetName;
397  bool m_configurationSetNameHasBeenSet;
398  };
399 
400 } // namespace Model
401 } // namespace PinpointEmail
402 } // namespace Aws
SendEmailRequest & WithConfigurationSetName(const char *value)
SendEmailRequest & AddEmailTags(MessageTag &&value)
SendEmailRequest & WithConfigurationSetName(Aws::String &&value)
SendEmailRequest & AddEmailTags(const MessageTag &value)
const Aws::String & GetFeedbackForwardingEmailAddress() const
void SetEmailTags(Aws::Vector< MessageTag > &&value)
void SetFeedbackForwardingEmailAddress(const Aws::String &value)
SendEmailRequest & AddReplyToAddresses(const Aws::String &value)
SendEmailRequest & WithDestination(const Destination &value)
SendEmailRequest & AddReplyToAddresses(const char *value)
SendEmailRequest & WithEmailTags(const Aws::Vector< MessageTag > &value)
SendEmailRequest & WithReplyToAddresses(const Aws::Vector< Aws::String > &value)
SendEmailRequest & WithEmailTags(Aws::Vector< MessageTag > &&value)
#define AWS_PINPOINTEMAIL_API
void SetFeedbackForwardingEmailAddress(const char *value)
SendEmailRequest & WithDestination(Destination &&value)
void SetContent(const EmailContent &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
void SetFromEmailAddress(const Aws::String &value)
const Aws::String & GetConfigurationSetName() const
void SetFeedbackForwardingEmailAddress(Aws::String &&value)
void SetConfigurationSetName(const Aws::String &value)
SendEmailRequest & WithFromEmailAddress(const Aws::String &value)
void SetConfigurationSetName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< MessageTag > & GetEmailTags() const
SendEmailRequest & WithFeedbackForwardingEmailAddress(const char *value)
SendEmailRequest & WithContent(const EmailContent &value)
void SetReplyToAddresses(Aws::Vector< Aws::String > &&value)
void SetFromEmailAddress(Aws::String &&value)
SendEmailRequest & WithFromEmailAddress(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetEmailTags(const Aws::Vector< MessageTag > &value)
SendEmailRequest & WithFeedbackForwardingEmailAddress(const Aws::String &value)
const Aws::Vector< Aws::String > & GetReplyToAddresses() const
const Aws::String & GetFromEmailAddress() const
const Destination & GetDestination() const
void SetReplyToAddresses(const Aws::Vector< Aws::String > &value)
SendEmailRequest & WithConfigurationSetName(const Aws::String &value)
SendEmailRequest & WithReplyToAddresses(Aws::Vector< Aws::String > &&value)
SendEmailRequest & WithFeedbackForwardingEmailAddress(Aws::String &&value)
SendEmailRequest & AddReplyToAddresses(Aws::String &&value)
SendEmailRequest & WithFromEmailAddress(const char *value)
SendEmailRequest & WithContent(EmailContent &&value)
void SetDestination(const Destination &value)