AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
EmailMessage.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/pinpoint/Pinpoint_EXPORTS.h>
11#include <aws/pinpoint/model/RawEmail.h>
12#include <aws/pinpoint/model/SimpleEmail.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Pinpoint {
24namespace Model {
25
33 public:
34 AWS_PINPOINT_API EmailMessage() = default;
35 AWS_PINPOINT_API EmailMessage(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetBody() const { return m_body; }
44 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
45 template <typename BodyT = Aws::String>
46 void SetBody(BodyT&& value) {
47 m_bodyHasBeenSet = true;
48 m_body = std::forward<BodyT>(value);
49 }
50 template <typename BodyT = Aws::String>
51 EmailMessage& WithBody(BodyT&& value) {
52 SetBody(std::forward<BodyT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetFeedbackForwardingAddress() const { return m_feedbackForwardingAddress; }
63 inline bool FeedbackForwardingAddressHasBeenSet() const { return m_feedbackForwardingAddressHasBeenSet; }
64 template <typename FeedbackForwardingAddressT = Aws::String>
65 void SetFeedbackForwardingAddress(FeedbackForwardingAddressT&& value) {
66 m_feedbackForwardingAddressHasBeenSet = true;
67 m_feedbackForwardingAddress = std::forward<FeedbackForwardingAddressT>(value);
68 }
69 template <typename FeedbackForwardingAddressT = Aws::String>
70 EmailMessage& WithFeedbackForwardingAddress(FeedbackForwardingAddressT&& value) {
71 SetFeedbackForwardingAddress(std::forward<FeedbackForwardingAddressT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetFromAddress() const { return m_fromAddress; }
82 inline bool FromAddressHasBeenSet() const { return m_fromAddressHasBeenSet; }
83 template <typename FromAddressT = Aws::String>
84 void SetFromAddress(FromAddressT&& value) {
85 m_fromAddressHasBeenSet = true;
86 m_fromAddress = std::forward<FromAddressT>(value);
87 }
88 template <typename FromAddressT = Aws::String>
89 EmailMessage& WithFromAddress(FromAddressT&& value) {
90 SetFromAddress(std::forward<FromAddressT>(value));
91 return *this;
92 }
94
96
99 inline const RawEmail& GetRawEmail() const { return m_rawEmail; }
100 inline bool RawEmailHasBeenSet() const { return m_rawEmailHasBeenSet; }
101 template <typename RawEmailT = RawEmail>
102 void SetRawEmail(RawEmailT&& value) {
103 m_rawEmailHasBeenSet = true;
104 m_rawEmail = std::forward<RawEmailT>(value);
105 }
106 template <typename RawEmailT = RawEmail>
107 EmailMessage& WithRawEmail(RawEmailT&& value) {
108 SetRawEmail(std::forward<RawEmailT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::Vector<Aws::String>& GetReplyToAddresses() const { return m_replyToAddresses; }
119 inline bool ReplyToAddressesHasBeenSet() const { return m_replyToAddressesHasBeenSet; }
120 template <typename ReplyToAddressesT = Aws::Vector<Aws::String>>
121 void SetReplyToAddresses(ReplyToAddressesT&& value) {
122 m_replyToAddressesHasBeenSet = true;
123 m_replyToAddresses = std::forward<ReplyToAddressesT>(value);
124 }
125 template <typename ReplyToAddressesT = Aws::Vector<Aws::String>>
126 EmailMessage& WithReplyToAddresses(ReplyToAddressesT&& value) {
127 SetReplyToAddresses(std::forward<ReplyToAddressesT>(value));
128 return *this;
129 }
130 template <typename ReplyToAddressesT = Aws::String>
131 EmailMessage& AddReplyToAddresses(ReplyToAddressesT&& value) {
132 m_replyToAddressesHasBeenSet = true;
133 m_replyToAddresses.emplace_back(std::forward<ReplyToAddressesT>(value));
134 return *this;
135 }
137
139
142 inline const SimpleEmail& GetSimpleEmail() const { return m_simpleEmail; }
143 inline bool SimpleEmailHasBeenSet() const { return m_simpleEmailHasBeenSet; }
144 template <typename SimpleEmailT = SimpleEmail>
145 void SetSimpleEmail(SimpleEmailT&& value) {
146 m_simpleEmailHasBeenSet = true;
147 m_simpleEmail = std::forward<SimpleEmailT>(value);
148 }
149 template <typename SimpleEmailT = SimpleEmail>
150 EmailMessage& WithSimpleEmail(SimpleEmailT&& value) {
151 SetSimpleEmail(std::forward<SimpleEmailT>(value));
152 return *this;
153 }
155
157
161 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetSubstitutions() const { return m_substitutions; }
162 inline bool SubstitutionsHasBeenSet() const { return m_substitutionsHasBeenSet; }
163 template <typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
164 void SetSubstitutions(SubstitutionsT&& value) {
165 m_substitutionsHasBeenSet = true;
166 m_substitutions = std::forward<SubstitutionsT>(value);
167 }
168 template <typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
169 EmailMessage& WithSubstitutions(SubstitutionsT&& value) {
170 SetSubstitutions(std::forward<SubstitutionsT>(value));
171 return *this;
172 }
173 template <typename SubstitutionsKeyT = Aws::String, typename SubstitutionsValueT = Aws::Vector<Aws::String>>
174 EmailMessage& AddSubstitutions(SubstitutionsKeyT&& key, SubstitutionsValueT&& value) {
175 m_substitutionsHasBeenSet = true;
176 m_substitutions.emplace(std::forward<SubstitutionsKeyT>(key), std::forward<SubstitutionsValueT>(value));
177 return *this;
178 }
180 private:
181 Aws::String m_body;
182 bool m_bodyHasBeenSet = false;
183
184 Aws::String m_feedbackForwardingAddress;
185 bool m_feedbackForwardingAddressHasBeenSet = false;
186
187 Aws::String m_fromAddress;
188 bool m_fromAddressHasBeenSet = false;
189
190 RawEmail m_rawEmail;
191 bool m_rawEmailHasBeenSet = false;
192
193 Aws::Vector<Aws::String> m_replyToAddresses;
194 bool m_replyToAddressesHasBeenSet = false;
195
196 SimpleEmail m_simpleEmail;
197 bool m_simpleEmailHasBeenSet = false;
198
200 bool m_substitutionsHasBeenSet = false;
201};
202
203} // namespace Model
204} // namespace Pinpoint
205} // namespace Aws
void SetFeedbackForwardingAddress(FeedbackForwardingAddressT &&value)
EmailMessage & WithFromAddress(FromAddressT &&value)
EmailMessage & AddSubstitutions(SubstitutionsKeyT &&key, SubstitutionsValueT &&value)
EmailMessage & WithSubstitutions(SubstitutionsT &&value)
void SetFromAddress(FromAddressT &&value)
EmailMessage & WithBody(BodyT &&value)
AWS_PINPOINT_API EmailMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API EmailMessage()=default
EmailMessage & AddReplyToAddresses(ReplyToAddressesT &&value)
const Aws::String & GetFromAddress() const
EmailMessage & WithReplyToAddresses(ReplyToAddressesT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSubstitutions(SubstitutionsT &&value)
void SetSimpleEmail(SimpleEmailT &&value)
EmailMessage & WithSimpleEmail(SimpleEmailT &&value)
bool FeedbackForwardingAddressHasBeenSet() const
EmailMessage & WithRawEmail(RawEmailT &&value)
const RawEmail & GetRawEmail() const
EmailMessage & WithFeedbackForwardingAddress(FeedbackForwardingAddressT &&value)
void SetRawEmail(RawEmailT &&value)
const Aws::Vector< Aws::String > & GetReplyToAddresses() const
const SimpleEmail & GetSimpleEmail() const
const Aws::String & GetBody() const
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetSubstitutions() const
AWS_PINPOINT_API EmailMessage(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFeedbackForwardingAddress() const
void SetReplyToAddresses(ReplyToAddressesT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue