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>
45 template <
typename BodyT = Aws::String>
47 m_bodyHasBeenSet =
true;
48 m_body = std::forward<BodyT>(value);
50 template <
typename BodyT = Aws::String>
52 SetBody(std::forward<BodyT>(value));
64 template <
typename FeedbackForwardingAddressT = Aws::String>
66 m_feedbackForwardingAddressHasBeenSet =
true;
67 m_feedbackForwardingAddress = std::forward<FeedbackForwardingAddressT>(value);
69 template <
typename FeedbackForwardingAddressT = Aws::String>
83 template <
typename FromAddressT = Aws::String>
85 m_fromAddressHasBeenSet =
true;
86 m_fromAddress = std::forward<FromAddressT>(value);
88 template <
typename FromAddressT = Aws::String>
101 template <
typename RawEmailT = RawEmail>
103 m_rawEmailHasBeenSet =
true;
104 m_rawEmail = std::forward<RawEmailT>(value);
106 template <
typename RawEmailT = RawEmail>
120 template <
typename ReplyToAddressesT = Aws::Vector<Aws::String>>
122 m_replyToAddressesHasBeenSet =
true;
123 m_replyToAddresses = std::forward<ReplyToAddressesT>(value);
125 template <
typename ReplyToAddressesT = Aws::Vector<Aws::String>>
130 template <
typename ReplyToAddressesT = Aws::String>
132 m_replyToAddressesHasBeenSet =
true;
133 m_replyToAddresses.emplace_back(std::forward<ReplyToAddressesT>(value));
144 template <
typename SimpleEmailT = SimpleEmail>
146 m_simpleEmailHasBeenSet =
true;
147 m_simpleEmail = std::forward<SimpleEmailT>(value);
149 template <
typename SimpleEmailT = SimpleEmail>
163 template <
typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
165 m_substitutionsHasBeenSet =
true;
166 m_substitutions = std::forward<SubstitutionsT>(value);
168 template <
typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
173 template <
typename SubstitutionsKeyT = Aws::String,
typename SubstitutionsValueT = Aws::Vector<Aws::String>>
175 m_substitutionsHasBeenSet =
true;
176 m_substitutions.emplace(std::forward<SubstitutionsKeyT>(key), std::forward<SubstitutionsValueT>(value));
182 bool m_bodyHasBeenSet =
false;
185 bool m_feedbackForwardingAddressHasBeenSet =
false;
188 bool m_fromAddressHasBeenSet =
false;
191 bool m_rawEmailHasBeenSet =
false;
194 bool m_replyToAddressesHasBeenSet =
false;
197 bool m_simpleEmailHasBeenSet =
false;
200 bool m_substitutionsHasBeenSet =
false;
bool SubstitutionsHasBeenSet() const
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
void SetBody(BodyT &&value)
EmailMessage & WithReplyToAddresses(ReplyToAddressesT &&value)
bool BodyHasBeenSet() const
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)
bool RawEmailHasBeenSet() const
const Aws::Vector< Aws::String > & GetReplyToAddresses() const
bool FromAddressHasBeenSet() const
const SimpleEmail & GetSimpleEmail() const
bool ReplyToAddressesHasBeenSet() const
const Aws::String & GetBody() const
bool SimpleEmailHasBeenSet() 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