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/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();
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 inline void SetFromEmailAddress(const Aws::String& value) { m_fromEmailAddressHasBeenSet = true; m_fromEmailAddress = value; }
50 inline void SetFromEmailAddress(Aws::String&& value) { m_fromEmailAddressHasBeenSet = true; m_fromEmailAddress = std::move(value); }
51 inline void SetFromEmailAddress(const char* value) { m_fromEmailAddressHasBeenSet = true; m_fromEmailAddress.assign(value); }
52 inline SendEmailRequest& WithFromEmailAddress(const Aws::String& value) { SetFromEmailAddress(value); return *this;}
53 inline SendEmailRequest& WithFromEmailAddress(Aws::String&& value) { SetFromEmailAddress(std::move(value)); return *this;}
54 inline SendEmailRequest& WithFromEmailAddress(const char* value) { SetFromEmailAddress(value); return *this;}
56
58
61 inline const Destination& GetDestination() const{ return m_destination; }
62 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
63 inline void SetDestination(const Destination& value) { m_destinationHasBeenSet = true; m_destination = value; }
64 inline void SetDestination(Destination&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
65 inline SendEmailRequest& WithDestination(const Destination& value) { SetDestination(value); return *this;}
66 inline SendEmailRequest& WithDestination(Destination&& value) { SetDestination(std::move(value)); return *this;}
68
70
74 inline const Aws::Vector<Aws::String>& GetReplyToAddresses() const{ return m_replyToAddresses; }
75 inline bool ReplyToAddressesHasBeenSet() const { return m_replyToAddressesHasBeenSet; }
76 inline void SetReplyToAddresses(const Aws::Vector<Aws::String>& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses = value; }
77 inline void SetReplyToAddresses(Aws::Vector<Aws::String>&& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses = std::move(value); }
79 inline SendEmailRequest& WithReplyToAddresses(Aws::Vector<Aws::String>&& value) { SetReplyToAddresses(std::move(value)); return *this;}
80 inline SendEmailRequest& AddReplyToAddresses(const Aws::String& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(value); return *this; }
81 inline SendEmailRequest& AddReplyToAddresses(Aws::String&& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(std::move(value)); return *this; }
82 inline SendEmailRequest& AddReplyToAddresses(const char* value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(value); return *this; }
84
86
90 inline const Aws::String& GetFeedbackForwardingEmailAddress() const{ return m_feedbackForwardingEmailAddress; }
91 inline bool FeedbackForwardingEmailAddressHasBeenSet() const { return m_feedbackForwardingEmailAddressHasBeenSet; }
92 inline void SetFeedbackForwardingEmailAddress(const Aws::String& value) { m_feedbackForwardingEmailAddressHasBeenSet = true; m_feedbackForwardingEmailAddress = value; }
93 inline void SetFeedbackForwardingEmailAddress(Aws::String&& value) { m_feedbackForwardingEmailAddressHasBeenSet = true; m_feedbackForwardingEmailAddress = std::move(value); }
94 inline void SetFeedbackForwardingEmailAddress(const char* value) { m_feedbackForwardingEmailAddressHasBeenSet = true; m_feedbackForwardingEmailAddress.assign(value); }
99
101
105 inline const EmailContent& GetContent() const{ return m_content; }
106 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
107 inline void SetContent(const EmailContent& value) { m_contentHasBeenSet = true; m_content = value; }
108 inline void SetContent(EmailContent&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
109 inline SendEmailRequest& WithContent(const EmailContent& value) { SetContent(value); return *this;}
110 inline SendEmailRequest& WithContent(EmailContent&& value) { SetContent(std::move(value)); return *this;}
112
114
120 inline const Aws::Vector<MessageTag>& GetEmailTags() const{ return m_emailTags; }
121 inline bool EmailTagsHasBeenSet() const { return m_emailTagsHasBeenSet; }
122 inline void SetEmailTags(const Aws::Vector<MessageTag>& value) { m_emailTagsHasBeenSet = true; m_emailTags = value; }
123 inline void SetEmailTags(Aws::Vector<MessageTag>&& value) { m_emailTagsHasBeenSet = true; m_emailTags = std::move(value); }
124 inline SendEmailRequest& WithEmailTags(const Aws::Vector<MessageTag>& value) { SetEmailTags(value); return *this;}
125 inline SendEmailRequest& WithEmailTags(Aws::Vector<MessageTag>&& value) { SetEmailTags(std::move(value)); return *this;}
126 inline SendEmailRequest& AddEmailTags(const MessageTag& value) { m_emailTagsHasBeenSet = true; m_emailTags.push_back(value); return *this; }
127 inline SendEmailRequest& AddEmailTags(MessageTag&& value) { m_emailTagsHasBeenSet = true; m_emailTags.push_back(std::move(value)); return *this; }
129
131
135 inline const Aws::String& GetConfigurationSetName() const{ return m_configurationSetName; }
136 inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
137 inline void SetConfigurationSetName(const Aws::String& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = value; }
138 inline void SetConfigurationSetName(Aws::String&& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::move(value); }
139 inline void SetConfigurationSetName(const char* value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName.assign(value); }
141 inline SendEmailRequest& WithConfigurationSetName(Aws::String&& value) { SetConfigurationSetName(std::move(value)); return *this;}
142 inline SendEmailRequest& WithConfigurationSetName(const char* value) { SetConfigurationSetName(value); return *this;}
144 private:
145
146 Aws::String m_fromEmailAddress;
147 bool m_fromEmailAddressHasBeenSet = false;
148
149 Destination m_destination;
150 bool m_destinationHasBeenSet = false;
151
152 Aws::Vector<Aws::String> m_replyToAddresses;
153 bool m_replyToAddressesHasBeenSet = false;
154
155 Aws::String m_feedbackForwardingEmailAddress;
156 bool m_feedbackForwardingEmailAddressHasBeenSet = false;
157
158 EmailContent m_content;
159 bool m_contentHasBeenSet = false;
160
161 Aws::Vector<MessageTag> m_emailTags;
162 bool m_emailTagsHasBeenSet = false;
163
164 Aws::String m_configurationSetName;
165 bool m_configurationSetNameHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace PinpointEmail
170} // namespace Aws
void SetConfigurationSetName(const Aws::String &value)
void SetFeedbackForwardingEmailAddress(const char *value)
SendEmailRequest & WithFeedbackForwardingEmailAddress(Aws::String &&value)
void SetFromEmailAddress(const Aws::String &value)
SendEmailRequest & WithFromEmailAddress(const Aws::String &value)
const Aws::Vector< Aws::String > & GetReplyToAddresses() const
void SetFeedbackForwardingEmailAddress(Aws::String &&value)
SendEmailRequest & WithFromEmailAddress(Aws::String &&value)
void SetEmailTags(Aws::Vector< MessageTag > &&value)
SendEmailRequest & WithConfigurationSetName(Aws::String &&value)
SendEmailRequest & AddReplyToAddresses(const Aws::String &value)
SendEmailRequest & WithConfigurationSetName(const char *value)
SendEmailRequest & WithFromEmailAddress(const char *value)
AWS_PINPOINTEMAIL_API Aws::String SerializePayload() const override
void SetContent(const EmailContent &value)
SendEmailRequest & WithDestination(const Destination &value)
SendEmailRequest & WithConfigurationSetName(const Aws::String &value)
SendEmailRequest & WithFeedbackForwardingEmailAddress(const char *value)
SendEmailRequest & AddReplyToAddresses(Aws::String &&value)
SendEmailRequest & WithReplyToAddresses(Aws::Vector< Aws::String > &&value)
SendEmailRequest & WithFeedbackForwardingEmailAddress(const Aws::String &value)
void SetFeedbackForwardingEmailAddress(const Aws::String &value)
void SetDestination(const Destination &value)
SendEmailRequest & AddEmailTags(MessageTag &&value)
SendEmailRequest & WithEmailTags(const Aws::Vector< MessageTag > &value)
const Aws::Vector< MessageTag > & GetEmailTags() const
SendEmailRequest & WithContent(EmailContent &&value)
const Aws::String & GetFromEmailAddress() const
const Aws::String & GetConfigurationSetName() const
void SetConfigurationSetName(Aws::String &&value)
void SetReplyToAddresses(Aws::Vector< Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
SendEmailRequest & AddEmailTags(const MessageTag &value)
void SetReplyToAddresses(const Aws::Vector< Aws::String > &value)
SendEmailRequest & WithDestination(Destination &&value)
const Aws::String & GetFeedbackForwardingEmailAddress() const
SendEmailRequest & WithEmailTags(Aws::Vector< MessageTag > &&value)
void SetEmailTags(const Aws::Vector< MessageTag > &value)
SendEmailRequest & WithReplyToAddresses(const Aws::Vector< Aws::String > &value)
SendEmailRequest & AddReplyToAddresses(const char *value)
SendEmailRequest & WithContent(const EmailContent &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector