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 SESV2
19 {
20 namespace Model
21 {
22 
32  {
33  public:
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::String SerializePayload() const override;
43 
44 
49  inline const Aws::String& GetFromEmailAddress() const{ return m_fromEmailAddress; }
50 
55  inline bool FromEmailAddressHasBeenSet() const { return m_fromEmailAddressHasBeenSet; }
56 
61  inline void SetFromEmailAddress(const Aws::String& value) { m_fromEmailAddressHasBeenSet = true; m_fromEmailAddress = value; }
62 
67  inline void SetFromEmailAddress(Aws::String&& value) { m_fromEmailAddressHasBeenSet = true; m_fromEmailAddress = std::move(value); }
68 
73  inline void SetFromEmailAddress(const char* value) { m_fromEmailAddressHasBeenSet = true; m_fromEmailAddress.assign(value); }
74 
79  inline SendEmailRequest& WithFromEmailAddress(const Aws::String& value) { SetFromEmailAddress(value); return *this;}
80 
85  inline SendEmailRequest& WithFromEmailAddress(Aws::String&& value) { SetFromEmailAddress(std::move(value)); return *this;}
86 
91  inline SendEmailRequest& WithFromEmailAddress(const char* value) { SetFromEmailAddress(value); return *this;}
92 
93 
110  inline const Aws::String& GetFromEmailAddressIdentityArn() const{ return m_fromEmailAddressIdentityArn; }
111 
128  inline bool FromEmailAddressIdentityArnHasBeenSet() const { return m_fromEmailAddressIdentityArnHasBeenSet; }
129 
146  inline void SetFromEmailAddressIdentityArn(const Aws::String& value) { m_fromEmailAddressIdentityArnHasBeenSet = true; m_fromEmailAddressIdentityArn = value; }
147 
164  inline void SetFromEmailAddressIdentityArn(Aws::String&& value) { m_fromEmailAddressIdentityArnHasBeenSet = true; m_fromEmailAddressIdentityArn = std::move(value); }
165 
182  inline void SetFromEmailAddressIdentityArn(const char* value) { m_fromEmailAddressIdentityArnHasBeenSet = true; m_fromEmailAddressIdentityArn.assign(value); }
183 
200  inline SendEmailRequest& WithFromEmailAddressIdentityArn(const Aws::String& value) { SetFromEmailAddressIdentityArn(value); return *this;}
201 
218  inline SendEmailRequest& WithFromEmailAddressIdentityArn(Aws::String&& value) { SetFromEmailAddressIdentityArn(std::move(value)); return *this;}
219 
236  inline SendEmailRequest& WithFromEmailAddressIdentityArn(const char* value) { SetFromEmailAddressIdentityArn(value); return *this;}
237 
238 
242  inline const Destination& GetDestination() const{ return m_destination; }
243 
247  inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
248 
252  inline void SetDestination(const Destination& value) { m_destinationHasBeenSet = true; m_destination = value; }
253 
257  inline void SetDestination(Destination&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
258 
262  inline SendEmailRequest& WithDestination(const Destination& value) { SetDestination(value); return *this;}
263 
267  inline SendEmailRequest& WithDestination(Destination&& value) { SetDestination(std::move(value)); return *this;}
268 
269 
274  inline const Aws::Vector<Aws::String>& GetReplyToAddresses() const{ return m_replyToAddresses; }
275 
280  inline bool ReplyToAddressesHasBeenSet() const { return m_replyToAddressesHasBeenSet; }
281 
286  inline void SetReplyToAddresses(const Aws::Vector<Aws::String>& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses = value; }
287 
292  inline void SetReplyToAddresses(Aws::Vector<Aws::String>&& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses = std::move(value); }
293 
298  inline SendEmailRequest& WithReplyToAddresses(const Aws::Vector<Aws::String>& value) { SetReplyToAddresses(value); return *this;}
299 
304  inline SendEmailRequest& WithReplyToAddresses(Aws::Vector<Aws::String>&& value) { SetReplyToAddresses(std::move(value)); return *this;}
305 
310  inline SendEmailRequest& AddReplyToAddresses(const Aws::String& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(value); return *this; }
311 
316  inline SendEmailRequest& AddReplyToAddresses(Aws::String&& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(std::move(value)); return *this; }
317 
322  inline SendEmailRequest& AddReplyToAddresses(const char* value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(value); return *this; }
323 
324 
329  inline const Aws::String& GetFeedbackForwardingEmailAddress() const{ return m_feedbackForwardingEmailAddress; }
330 
335  inline bool FeedbackForwardingEmailAddressHasBeenSet() const { return m_feedbackForwardingEmailAddressHasBeenSet; }
336 
341  inline void SetFeedbackForwardingEmailAddress(const Aws::String& value) { m_feedbackForwardingEmailAddressHasBeenSet = true; m_feedbackForwardingEmailAddress = value; }
342 
347  inline void SetFeedbackForwardingEmailAddress(Aws::String&& value) { m_feedbackForwardingEmailAddressHasBeenSet = true; m_feedbackForwardingEmailAddress = std::move(value); }
348 
353  inline void SetFeedbackForwardingEmailAddress(const char* value) { m_feedbackForwardingEmailAddressHasBeenSet = true; m_feedbackForwardingEmailAddress.assign(value); }
354 
359  inline SendEmailRequest& WithFeedbackForwardingEmailAddress(const Aws::String& value) { SetFeedbackForwardingEmailAddress(value); return *this;}
360 
365  inline SendEmailRequest& WithFeedbackForwardingEmailAddress(Aws::String&& value) { SetFeedbackForwardingEmailAddress(std::move(value)); return *this;}
366 
371  inline SendEmailRequest& WithFeedbackForwardingEmailAddress(const char* value) { SetFeedbackForwardingEmailAddress(value); return *this;}
372 
373 
389  inline const Aws::String& GetFeedbackForwardingEmailAddressIdentityArn() const{ return m_feedbackForwardingEmailAddressIdentityArn; }
390 
406  inline bool FeedbackForwardingEmailAddressIdentityArnHasBeenSet() const { return m_feedbackForwardingEmailAddressIdentityArnHasBeenSet; }
407 
423  inline void SetFeedbackForwardingEmailAddressIdentityArn(const Aws::String& value) { m_feedbackForwardingEmailAddressIdentityArnHasBeenSet = true; m_feedbackForwardingEmailAddressIdentityArn = value; }
424 
440  inline void SetFeedbackForwardingEmailAddressIdentityArn(Aws::String&& value) { m_feedbackForwardingEmailAddressIdentityArnHasBeenSet = true; m_feedbackForwardingEmailAddressIdentityArn = std::move(value); }
441 
457  inline void SetFeedbackForwardingEmailAddressIdentityArn(const char* value) { m_feedbackForwardingEmailAddressIdentityArnHasBeenSet = true; m_feedbackForwardingEmailAddressIdentityArn.assign(value); }
458 
474  inline SendEmailRequest& WithFeedbackForwardingEmailAddressIdentityArn(const Aws::String& value) { SetFeedbackForwardingEmailAddressIdentityArn(value); return *this;}
475 
491  inline SendEmailRequest& WithFeedbackForwardingEmailAddressIdentityArn(Aws::String&& value) { SetFeedbackForwardingEmailAddressIdentityArn(std::move(value)); return *this;}
492 
508  inline SendEmailRequest& WithFeedbackForwardingEmailAddressIdentityArn(const char* value) { SetFeedbackForwardingEmailAddressIdentityArn(value); return *this;}
509 
510 
515  inline const EmailContent& GetContent() const{ return m_content; }
516 
521  inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
522 
527  inline void SetContent(const EmailContent& value) { m_contentHasBeenSet = true; m_content = value; }
528 
533  inline void SetContent(EmailContent&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
534 
539  inline SendEmailRequest& WithContent(const EmailContent& value) { SetContent(value); return *this;}
540 
545  inline SendEmailRequest& WithContent(EmailContent&& value) { SetContent(std::move(value)); return *this;}
546 
547 
554  inline const Aws::Vector<MessageTag>& GetEmailTags() const{ return m_emailTags; }
555 
562  inline bool EmailTagsHasBeenSet() const { return m_emailTagsHasBeenSet; }
563 
570  inline void SetEmailTags(const Aws::Vector<MessageTag>& value) { m_emailTagsHasBeenSet = true; m_emailTags = value; }
571 
578  inline void SetEmailTags(Aws::Vector<MessageTag>&& value) { m_emailTagsHasBeenSet = true; m_emailTags = std::move(value); }
579 
586  inline SendEmailRequest& WithEmailTags(const Aws::Vector<MessageTag>& value) { SetEmailTags(value); return *this;}
587 
594  inline SendEmailRequest& WithEmailTags(Aws::Vector<MessageTag>&& value) { SetEmailTags(std::move(value)); return *this;}
595 
602  inline SendEmailRequest& AddEmailTags(const MessageTag& value) { m_emailTagsHasBeenSet = true; m_emailTags.push_back(value); return *this; }
603 
610  inline SendEmailRequest& AddEmailTags(MessageTag&& value) { m_emailTagsHasBeenSet = true; m_emailTags.push_back(std::move(value)); return *this; }
611 
612 
617  inline const Aws::String& GetConfigurationSetName() const{ return m_configurationSetName; }
618 
623  inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
624 
629  inline void SetConfigurationSetName(const Aws::String& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = value; }
630 
635  inline void SetConfigurationSetName(Aws::String&& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::move(value); }
636 
641  inline void SetConfigurationSetName(const char* value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName.assign(value); }
642 
647  inline SendEmailRequest& WithConfigurationSetName(const Aws::String& value) { SetConfigurationSetName(value); return *this;}
648 
653  inline SendEmailRequest& WithConfigurationSetName(Aws::String&& value) { SetConfigurationSetName(std::move(value)); return *this;}
654 
659  inline SendEmailRequest& WithConfigurationSetName(const char* value) { SetConfigurationSetName(value); return *this;}
660 
661  private:
662 
663  Aws::String m_fromEmailAddress;
664  bool m_fromEmailAddressHasBeenSet;
665 
666  Aws::String m_fromEmailAddressIdentityArn;
667  bool m_fromEmailAddressIdentityArnHasBeenSet;
668 
669  Destination m_destination;
670  bool m_destinationHasBeenSet;
671 
672  Aws::Vector<Aws::String> m_replyToAddresses;
673  bool m_replyToAddressesHasBeenSet;
674 
675  Aws::String m_feedbackForwardingEmailAddress;
676  bool m_feedbackForwardingEmailAddressHasBeenSet;
677 
678  Aws::String m_feedbackForwardingEmailAddressIdentityArn;
679  bool m_feedbackForwardingEmailAddressIdentityArnHasBeenSet;
680 
681  EmailContent m_content;
682  bool m_contentHasBeenSet;
683 
684  Aws::Vector<MessageTag> m_emailTags;
685  bool m_emailTagsHasBeenSet;
686 
687  Aws::String m_configurationSetName;
688  bool m_configurationSetNameHasBeenSet;
689  };
690 
691 } // namespace Model
692 } // namespace SESV2
693 } // namespace Aws
const Aws::String & GetConfigurationSetName() const
void SetEmailTags(const Aws::Vector< MessageTag > &value)
SendEmailRequest & WithFeedbackForwardingEmailAddressIdentityArn(const Aws::String &value)
const Aws::String & GetFromEmailAddressIdentityArn() const
SendEmailRequest & WithFromEmailAddressIdentityArn(Aws::String &&value)
bool FeedbackForwardingEmailAddressIdentityArnHasBeenSet() const
SendEmailRequest & WithEmailTags(const Aws::Vector< MessageTag > &value)
const Destination & GetDestination() const
void SetFromEmailAddressIdentityArn(const char *value)
void SetFeedbackForwardingEmailAddressIdentityArn(Aws::String &&value)
const Aws::Vector< MessageTag > & GetEmailTags() const
void SetConfigurationSetName(Aws::String &&value)
SendEmailRequest & WithFromEmailAddress(const Aws::String &value)
void SetFeedbackForwardingEmailAddress(Aws::String &&value)
const EmailContent & GetContent() const
void SetFromEmailAddress(const char *value)
SendEmailRequest & WithFeedbackForwardingEmailAddress(const Aws::String &value)
SendEmailRequest & WithConfigurationSetName(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
SendEmailRequest & WithReplyToAddresses(Aws::Vector< Aws::String > &&value)
SendEmailRequest & WithFeedbackForwardingEmailAddress(const char *value)
SendEmailRequest & WithContent(EmailContent &&value)
SendEmailRequest & WithFromEmailAddress(const char *value)
void SetFeedbackForwardingEmailAddress(const char *value)
SendEmailRequest & WithFromEmailAddress(Aws::String &&value)
void SetConfigurationSetName(const Aws::String &value)
void SetFromEmailAddressIdentityArn(const Aws::String &value)
SendEmailRequest & WithFromEmailAddressIdentityArn(const Aws::String &value)
void SetConfigurationSetName(const char *value)
SendEmailRequest & WithFeedbackForwardingEmailAddressIdentityArn(const char *value)
SendEmailRequest & AddEmailTags(const MessageTag &value)
void SetDestination(const Destination &value)
const Aws::String & GetFeedbackForwardingEmailAddress() const
SendEmailRequest & AddReplyToAddresses(const Aws::String &value)
SendEmailRequest & WithConfigurationSetName(Aws::String &&value)
SendEmailRequest & AddReplyToAddresses(Aws::String &&value)
SendEmailRequest & WithContent(const EmailContent &value)
void SetFromEmailAddress(Aws::String &&value)
SendEmailRequest & WithFromEmailAddressIdentityArn(const char *value)
SendEmailRequest & WithReplyToAddresses(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
void SetFromEmailAddress(const Aws::String &value)
SendEmailRequest & WithFeedbackForwardingEmailAddress(Aws::String &&value)
void SetFeedbackForwardingEmailAddress(const Aws::String &value)
SendEmailRequest & WithConfigurationSetName(const Aws::String &value)
SendEmailRequest & WithDestination(Destination &&value)
const Aws::String & GetFeedbackForwardingEmailAddressIdentityArn() const
const Aws::Vector< Aws::String > & GetReplyToAddresses() const
const Aws::String & GetFromEmailAddress() const
void SetContent(const EmailContent &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetEmailTags(Aws::Vector< MessageTag > &&value)
void SetFeedbackForwardingEmailAddressIdentityArn(const char *value)
SendEmailRequest & WithFeedbackForwardingEmailAddressIdentityArn(Aws::String &&value)
void SetFeedbackForwardingEmailAddressIdentityArn(const Aws::String &value)
void SetFromEmailAddressIdentityArn(Aws::String &&value)
void SetDestination(Destination &&value)
SendEmailRequest & AddReplyToAddresses(const char *value)
void SetReplyToAddresses(const Aws::Vector< Aws::String > &value)
SendEmailRequest & WithEmailTags(Aws::Vector< MessageTag > &&value)
SendEmailRequest & WithDestination(const Destination &value)
#define AWS_SESV2_API
Definition: SESV2_EXPORTS.h:28
SendEmailRequest & AddEmailTags(MessageTag &&value)
void SetContent(EmailContent &&value)
void SetReplyToAddresses(Aws::Vector< Aws::String > &&value)