7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pinpoint/model/RawEmail.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/pinpoint/model/SimpleEmail.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
51 template<
typename BodyT = Aws::String>
52 void SetBody(BodyT&& value) { m_bodyHasBeenSet =
true; m_body = std::forward<BodyT>(value); }
53 template<
typename BodyT = Aws::String>
64 template<
typename FeedbackForwardingAddressT = Aws::String>
65 void SetFeedbackForwardingAddress(FeedbackForwardingAddressT&& value) { m_feedbackForwardingAddressHasBeenSet =
true; m_feedbackForwardingAddress = std::forward<FeedbackForwardingAddressT>(value); }
66 template<
typename FeedbackForwardingAddressT = Aws::String>
77 template<
typename FromAddressT = Aws::String>
78 void SetFromAddress(FromAddressT&& value) { m_fromAddressHasBeenSet =
true; m_fromAddress = std::forward<FromAddressT>(value); }
79 template<
typename FromAddressT = Aws::String>
89 template<
typename RawEmailT = RawEmail>
90 void SetRawEmail(RawEmailT&& value) { m_rawEmailHasBeenSet =
true; m_rawEmail = std::forward<RawEmailT>(value); }
91 template<
typename RawEmailT = RawEmail>
102 template<
typename ReplyToAddressesT = Aws::Vector<Aws::String>>
103 void SetReplyToAddresses(ReplyToAddressesT&& value) { m_replyToAddressesHasBeenSet =
true; m_replyToAddresses = std::forward<ReplyToAddressesT>(value); }
104 template<
typename ReplyToAddressesT = Aws::Vector<Aws::String>>
106 template<
typename ReplyToAddressesT = Aws::String>
107 EmailMessage&
AddReplyToAddresses(ReplyToAddressesT&& value) { m_replyToAddressesHasBeenSet =
true; m_replyToAddresses.emplace_back(std::forward<ReplyToAddressesT>(value));
return *
this; }
116 template<
typename SimpleEmailT = SimpleEmail>
117 void SetSimpleEmail(SimpleEmailT&& value) { m_simpleEmailHasBeenSet =
true; m_simpleEmail = std::forward<SimpleEmailT>(value); }
118 template<
typename SimpleEmailT = SimpleEmail>
129 template<
typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
130 void SetSubstitutions(SubstitutionsT&& value) { m_substitutionsHasBeenSet =
true; m_substitutions = std::forward<SubstitutionsT>(value); }
131 template<
typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
133 template<
typename SubstitutionsKeyT = Aws::String,
typename SubstitutionsValueT = Aws::Vector<Aws::String>>
135 m_substitutionsHasBeenSet =
true; m_substitutions.emplace(std::forward<SubstitutionsKeyT>(key), std::forward<SubstitutionsValueT>(value));
return *
this;
141 bool m_bodyHasBeenSet =
false;
144 bool m_feedbackForwardingAddressHasBeenSet =
false;
147 bool m_fromAddressHasBeenSet =
false;
150 bool m_rawEmailHasBeenSet =
false;
153 bool m_replyToAddressesHasBeenSet =
false;
156 bool m_simpleEmailHasBeenSet =
false;
159 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