AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
EmailMessage.h
1
6#pragma once
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>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Pinpoint
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_PINPOINT_API EmailMessage() = default;
40 AWS_PINPOINT_API EmailMessage(Aws::Utils::Json::JsonView jsonValue);
42 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetBody() const { return m_body; }
50 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
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>
54 EmailMessage& WithBody(BodyT&& value) { SetBody(std::forward<BodyT>(value)); return *this;}
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) { m_feedbackForwardingAddressHasBeenSet = true; m_feedbackForwardingAddress = std::forward<FeedbackForwardingAddressT>(value); }
66 template<typename FeedbackForwardingAddressT = Aws::String>
67 EmailMessage& WithFeedbackForwardingAddress(FeedbackForwardingAddressT&& value) { SetFeedbackForwardingAddress(std::forward<FeedbackForwardingAddressT>(value)); return *this;}
69
71
75 inline const Aws::String& GetFromAddress() const { return m_fromAddress; }
76 inline bool FromAddressHasBeenSet() const { return m_fromAddressHasBeenSet; }
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>
80 EmailMessage& WithFromAddress(FromAddressT&& value) { SetFromAddress(std::forward<FromAddressT>(value)); return *this;}
82
84
87 inline const RawEmail& GetRawEmail() const { return m_rawEmail; }
88 inline bool RawEmailHasBeenSet() const { return m_rawEmailHasBeenSet; }
89 template<typename RawEmailT = RawEmail>
90 void SetRawEmail(RawEmailT&& value) { m_rawEmailHasBeenSet = true; m_rawEmail = std::forward<RawEmailT>(value); }
91 template<typename RawEmailT = RawEmail>
92 EmailMessage& WithRawEmail(RawEmailT&& value) { SetRawEmail(std::forward<RawEmailT>(value)); return *this;}
94
96
100 inline const Aws::Vector<Aws::String>& GetReplyToAddresses() const { return m_replyToAddresses; }
101 inline bool ReplyToAddressesHasBeenSet() const { return m_replyToAddressesHasBeenSet; }
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>>
105 EmailMessage& WithReplyToAddresses(ReplyToAddressesT&& value) { SetReplyToAddresses(std::forward<ReplyToAddressesT>(value)); return *this;}
106 template<typename ReplyToAddressesT = Aws::String>
107 EmailMessage& AddReplyToAddresses(ReplyToAddressesT&& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.emplace_back(std::forward<ReplyToAddressesT>(value)); return *this; }
109
111
114 inline const SimpleEmail& GetSimpleEmail() const { return m_simpleEmail; }
115 inline bool SimpleEmailHasBeenSet() const { return m_simpleEmailHasBeenSet; }
116 template<typename SimpleEmailT = SimpleEmail>
117 void SetSimpleEmail(SimpleEmailT&& value) { m_simpleEmailHasBeenSet = true; m_simpleEmail = std::forward<SimpleEmailT>(value); }
118 template<typename SimpleEmailT = SimpleEmail>
119 EmailMessage& WithSimpleEmail(SimpleEmailT&& value) { SetSimpleEmail(std::forward<SimpleEmailT>(value)); return *this;}
121
123
127 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetSubstitutions() const { return m_substitutions; }
128 inline bool SubstitutionsHasBeenSet() const { return m_substitutionsHasBeenSet; }
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>>>
132 EmailMessage& WithSubstitutions(SubstitutionsT&& value) { SetSubstitutions(std::forward<SubstitutionsT>(value)); return *this;}
133 template<typename SubstitutionsKeyT = Aws::String, typename SubstitutionsValueT = Aws::Vector<Aws::String>>
134 EmailMessage& AddSubstitutions(SubstitutionsKeyT&& key, SubstitutionsValueT&& value) {
135 m_substitutionsHasBeenSet = true; m_substitutions.emplace(std::forward<SubstitutionsKeyT>(key), std::forward<SubstitutionsValueT>(value)); return *this;
136 }
138 private:
139
140 Aws::String m_body;
141 bool m_bodyHasBeenSet = false;
142
143 Aws::String m_feedbackForwardingAddress;
144 bool m_feedbackForwardingAddressHasBeenSet = false;
145
146 Aws::String m_fromAddress;
147 bool m_fromAddressHasBeenSet = false;
148
149 RawEmail m_rawEmail;
150 bool m_rawEmailHasBeenSet = false;
151
152 Aws::Vector<Aws::String> m_replyToAddresses;
153 bool m_replyToAddressesHasBeenSet = false;
154
155 SimpleEmail m_simpleEmail;
156 bool m_simpleEmailHasBeenSet = false;
157
159 bool m_substitutionsHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace Pinpoint
164} // 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