AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
EmailTemplateRequest.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/MessageHeader.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Pinpoint {
23namespace Model {
24
32 public:
33 AWS_PINPOINT_API EmailTemplateRequest() = default;
36 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
47 inline const Aws::String& GetDefaultSubstitutions() const { return m_defaultSubstitutions; }
48 inline bool DefaultSubstitutionsHasBeenSet() const { return m_defaultSubstitutionsHasBeenSet; }
49 template <typename DefaultSubstitutionsT = Aws::String>
50 void SetDefaultSubstitutions(DefaultSubstitutionsT&& value) {
51 m_defaultSubstitutionsHasBeenSet = true;
52 m_defaultSubstitutions = std::forward<DefaultSubstitutionsT>(value);
53 }
54 template <typename DefaultSubstitutionsT = Aws::String>
55 EmailTemplateRequest& WithDefaultSubstitutions(DefaultSubstitutionsT&& value) {
56 SetDefaultSubstitutions(std::forward<DefaultSubstitutionsT>(value));
57 return *this;
58 }
60
62
68 inline const Aws::String& GetHtmlPart() const { return m_htmlPart; }
69 inline bool HtmlPartHasBeenSet() const { return m_htmlPartHasBeenSet; }
70 template <typename HtmlPartT = Aws::String>
71 void SetHtmlPart(HtmlPartT&& value) {
72 m_htmlPartHasBeenSet = true;
73 m_htmlPart = std::forward<HtmlPartT>(value);
74 }
75 template <typename HtmlPartT = Aws::String>
76 EmailTemplateRequest& WithHtmlPart(HtmlPartT&& value) {
77 SetHtmlPart(std::forward<HtmlPartT>(value));
78 return *this;
79 }
81
83
90 inline const Aws::String& GetRecommenderId() const { return m_recommenderId; }
91 inline bool RecommenderIdHasBeenSet() const { return m_recommenderIdHasBeenSet; }
92 template <typename RecommenderIdT = Aws::String>
93 void SetRecommenderId(RecommenderIdT&& value) {
94 m_recommenderIdHasBeenSet = true;
95 m_recommenderId = std::forward<RecommenderIdT>(value);
96 }
97 template <typename RecommenderIdT = Aws::String>
98 EmailTemplateRequest& WithRecommenderId(RecommenderIdT&& value) {
99 SetRecommenderId(std::forward<RecommenderIdT>(value));
100 return *this;
101 }
103
105
109 inline const Aws::String& GetSubject() const { return m_subject; }
110 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
111 template <typename SubjectT = Aws::String>
112 void SetSubject(SubjectT&& value) {
113 m_subjectHasBeenSet = true;
114 m_subject = std::forward<SubjectT>(value);
115 }
116 template <typename SubjectT = Aws::String>
118 SetSubject(std::forward<SubjectT>(value));
119 return *this;
120 }
122
124
129 inline const Aws::Vector<MessageHeader>& GetHeaders() const { return m_headers; }
130 inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
131 template <typename HeadersT = Aws::Vector<MessageHeader>>
132 void SetHeaders(HeadersT&& value) {
133 m_headersHasBeenSet = true;
134 m_headers = std::forward<HeadersT>(value);
135 }
136 template <typename HeadersT = Aws::Vector<MessageHeader>>
138 SetHeaders(std::forward<HeadersT>(value));
139 return *this;
140 }
141 template <typename HeadersT = MessageHeader>
142 EmailTemplateRequest& AddHeaders(HeadersT&& value) {
143 m_headersHasBeenSet = true;
144 m_headers.emplace_back(std::forward<HeadersT>(value));
145 return *this;
146 }
148
150
163 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
164 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
165 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
166 void SetTags(TagsT&& value) {
167 m_tagsHasBeenSet = true;
168 m_tags = std::forward<TagsT>(value);
169 }
170 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
172 SetTags(std::forward<TagsT>(value));
173 return *this;
174 }
175 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
176 EmailTemplateRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
177 m_tagsHasBeenSet = true;
178 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::String& GetTemplateDescription() const { return m_templateDescription; }
188 inline bool TemplateDescriptionHasBeenSet() const { return m_templateDescriptionHasBeenSet; }
189 template <typename TemplateDescriptionT = Aws::String>
190 void SetTemplateDescription(TemplateDescriptionT&& value) {
191 m_templateDescriptionHasBeenSet = true;
192 m_templateDescription = std::forward<TemplateDescriptionT>(value);
193 }
194 template <typename TemplateDescriptionT = Aws::String>
195 EmailTemplateRequest& WithTemplateDescription(TemplateDescriptionT&& value) {
196 SetTemplateDescription(std::forward<TemplateDescriptionT>(value));
197 return *this;
198 }
200
202
208 inline const Aws::String& GetTextPart() const { return m_textPart; }
209 inline bool TextPartHasBeenSet() const { return m_textPartHasBeenSet; }
210 template <typename TextPartT = Aws::String>
211 void SetTextPart(TextPartT&& value) {
212 m_textPartHasBeenSet = true;
213 m_textPart = std::forward<TextPartT>(value);
214 }
215 template <typename TextPartT = Aws::String>
216 EmailTemplateRequest& WithTextPart(TextPartT&& value) {
217 SetTextPart(std::forward<TextPartT>(value));
218 return *this;
219 }
221 private:
222 Aws::String m_defaultSubstitutions;
223
224 Aws::String m_htmlPart;
225
226 Aws::String m_recommenderId;
227
228 Aws::String m_subject;
229
231
233
234 Aws::String m_templateDescription;
235
236 Aws::String m_textPart;
237 bool m_defaultSubstitutionsHasBeenSet = false;
238 bool m_htmlPartHasBeenSet = false;
239 bool m_recommenderIdHasBeenSet = false;
240 bool m_subjectHasBeenSet = false;
241 bool m_headersHasBeenSet = false;
242 bool m_tagsHasBeenSet = false;
243 bool m_templateDescriptionHasBeenSet = false;
244 bool m_textPartHasBeenSet = false;
245};
246
247} // namespace Model
248} // namespace Pinpoint
249} // namespace Aws
EmailTemplateRequest & WithHtmlPart(HtmlPartT &&value)
EmailTemplateRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetTemplateDescription(TemplateDescriptionT &&value)
void SetDefaultSubstitutions(DefaultSubstitutionsT &&value)
AWS_PINPOINT_API EmailTemplateRequest(Aws::Utils::Json::JsonView jsonValue)
EmailTemplateRequest & WithSubject(SubjectT &&value)
const Aws::Vector< MessageHeader > & GetHeaders() const
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
EmailTemplateRequest & WithTemplateDescription(TemplateDescriptionT &&value)
AWS_PINPOINT_API EmailTemplateRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
EmailTemplateRequest & WithTags(TagsT &&value)
EmailTemplateRequest & WithTextPart(TextPartT &&value)
EmailTemplateRequest & AddHeaders(HeadersT &&value)
const Aws::String & GetDefaultSubstitutions() const
EmailTemplateRequest & WithHeaders(HeadersT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_PINPOINT_API EmailTemplateRequest()=default
EmailTemplateRequest & WithRecommenderId(RecommenderIdT &&value)
EmailTemplateRequest & WithDefaultSubstitutions(DefaultSubstitutionsT &&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