AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SendBulkEmailRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/sesv2/model/BulkEmailContent.h>
12#include <aws/sesv2/model/MessageTag.h>
13#include <aws/sesv2/model/BulkEmailEntry.h>
14#include <utility>
15
16namespace Aws
17{
18namespace SESV2
19{
20namespace Model
21{
22
32 {
33 public:
34 AWS_SESV2_API SendBulkEmailRequest();
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 "SendBulkEmail"; }
41
42 AWS_SESV2_API Aws::String SerializePayload() const override;
43
44
46
50 inline const Aws::String& GetFromEmailAddress() const{ return m_fromEmailAddress; }
51 inline bool FromEmailAddressHasBeenSet() const { return m_fromEmailAddressHasBeenSet; }
52 inline void SetFromEmailAddress(const Aws::String& value) { m_fromEmailAddressHasBeenSet = true; m_fromEmailAddress = value; }
53 inline void SetFromEmailAddress(Aws::String&& value) { m_fromEmailAddressHasBeenSet = true; m_fromEmailAddress = std::move(value); }
54 inline void SetFromEmailAddress(const char* value) { m_fromEmailAddressHasBeenSet = true; m_fromEmailAddress.assign(value); }
55 inline SendBulkEmailRequest& WithFromEmailAddress(const Aws::String& value) { SetFromEmailAddress(value); return *this;}
56 inline SendBulkEmailRequest& WithFromEmailAddress(Aws::String&& value) { SetFromEmailAddress(std::move(value)); return *this;}
57 inline SendBulkEmailRequest& WithFromEmailAddress(const char* value) { SetFromEmailAddress(value); return *this;}
59
61
75 inline const Aws::String& GetFromEmailAddressIdentityArn() const{ return m_fromEmailAddressIdentityArn; }
76 inline bool FromEmailAddressIdentityArnHasBeenSet() const { return m_fromEmailAddressIdentityArnHasBeenSet; }
77 inline void SetFromEmailAddressIdentityArn(const Aws::String& value) { m_fromEmailAddressIdentityArnHasBeenSet = true; m_fromEmailAddressIdentityArn = value; }
78 inline void SetFromEmailAddressIdentityArn(Aws::String&& value) { m_fromEmailAddressIdentityArnHasBeenSet = true; m_fromEmailAddressIdentityArn = std::move(value); }
79 inline void SetFromEmailAddressIdentityArn(const char* value) { m_fromEmailAddressIdentityArnHasBeenSet = true; m_fromEmailAddressIdentityArn.assign(value); }
84
86
90 inline const Aws::Vector<Aws::String>& GetReplyToAddresses() const{ return m_replyToAddresses; }
91 inline bool ReplyToAddressesHasBeenSet() const { return m_replyToAddressesHasBeenSet; }
92 inline void SetReplyToAddresses(const Aws::Vector<Aws::String>& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses = value; }
93 inline void SetReplyToAddresses(Aws::Vector<Aws::String>&& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses = std::move(value); }
96 inline SendBulkEmailRequest& AddReplyToAddresses(const Aws::String& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(value); return *this; }
97 inline SendBulkEmailRequest& AddReplyToAddresses(Aws::String&& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(std::move(value)); return *this; }
98 inline SendBulkEmailRequest& AddReplyToAddresses(const char* value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(value); return *this; }
100
102
106 inline const Aws::String& GetFeedbackForwardingEmailAddress() const{ return m_feedbackForwardingEmailAddress; }
107 inline bool FeedbackForwardingEmailAddressHasBeenSet() const { return m_feedbackForwardingEmailAddressHasBeenSet; }
108 inline void SetFeedbackForwardingEmailAddress(const Aws::String& value) { m_feedbackForwardingEmailAddressHasBeenSet = true; m_feedbackForwardingEmailAddress = value; }
109 inline void SetFeedbackForwardingEmailAddress(Aws::String&& value) { m_feedbackForwardingEmailAddressHasBeenSet = true; m_feedbackForwardingEmailAddress = std::move(value); }
110 inline void SetFeedbackForwardingEmailAddress(const char* value) { m_feedbackForwardingEmailAddressHasBeenSet = true; m_feedbackForwardingEmailAddress.assign(value); }
115
117
132 inline const Aws::String& GetFeedbackForwardingEmailAddressIdentityArn() const{ return m_feedbackForwardingEmailAddressIdentityArn; }
133 inline bool FeedbackForwardingEmailAddressIdentityArnHasBeenSet() const { return m_feedbackForwardingEmailAddressIdentityArnHasBeenSet; }
134 inline void SetFeedbackForwardingEmailAddressIdentityArn(const Aws::String& value) { m_feedbackForwardingEmailAddressIdentityArnHasBeenSet = true; m_feedbackForwardingEmailAddressIdentityArn = value; }
135 inline void SetFeedbackForwardingEmailAddressIdentityArn(Aws::String&& value) { m_feedbackForwardingEmailAddressIdentityArnHasBeenSet = true; m_feedbackForwardingEmailAddressIdentityArn = std::move(value); }
136 inline void SetFeedbackForwardingEmailAddressIdentityArn(const char* value) { m_feedbackForwardingEmailAddressIdentityArnHasBeenSet = true; m_feedbackForwardingEmailAddressIdentityArn.assign(value); }
141
143
149 inline const Aws::Vector<MessageTag>& GetDefaultEmailTags() const{ return m_defaultEmailTags; }
150 inline bool DefaultEmailTagsHasBeenSet() const { return m_defaultEmailTagsHasBeenSet; }
151 inline void SetDefaultEmailTags(const Aws::Vector<MessageTag>& value) { m_defaultEmailTagsHasBeenSet = true; m_defaultEmailTags = value; }
152 inline void SetDefaultEmailTags(Aws::Vector<MessageTag>&& value) { m_defaultEmailTagsHasBeenSet = true; m_defaultEmailTags = std::move(value); }
155 inline SendBulkEmailRequest& AddDefaultEmailTags(const MessageTag& value) { m_defaultEmailTagsHasBeenSet = true; m_defaultEmailTags.push_back(value); return *this; }
156 inline SendBulkEmailRequest& AddDefaultEmailTags(MessageTag&& value) { m_defaultEmailTagsHasBeenSet = true; m_defaultEmailTags.push_back(std::move(value)); return *this; }
158
160
164 inline const BulkEmailContent& GetDefaultContent() const{ return m_defaultContent; }
165 inline bool DefaultContentHasBeenSet() const { return m_defaultContentHasBeenSet; }
166 inline void SetDefaultContent(const BulkEmailContent& value) { m_defaultContentHasBeenSet = true; m_defaultContent = value; }
167 inline void SetDefaultContent(BulkEmailContent&& value) { m_defaultContentHasBeenSet = true; m_defaultContent = std::move(value); }
168 inline SendBulkEmailRequest& WithDefaultContent(const BulkEmailContent& value) { SetDefaultContent(value); return *this;}
169 inline SendBulkEmailRequest& WithDefaultContent(BulkEmailContent&& value) { SetDefaultContent(std::move(value)); return *this;}
171
173
176 inline const Aws::Vector<BulkEmailEntry>& GetBulkEmailEntries() const{ return m_bulkEmailEntries; }
177 inline bool BulkEmailEntriesHasBeenSet() const { return m_bulkEmailEntriesHasBeenSet; }
178 inline void SetBulkEmailEntries(const Aws::Vector<BulkEmailEntry>& value) { m_bulkEmailEntriesHasBeenSet = true; m_bulkEmailEntries = value; }
179 inline void SetBulkEmailEntries(Aws::Vector<BulkEmailEntry>&& value) { m_bulkEmailEntriesHasBeenSet = true; m_bulkEmailEntries = std::move(value); }
182 inline SendBulkEmailRequest& AddBulkEmailEntries(const BulkEmailEntry& value) { m_bulkEmailEntriesHasBeenSet = true; m_bulkEmailEntries.push_back(value); return *this; }
183 inline SendBulkEmailRequest& AddBulkEmailEntries(BulkEmailEntry&& value) { m_bulkEmailEntriesHasBeenSet = true; m_bulkEmailEntries.push_back(std::move(value)); return *this; }
185
187
190 inline const Aws::String& GetConfigurationSetName() const{ return m_configurationSetName; }
191 inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
192 inline void SetConfigurationSetName(const Aws::String& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = value; }
193 inline void SetConfigurationSetName(Aws::String&& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::move(value); }
194 inline void SetConfigurationSetName(const char* value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName.assign(value); }
196 inline SendBulkEmailRequest& WithConfigurationSetName(Aws::String&& value) { SetConfigurationSetName(std::move(value)); return *this;}
197 inline SendBulkEmailRequest& WithConfigurationSetName(const char* value) { SetConfigurationSetName(value); return *this;}
199 private:
200
201 Aws::String m_fromEmailAddress;
202 bool m_fromEmailAddressHasBeenSet = false;
203
204 Aws::String m_fromEmailAddressIdentityArn;
205 bool m_fromEmailAddressIdentityArnHasBeenSet = false;
206
207 Aws::Vector<Aws::String> m_replyToAddresses;
208 bool m_replyToAddressesHasBeenSet = false;
209
210 Aws::String m_feedbackForwardingEmailAddress;
211 bool m_feedbackForwardingEmailAddressHasBeenSet = false;
212
213 Aws::String m_feedbackForwardingEmailAddressIdentityArn;
214 bool m_feedbackForwardingEmailAddressIdentityArnHasBeenSet = false;
215
216 Aws::Vector<MessageTag> m_defaultEmailTags;
217 bool m_defaultEmailTagsHasBeenSet = false;
218
219 BulkEmailContent m_defaultContent;
220 bool m_defaultContentHasBeenSet = false;
221
222 Aws::Vector<BulkEmailEntry> m_bulkEmailEntries;
223 bool m_bulkEmailEntriesHasBeenSet = false;
224
225 Aws::String m_configurationSetName;
226 bool m_configurationSetNameHasBeenSet = false;
227 };
228
229} // namespace Model
230} // namespace SESV2
231} // namespace Aws
void SetFromEmailAddressIdentityArn(const Aws::String &value)
const Aws::String & GetFeedbackForwardingEmailAddress() const
SendBulkEmailRequest & WithConfigurationSetName(Aws::String &&value)
SendBulkEmailRequest & WithDefaultEmailTags(Aws::Vector< MessageTag > &&value)
SendBulkEmailRequest & WithFromEmailAddress(Aws::String &&value)
const Aws::String & GetFromEmailAddressIdentityArn() const
SendBulkEmailRequest & WithFeedbackForwardingEmailAddress(Aws::String &&value)
void SetBulkEmailEntries(const Aws::Vector< BulkEmailEntry > &value)
SendBulkEmailRequest & WithFeedbackForwardingEmailAddressIdentityArn(const char *value)
void SetFromEmailAddress(const Aws::String &value)
SendBulkEmailRequest & AddDefaultEmailTags(MessageTag &&value)
SendBulkEmailRequest & WithFromEmailAddress(const char *value)
SendBulkEmailRequest & WithDefaultContent(const BulkEmailContent &value)
SendBulkEmailRequest & WithFromEmailAddressIdentityArn(const Aws::String &value)
void SetFeedbackForwardingEmailAddressIdentityArn(Aws::String &&value)
void SetReplyToAddresses(const Aws::Vector< Aws::String > &value)
SendBulkEmailRequest & WithReplyToAddresses(const Aws::Vector< Aws::String > &value)
SendBulkEmailRequest & AddReplyToAddresses(Aws::String &&value)
const Aws::String & GetFeedbackForwardingEmailAddressIdentityArn() const
void SetFeedbackForwardingEmailAddress(const Aws::String &value)
SendBulkEmailRequest & AddDefaultEmailTags(const MessageTag &value)
SendBulkEmailRequest & WithConfigurationSetName(const char *value)
void SetFromEmailAddressIdentityArn(Aws::String &&value)
void SetReplyToAddresses(Aws::Vector< Aws::String > &&value)
const Aws::Vector< MessageTag > & GetDefaultEmailTags() const
SendBulkEmailRequest & WithDefaultEmailTags(const Aws::Vector< MessageTag > &value)
SendBulkEmailRequest & WithFeedbackForwardingEmailAddress(const Aws::String &value)
void SetDefaultContent(BulkEmailContent &&value)
SendBulkEmailRequest & WithFromEmailAddressIdentityArn(Aws::String &&value)
SendBulkEmailRequest & AddBulkEmailEntries(const BulkEmailEntry &value)
SendBulkEmailRequest & WithBulkEmailEntries(const Aws::Vector< BulkEmailEntry > &value)
SendBulkEmailRequest & WithConfigurationSetName(const Aws::String &value)
SendBulkEmailRequest & AddBulkEmailEntries(BulkEmailEntry &&value)
SendBulkEmailRequest & AddReplyToAddresses(const char *value)
void SetDefaultContent(const BulkEmailContent &value)
SendBulkEmailRequest & WithFeedbackForwardingEmailAddressIdentityArn(const Aws::String &value)
SendBulkEmailRequest & WithReplyToAddresses(Aws::Vector< Aws::String > &&value)
void SetFeedbackForwardingEmailAddressIdentityArn(const Aws::String &value)
void SetBulkEmailEntries(Aws::Vector< BulkEmailEntry > &&value)
SendBulkEmailRequest & AddReplyToAddresses(const Aws::String &value)
const Aws::Vector< Aws::String > & GetReplyToAddresses() const
void SetDefaultEmailTags(const Aws::Vector< MessageTag > &value)
SendBulkEmailRequest & WithFromEmailAddressIdentityArn(const char *value)
void SetDefaultEmailTags(Aws::Vector< MessageTag > &&value)
void SetFeedbackForwardingEmailAddress(Aws::String &&value)
const Aws::String & GetConfigurationSetName() const
void SetFeedbackForwardingEmailAddressIdentityArn(const char *value)
SendBulkEmailRequest & WithFeedbackForwardingEmailAddress(const char *value)
SendBulkEmailRequest & WithFromEmailAddress(const Aws::String &value)
AWS_SESV2_API Aws::String SerializePayload() const override
const BulkEmailContent & GetDefaultContent() const
virtual const char * GetServiceRequestName() const override
SendBulkEmailRequest & WithBulkEmailEntries(Aws::Vector< BulkEmailEntry > &&value)
void SetConfigurationSetName(Aws::String &&value)
void SetFeedbackForwardingEmailAddress(const char *value)
SendBulkEmailRequest & WithFeedbackForwardingEmailAddressIdentityArn(Aws::String &&value)
SendBulkEmailRequest & WithDefaultContent(BulkEmailContent &&value)
const Aws::String & GetFromEmailAddress() const
void SetConfigurationSetName(const Aws::String &value)
const Aws::Vector< BulkEmailEntry > & GetBulkEmailEntries() const
void SetFromEmailAddressIdentityArn(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector