AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SendEmailRequest.h
1
6#pragma once
7#include <aws/pinpoint-email/PinpointEmail_EXPORTS.h>
8#include <aws/pinpoint-email/PinpointEmailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/pinpoint-email/model/Destination.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/pinpoint-email/model/EmailContent.h>
13#include <aws/pinpoint-email/model/MessageTag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace PinpointEmail
19{
20namespace Model
21{
22
29 {
30 public:
31 AWS_PINPOINTEMAIL_API SendEmailRequest() = default;
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_PINPOINTEMAIL_API Aws::String SerializePayload() const override;
40
41
43
47 inline const Aws::String& GetFromEmailAddress() const { return m_fromEmailAddress; }
48 inline bool FromEmailAddressHasBeenSet() const { return m_fromEmailAddressHasBeenSet; }
49 template<typename FromEmailAddressT = Aws::String>
50 void SetFromEmailAddress(FromEmailAddressT&& value) { m_fromEmailAddressHasBeenSet = true; m_fromEmailAddress = std::forward<FromEmailAddressT>(value); }
51 template<typename FromEmailAddressT = Aws::String>
52 SendEmailRequest& WithFromEmailAddress(FromEmailAddressT&& value) { SetFromEmailAddress(std::forward<FromEmailAddressT>(value)); return *this;}
54
56
59 inline const Destination& GetDestination() const { return m_destination; }
60 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
61 template<typename DestinationT = Destination>
62 void SetDestination(DestinationT&& value) { m_destinationHasBeenSet = true; m_destination = std::forward<DestinationT>(value); }
63 template<typename DestinationT = Destination>
64 SendEmailRequest& WithDestination(DestinationT&& value) { SetDestination(std::forward<DestinationT>(value)); return *this;}
66
68
72 inline const Aws::Vector<Aws::String>& GetReplyToAddresses() const { return m_replyToAddresses; }
73 inline bool ReplyToAddressesHasBeenSet() const { return m_replyToAddressesHasBeenSet; }
74 template<typename ReplyToAddressesT = Aws::Vector<Aws::String>>
75 void SetReplyToAddresses(ReplyToAddressesT&& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses = std::forward<ReplyToAddressesT>(value); }
76 template<typename ReplyToAddressesT = Aws::Vector<Aws::String>>
77 SendEmailRequest& WithReplyToAddresses(ReplyToAddressesT&& value) { SetReplyToAddresses(std::forward<ReplyToAddressesT>(value)); return *this;}
78 template<typename ReplyToAddressesT = Aws::String>
79 SendEmailRequest& AddReplyToAddresses(ReplyToAddressesT&& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.emplace_back(std::forward<ReplyToAddressesT>(value)); return *this; }
81
83
87 inline const Aws::String& GetFeedbackForwardingEmailAddress() const { return m_feedbackForwardingEmailAddress; }
88 inline bool FeedbackForwardingEmailAddressHasBeenSet() const { return m_feedbackForwardingEmailAddressHasBeenSet; }
89 template<typename FeedbackForwardingEmailAddressT = Aws::String>
90 void SetFeedbackForwardingEmailAddress(FeedbackForwardingEmailAddressT&& value) { m_feedbackForwardingEmailAddressHasBeenSet = true; m_feedbackForwardingEmailAddress = std::forward<FeedbackForwardingEmailAddressT>(value); }
91 template<typename FeedbackForwardingEmailAddressT = Aws::String>
92 SendEmailRequest& WithFeedbackForwardingEmailAddress(FeedbackForwardingEmailAddressT&& value) { SetFeedbackForwardingEmailAddress(std::forward<FeedbackForwardingEmailAddressT>(value)); return *this;}
94
96
100 inline const EmailContent& GetContent() const { return m_content; }
101 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
102 template<typename ContentT = EmailContent>
103 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
104 template<typename ContentT = EmailContent>
105 SendEmailRequest& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
107
109
115 inline const Aws::Vector<MessageTag>& GetEmailTags() const { return m_emailTags; }
116 inline bool EmailTagsHasBeenSet() const { return m_emailTagsHasBeenSet; }
117 template<typename EmailTagsT = Aws::Vector<MessageTag>>
118 void SetEmailTags(EmailTagsT&& value) { m_emailTagsHasBeenSet = true; m_emailTags = std::forward<EmailTagsT>(value); }
119 template<typename EmailTagsT = Aws::Vector<MessageTag>>
120 SendEmailRequest& WithEmailTags(EmailTagsT&& value) { SetEmailTags(std::forward<EmailTagsT>(value)); return *this;}
121 template<typename EmailTagsT = MessageTag>
122 SendEmailRequest& AddEmailTags(EmailTagsT&& value) { m_emailTagsHasBeenSet = true; m_emailTags.emplace_back(std::forward<EmailTagsT>(value)); return *this; }
124
126
130 inline const Aws::String& GetConfigurationSetName() const { return m_configurationSetName; }
131 inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
132 template<typename ConfigurationSetNameT = Aws::String>
133 void SetConfigurationSetName(ConfigurationSetNameT&& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::forward<ConfigurationSetNameT>(value); }
134 template<typename ConfigurationSetNameT = Aws::String>
135 SendEmailRequest& WithConfigurationSetName(ConfigurationSetNameT&& value) { SetConfigurationSetName(std::forward<ConfigurationSetNameT>(value)); return *this;}
137 private:
138
139 Aws::String m_fromEmailAddress;
140 bool m_fromEmailAddressHasBeenSet = false;
141
142 Destination m_destination;
143 bool m_destinationHasBeenSet = false;
144
145 Aws::Vector<Aws::String> m_replyToAddresses;
146 bool m_replyToAddressesHasBeenSet = false;
147
148 Aws::String m_feedbackForwardingEmailAddress;
149 bool m_feedbackForwardingEmailAddressHasBeenSet = false;
150
151 EmailContent m_content;
152 bool m_contentHasBeenSet = false;
153
154 Aws::Vector<MessageTag> m_emailTags;
155 bool m_emailTagsHasBeenSet = false;
156
157 Aws::String m_configurationSetName;
158 bool m_configurationSetNameHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace PinpointEmail
163} // namespace Aws
SendEmailRequest & WithConfigurationSetName(ConfigurationSetNameT &&value)
const Aws::Vector< Aws::String > & GetReplyToAddresses() const
SendEmailRequest & WithDestination(DestinationT &&value)
AWS_PINPOINTEMAIL_API Aws::String SerializePayload() const override
void SetFromEmailAddress(FromEmailAddressT &&value)
SendEmailRequest & WithEmailTags(EmailTagsT &&value)
AWS_PINPOINTEMAIL_API SendEmailRequest()=default
SendEmailRequest & WithReplyToAddresses(ReplyToAddressesT &&value)
const Aws::Vector< MessageTag > & GetEmailTags() const
const Aws::String & GetFromEmailAddress() const
const Aws::String & GetConfigurationSetName() const
SendEmailRequest & WithFromEmailAddress(FromEmailAddressT &&value)
virtual const char * GetServiceRequestName() const override
SendEmailRequest & AddEmailTags(EmailTagsT &&value)
void SetConfigurationSetName(ConfigurationSetNameT &&value)
void SetReplyToAddresses(ReplyToAddressesT &&value)
const Aws::String & GetFeedbackForwardingEmailAddress() const
SendEmailRequest & AddReplyToAddresses(ReplyToAddressesT &&value)
SendEmailRequest & WithFeedbackForwardingEmailAddress(FeedbackForwardingEmailAddressT &&value)
SendEmailRequest & WithContent(ContentT &&value)
void SetFeedbackForwardingEmailAddress(FeedbackForwardingEmailAddressT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector