AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBody(const Aws::String& value) { m_bodyHasBeenSet = true; m_body = value; }
52 inline void SetBody(Aws::String&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); }
53 inline void SetBody(const char* value) { m_bodyHasBeenSet = true; m_body.assign(value); }
54 inline EmailMessage& WithBody(const Aws::String& value) { SetBody(value); return *this;}
55 inline EmailMessage& WithBody(Aws::String&& value) { SetBody(std::move(value)); return *this;}
56 inline EmailMessage& WithBody(const char* value) { SetBody(value); return *this;}
58
60
64 inline const Aws::String& GetFeedbackForwardingAddress() const{ return m_feedbackForwardingAddress; }
65 inline bool FeedbackForwardingAddressHasBeenSet() const { return m_feedbackForwardingAddressHasBeenSet; }
66 inline void SetFeedbackForwardingAddress(const Aws::String& value) { m_feedbackForwardingAddressHasBeenSet = true; m_feedbackForwardingAddress = value; }
67 inline void SetFeedbackForwardingAddress(Aws::String&& value) { m_feedbackForwardingAddressHasBeenSet = true; m_feedbackForwardingAddress = std::move(value); }
68 inline void SetFeedbackForwardingAddress(const char* value) { m_feedbackForwardingAddressHasBeenSet = true; m_feedbackForwardingAddress.assign(value); }
70 inline EmailMessage& WithFeedbackForwardingAddress(Aws::String&& value) { SetFeedbackForwardingAddress(std::move(value)); return *this;}
71 inline EmailMessage& WithFeedbackForwardingAddress(const char* value) { SetFeedbackForwardingAddress(value); return *this;}
73
75
79 inline const Aws::String& GetFromAddress() const{ return m_fromAddress; }
80 inline bool FromAddressHasBeenSet() const { return m_fromAddressHasBeenSet; }
81 inline void SetFromAddress(const Aws::String& value) { m_fromAddressHasBeenSet = true; m_fromAddress = value; }
82 inline void SetFromAddress(Aws::String&& value) { m_fromAddressHasBeenSet = true; m_fromAddress = std::move(value); }
83 inline void SetFromAddress(const char* value) { m_fromAddressHasBeenSet = true; m_fromAddress.assign(value); }
84 inline EmailMessage& WithFromAddress(const Aws::String& value) { SetFromAddress(value); return *this;}
85 inline EmailMessage& WithFromAddress(Aws::String&& value) { SetFromAddress(std::move(value)); return *this;}
86 inline EmailMessage& WithFromAddress(const char* value) { SetFromAddress(value); return *this;}
88
90
93 inline const RawEmail& GetRawEmail() const{ return m_rawEmail; }
94 inline bool RawEmailHasBeenSet() const { return m_rawEmailHasBeenSet; }
95 inline void SetRawEmail(const RawEmail& value) { m_rawEmailHasBeenSet = true; m_rawEmail = value; }
96 inline void SetRawEmail(RawEmail&& value) { m_rawEmailHasBeenSet = true; m_rawEmail = std::move(value); }
97 inline EmailMessage& WithRawEmail(const RawEmail& value) { SetRawEmail(value); return *this;}
98 inline EmailMessage& WithRawEmail(RawEmail&& value) { SetRawEmail(std::move(value)); return *this;}
100
102
106 inline const Aws::Vector<Aws::String>& GetReplyToAddresses() const{ return m_replyToAddresses; }
107 inline bool ReplyToAddressesHasBeenSet() const { return m_replyToAddressesHasBeenSet; }
108 inline void SetReplyToAddresses(const Aws::Vector<Aws::String>& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses = value; }
109 inline void SetReplyToAddresses(Aws::Vector<Aws::String>&& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses = std::move(value); }
111 inline EmailMessage& WithReplyToAddresses(Aws::Vector<Aws::String>&& value) { SetReplyToAddresses(std::move(value)); return *this;}
112 inline EmailMessage& AddReplyToAddresses(const Aws::String& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(value); return *this; }
113 inline EmailMessage& AddReplyToAddresses(Aws::String&& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(std::move(value)); return *this; }
114 inline EmailMessage& AddReplyToAddresses(const char* value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(value); return *this; }
116
118
121 inline const SimpleEmail& GetSimpleEmail() const{ return m_simpleEmail; }
122 inline bool SimpleEmailHasBeenSet() const { return m_simpleEmailHasBeenSet; }
123 inline void SetSimpleEmail(const SimpleEmail& value) { m_simpleEmailHasBeenSet = true; m_simpleEmail = value; }
124 inline void SetSimpleEmail(SimpleEmail&& value) { m_simpleEmailHasBeenSet = true; m_simpleEmail = std::move(value); }
125 inline EmailMessage& WithSimpleEmail(const SimpleEmail& value) { SetSimpleEmail(value); return *this;}
126 inline EmailMessage& WithSimpleEmail(SimpleEmail&& value) { SetSimpleEmail(std::move(value)); return *this;}
128
130
134 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetSubstitutions() const{ return m_substitutions; }
135 inline bool SubstitutionsHasBeenSet() const { return m_substitutionsHasBeenSet; }
136 inline void SetSubstitutions(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_substitutionsHasBeenSet = true; m_substitutions = value; }
137 inline void SetSubstitutions(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_substitutionsHasBeenSet = true; m_substitutions = std::move(value); }
140 inline EmailMessage& AddSubstitutions(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, value); return *this; }
141 inline EmailMessage& AddSubstitutions(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(std::move(key), value); return *this; }
142 inline EmailMessage& AddSubstitutions(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, std::move(value)); return *this; }
143 inline EmailMessage& AddSubstitutions(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(std::move(key), std::move(value)); return *this; }
144 inline EmailMessage& AddSubstitutions(const char* key, Aws::Vector<Aws::String>&& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, std::move(value)); return *this; }
145 inline EmailMessage& AddSubstitutions(const char* key, const Aws::Vector<Aws::String>& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, value); return *this; }
147 private:
148
149 Aws::String m_body;
150 bool m_bodyHasBeenSet = false;
151
152 Aws::String m_feedbackForwardingAddress;
153 bool m_feedbackForwardingAddressHasBeenSet = false;
154
155 Aws::String m_fromAddress;
156 bool m_fromAddressHasBeenSet = false;
157
158 RawEmail m_rawEmail;
159 bool m_rawEmailHasBeenSet = false;
160
161 Aws::Vector<Aws::String> m_replyToAddresses;
162 bool m_replyToAddressesHasBeenSet = false;
163
164 SimpleEmail m_simpleEmail;
165 bool m_simpleEmailHasBeenSet = false;
166
168 bool m_substitutionsHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace Pinpoint
173} // namespace Aws
EmailMessage & AddReplyToAddresses(const char *value)
EmailMessage & AddSubstitutions(const char *key, Aws::Vector< Aws::String > &&value)
void SetSubstitutions(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
EmailMessage & WithFromAddress(const Aws::String &value)
EmailMessage & WithFeedbackForwardingAddress(Aws::String &&value)
EmailMessage & WithSubstitutions(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
EmailMessage & WithSimpleEmail(SimpleEmail &&value)
EmailMessage & WithSimpleEmail(const SimpleEmail &value)
EmailMessage & WithBody(Aws::String &&value)
void SetBody(const Aws::String &value)
AWS_PINPOINT_API EmailMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
EmailMessage & WithSubstitutions(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
const Aws::String & GetFromAddress() const
EmailMessage & WithFeedbackForwardingAddress(const Aws::String &value)
void SetReplyToAddresses(const Aws::Vector< Aws::String > &value)
void SetFromAddress(const Aws::String &value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFeedbackForwardingAddress(const char *value)
EmailMessage & WithBody(const Aws::String &value)
void SetRawEmail(const RawEmail &value)
EmailMessage & WithFromAddress(const char *value)
void SetSimpleEmail(SimpleEmail &&value)
EmailMessage & WithReplyToAddresses(Aws::Vector< Aws::String > &&value)
void SetFeedbackForwardingAddress(const Aws::String &value)
bool FeedbackForwardingAddressHasBeenSet() const
const RawEmail & GetRawEmail() const
void SetRawEmail(RawEmail &&value)
EmailMessage & AddSubstitutions(const Aws::String &key, const Aws::Vector< Aws::String > &value)
EmailMessage & WithBody(const char *value)
void SetFromAddress(Aws::String &&value)
void SetReplyToAddresses(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetReplyToAddresses() const
void SetFromAddress(const char *value)
EmailMessage & WithRawEmail(const RawEmail &value)
EmailMessage & WithFeedbackForwardingAddress(const char *value)
EmailMessage & AddReplyToAddresses(Aws::String &&value)
const SimpleEmail & GetSimpleEmail() const
EmailMessage & WithFromAddress(Aws::String &&value)
EmailMessage & AddSubstitutions(Aws::String &&key, Aws::Vector< Aws::String > &&value)
EmailMessage & WithRawEmail(RawEmail &&value)
const Aws::String & GetBody() const
EmailMessage & AddSubstitutions(const Aws::String &key, Aws::Vector< Aws::String > &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetSubstitutions() const
void SetSubstitutions(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
EmailMessage & AddSubstitutions(Aws::String &&key, const Aws::Vector< Aws::String > &value)
void SetBody(const char *value)
AWS_PINPOINT_API EmailMessage(Aws::Utils::Json::JsonView jsonValue)
EmailMessage & WithReplyToAddresses(const Aws::Vector< Aws::String > &value)
void SetBody(Aws::String &&value)
EmailMessage & AddReplyToAddresses(const Aws::String &value)
void SetFeedbackForwardingAddress(Aws::String &&value)
const Aws::String & GetFeedbackForwardingAddress() const
void SetSimpleEmail(const SimpleEmail &value)
EmailMessage & AddSubstitutions(const char *key, const Aws::Vector< Aws::String > &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