AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EmailTemplateResponse.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/pinpoint/model/TemplateType.h>
12#include <aws/pinpoint/model/MessageHeader.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
38 {
39 public:
40 AWS_PINPOINT_API EmailTemplateResponse();
43 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetArn() const{ return m_arn; }
51 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
52 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
53 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
54 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
55 inline EmailTemplateResponse& WithArn(const Aws::String& value) { SetArn(value); return *this;}
56 inline EmailTemplateResponse& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
57 inline EmailTemplateResponse& WithArn(const char* value) { SetArn(value); return *this;}
59
61
64 inline const Aws::String& GetCreationDate() const{ return m_creationDate; }
65 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
66 inline void SetCreationDate(const Aws::String& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
67 inline void SetCreationDate(Aws::String&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
68 inline void SetCreationDate(const char* value) { m_creationDateHasBeenSet = true; m_creationDate.assign(value); }
69 inline EmailTemplateResponse& WithCreationDate(const Aws::String& value) { SetCreationDate(value); return *this;}
70 inline EmailTemplateResponse& WithCreationDate(Aws::String&& value) { SetCreationDate(std::move(value)); return *this;}
71 inline EmailTemplateResponse& WithCreationDate(const char* value) { SetCreationDate(value); return *this;}
73
75
81 inline const Aws::String& GetDefaultSubstitutions() const{ return m_defaultSubstitutions; }
82 inline bool DefaultSubstitutionsHasBeenSet() const { return m_defaultSubstitutionsHasBeenSet; }
83 inline void SetDefaultSubstitutions(const Aws::String& value) { m_defaultSubstitutionsHasBeenSet = true; m_defaultSubstitutions = value; }
84 inline void SetDefaultSubstitutions(Aws::String&& value) { m_defaultSubstitutionsHasBeenSet = true; m_defaultSubstitutions = std::move(value); }
85 inline void SetDefaultSubstitutions(const char* value) { m_defaultSubstitutionsHasBeenSet = true; m_defaultSubstitutions.assign(value); }
87 inline EmailTemplateResponse& WithDefaultSubstitutions(Aws::String&& value) { SetDefaultSubstitutions(std::move(value)); return *this;}
88 inline EmailTemplateResponse& WithDefaultSubstitutions(const char* value) { SetDefaultSubstitutions(value); return *this;}
90
92
96 inline const Aws::String& GetHtmlPart() const{ return m_htmlPart; }
97 inline bool HtmlPartHasBeenSet() const { return m_htmlPartHasBeenSet; }
98 inline void SetHtmlPart(const Aws::String& value) { m_htmlPartHasBeenSet = true; m_htmlPart = value; }
99 inline void SetHtmlPart(Aws::String&& value) { m_htmlPartHasBeenSet = true; m_htmlPart = std::move(value); }
100 inline void SetHtmlPart(const char* value) { m_htmlPartHasBeenSet = true; m_htmlPart.assign(value); }
101 inline EmailTemplateResponse& WithHtmlPart(const Aws::String& value) { SetHtmlPart(value); return *this;}
102 inline EmailTemplateResponse& WithHtmlPart(Aws::String&& value) { SetHtmlPart(std::move(value)); return *this;}
103 inline EmailTemplateResponse& WithHtmlPart(const char* value) { SetHtmlPart(value); return *this;}
105
107
111 inline const Aws::String& GetLastModifiedDate() const{ return m_lastModifiedDate; }
112 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
113 inline void SetLastModifiedDate(const Aws::String& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
114 inline void SetLastModifiedDate(Aws::String&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); }
115 inline void SetLastModifiedDate(const char* value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate.assign(value); }
116 inline EmailTemplateResponse& WithLastModifiedDate(const Aws::String& value) { SetLastModifiedDate(value); return *this;}
117 inline EmailTemplateResponse& WithLastModifiedDate(Aws::String&& value) { SetLastModifiedDate(std::move(value)); return *this;}
118 inline EmailTemplateResponse& WithLastModifiedDate(const char* value) { SetLastModifiedDate(value); return *this;}
120
122
126 inline const Aws::String& GetRecommenderId() const{ return m_recommenderId; }
127 inline bool RecommenderIdHasBeenSet() const { return m_recommenderIdHasBeenSet; }
128 inline void SetRecommenderId(const Aws::String& value) { m_recommenderIdHasBeenSet = true; m_recommenderId = value; }
129 inline void SetRecommenderId(Aws::String&& value) { m_recommenderIdHasBeenSet = true; m_recommenderId = std::move(value); }
130 inline void SetRecommenderId(const char* value) { m_recommenderIdHasBeenSet = true; m_recommenderId.assign(value); }
131 inline EmailTemplateResponse& WithRecommenderId(const Aws::String& value) { SetRecommenderId(value); return *this;}
132 inline EmailTemplateResponse& WithRecommenderId(Aws::String&& value) { SetRecommenderId(std::move(value)); return *this;}
133 inline EmailTemplateResponse& WithRecommenderId(const char* value) { SetRecommenderId(value); return *this;}
135
137
141 inline const Aws::String& GetSubject() const{ return m_subject; }
142 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
143 inline void SetSubject(const Aws::String& value) { m_subjectHasBeenSet = true; m_subject = value; }
144 inline void SetSubject(Aws::String&& value) { m_subjectHasBeenSet = true; m_subject = std::move(value); }
145 inline void SetSubject(const char* value) { m_subjectHasBeenSet = true; m_subject.assign(value); }
146 inline EmailTemplateResponse& WithSubject(const Aws::String& value) { SetSubject(value); return *this;}
147 inline EmailTemplateResponse& WithSubject(Aws::String&& value) { SetSubject(std::move(value)); return *this;}
148 inline EmailTemplateResponse& WithSubject(const char* value) { SetSubject(value); return *this;}
150
152
157 inline const Aws::Vector<MessageHeader>& GetHeaders() const{ return m_headers; }
158 inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
159 inline void SetHeaders(const Aws::Vector<MessageHeader>& value) { m_headersHasBeenSet = true; m_headers = value; }
160 inline void SetHeaders(Aws::Vector<MessageHeader>&& value) { m_headersHasBeenSet = true; m_headers = std::move(value); }
161 inline EmailTemplateResponse& WithHeaders(const Aws::Vector<MessageHeader>& value) { SetHeaders(value); return *this;}
162 inline EmailTemplateResponse& WithHeaders(Aws::Vector<MessageHeader>&& value) { SetHeaders(std::move(value)); return *this;}
163 inline EmailTemplateResponse& AddHeaders(const MessageHeader& value) { m_headersHasBeenSet = true; m_headers.push_back(value); return *this; }
164 inline EmailTemplateResponse& AddHeaders(MessageHeader&& value) { m_headersHasBeenSet = true; m_headers.push_back(std::move(value)); return *this; }
166
168
173 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
174 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
175 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
176 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
177 inline EmailTemplateResponse& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
178 inline EmailTemplateResponse& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
179 inline EmailTemplateResponse& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
180 inline EmailTemplateResponse& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
181 inline EmailTemplateResponse& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
182 inline EmailTemplateResponse& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
183 inline EmailTemplateResponse& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
184 inline EmailTemplateResponse& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
185 inline EmailTemplateResponse& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
187
189
192 inline const Aws::String& GetTemplateDescription() const{ return m_templateDescription; }
193 inline bool TemplateDescriptionHasBeenSet() const { return m_templateDescriptionHasBeenSet; }
194 inline void SetTemplateDescription(const Aws::String& value) { m_templateDescriptionHasBeenSet = true; m_templateDescription = value; }
195 inline void SetTemplateDescription(Aws::String&& value) { m_templateDescriptionHasBeenSet = true; m_templateDescription = std::move(value); }
196 inline void SetTemplateDescription(const char* value) { m_templateDescriptionHasBeenSet = true; m_templateDescription.assign(value); }
198 inline EmailTemplateResponse& WithTemplateDescription(Aws::String&& value) { SetTemplateDescription(std::move(value)); return *this;}
199 inline EmailTemplateResponse& WithTemplateDescription(const char* value) { SetTemplateDescription(value); return *this;}
201
203
206 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
207 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
208 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
209 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
210 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
211 inline EmailTemplateResponse& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
212 inline EmailTemplateResponse& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
213 inline EmailTemplateResponse& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
215
217
221 inline const TemplateType& GetTemplateType() const{ return m_templateType; }
222 inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; }
223 inline void SetTemplateType(const TemplateType& value) { m_templateTypeHasBeenSet = true; m_templateType = value; }
224 inline void SetTemplateType(TemplateType&& value) { m_templateTypeHasBeenSet = true; m_templateType = std::move(value); }
225 inline EmailTemplateResponse& WithTemplateType(const TemplateType& value) { SetTemplateType(value); return *this;}
226 inline EmailTemplateResponse& WithTemplateType(TemplateType&& value) { SetTemplateType(std::move(value)); return *this;}
228
230
234 inline const Aws::String& GetTextPart() const{ return m_textPart; }
235 inline bool TextPartHasBeenSet() const { return m_textPartHasBeenSet; }
236 inline void SetTextPart(const Aws::String& value) { m_textPartHasBeenSet = true; m_textPart = value; }
237 inline void SetTextPart(Aws::String&& value) { m_textPartHasBeenSet = true; m_textPart = std::move(value); }
238 inline void SetTextPart(const char* value) { m_textPartHasBeenSet = true; m_textPart.assign(value); }
239 inline EmailTemplateResponse& WithTextPart(const Aws::String& value) { SetTextPart(value); return *this;}
240 inline EmailTemplateResponse& WithTextPart(Aws::String&& value) { SetTextPart(std::move(value)); return *this;}
241 inline EmailTemplateResponse& WithTextPart(const char* value) { SetTextPart(value); return *this;}
243
245
250 inline const Aws::String& GetVersion() const{ return m_version; }
251 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
252 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
253 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
254 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
255 inline EmailTemplateResponse& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
256 inline EmailTemplateResponse& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
257 inline EmailTemplateResponse& WithVersion(const char* value) { SetVersion(value); return *this;}
259 private:
260
261 Aws::String m_arn;
262 bool m_arnHasBeenSet = false;
263
264 Aws::String m_creationDate;
265 bool m_creationDateHasBeenSet = false;
266
267 Aws::String m_defaultSubstitutions;
268 bool m_defaultSubstitutionsHasBeenSet = false;
269
270 Aws::String m_htmlPart;
271 bool m_htmlPartHasBeenSet = false;
272
273 Aws::String m_lastModifiedDate;
274 bool m_lastModifiedDateHasBeenSet = false;
275
276 Aws::String m_recommenderId;
277 bool m_recommenderIdHasBeenSet = false;
278
279 Aws::String m_subject;
280 bool m_subjectHasBeenSet = false;
281
283 bool m_headersHasBeenSet = false;
284
286 bool m_tagsHasBeenSet = false;
287
288 Aws::String m_templateDescription;
289 bool m_templateDescriptionHasBeenSet = false;
290
291 Aws::String m_templateName;
292 bool m_templateNameHasBeenSet = false;
293
294 TemplateType m_templateType;
295 bool m_templateTypeHasBeenSet = false;
296
297 Aws::String m_textPart;
298 bool m_textPartHasBeenSet = false;
299
300 Aws::String m_version;
301 bool m_versionHasBeenSet = false;
302 };
303
304} // namespace Model
305} // namespace Pinpoint
306} // namespace Aws
EmailTemplateResponse & WithRecommenderId(const char *value)
EmailTemplateResponse & AddTags(const Aws::String &key, const Aws::String &value)
EmailTemplateResponse & WithSubject(Aws::String &&value)
EmailTemplateResponse & WithTemplateDescription(const char *value)
EmailTemplateResponse & WithTemplateType(TemplateType &&value)
void SetHeaders(Aws::Vector< MessageHeader > &&value)
EmailTemplateResponse & WithTemplateName(const Aws::String &value)
EmailTemplateResponse & WithLastModifiedDate(const Aws::String &value)
void SetHeaders(const Aws::Vector< MessageHeader > &value)
EmailTemplateResponse & WithTextPart(const Aws::String &value)
EmailTemplateResponse & WithTemplateName(const char *value)
EmailTemplateResponse & WithCreationDate(Aws::String &&value)
EmailTemplateResponse & WithRecommenderId(Aws::String &&value)
EmailTemplateResponse & WithHeaders(Aws::Vector< MessageHeader > &&value)
EmailTemplateResponse & WithLastModifiedDate(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
EmailTemplateResponse & WithDefaultSubstitutions(const Aws::String &value)
EmailTemplateResponse & WithTextPart(const char *value)
void SetTemplateType(const TemplateType &value)
EmailTemplateResponse & WithVersion(const char *value)
EmailTemplateResponse & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
EmailTemplateResponse & WithRecommenderId(const Aws::String &value)
EmailTemplateResponse & WithVersion(const Aws::String &value)
EmailTemplateResponse & WithSubject(const Aws::String &value)
EmailTemplateResponse & WithTemplateName(Aws::String &&value)
AWS_PINPOINT_API EmailTemplateResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
EmailTemplateResponse & WithArn(Aws::String &&value)
EmailTemplateResponse & WithArn(const Aws::String &value)
EmailTemplateResponse & AddTags(Aws::String &&key, const char *value)
EmailTemplateResponse & WithHtmlPart(const Aws::String &value)
EmailTemplateResponse & AddTags(const char *key, const char *value)
EmailTemplateResponse & WithTemplateDescription(Aws::String &&value)
EmailTemplateResponse & AddHeaders(MessageHeader &&value)
EmailTemplateResponse & WithCreationDate(const char *value)
EmailTemplateResponse & WithTextPart(Aws::String &&value)
EmailTemplateResponse & AddHeaders(const MessageHeader &value)
AWS_PINPOINT_API EmailTemplateResponse(Aws::Utils::Json::JsonView jsonValue)
EmailTemplateResponse & WithTemplateDescription(const Aws::String &value)
void SetTemplateDescription(const Aws::String &value)
void SetDefaultSubstitutions(const Aws::String &value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
EmailTemplateResponse & WithSubject(const char *value)
EmailTemplateResponse & WithCreationDate(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
EmailTemplateResponse & WithLastModifiedDate(const char *value)
EmailTemplateResponse & WithArn(const char *value)
EmailTemplateResponse & WithDefaultSubstitutions(const char *value)
EmailTemplateResponse & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
EmailTemplateResponse & AddTags(const Aws::String &key, Aws::String &&value)
EmailTemplateResponse & AddTags(const char *key, Aws::String &&value)
EmailTemplateResponse & WithHtmlPart(Aws::String &&value)
EmailTemplateResponse & WithHeaders(const Aws::Vector< MessageHeader > &value)
EmailTemplateResponse & WithHtmlPart(const char *value)
EmailTemplateResponse & AddTags(Aws::String &&key, Aws::String &&value)
EmailTemplateResponse & WithTemplateType(const TemplateType &value)
void SetLastModifiedDate(const Aws::String &value)
EmailTemplateResponse & WithVersion(Aws::String &&value)
const Aws::Vector< MessageHeader > & GetHeaders() const
EmailTemplateResponse & AddTags(Aws::String &&key, const Aws::String &value)
EmailTemplateResponse & WithDefaultSubstitutions(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