AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InAppTemplateResponse.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/Layout.h>
12#include <aws/pinpoint/model/TemplateType.h>
13#include <aws/pinpoint/model/InAppMessageContent.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Pinpoint
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_PINPOINT_API InAppTemplateResponse();
42 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetArn() const{ return m_arn; }
50 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
51 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
52 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
53 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
54 inline InAppTemplateResponse& WithArn(const Aws::String& value) { SetArn(value); return *this;}
55 inline InAppTemplateResponse& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
56 inline InAppTemplateResponse& WithArn(const char* value) { SetArn(value); return *this;}
58
60
65 inline const Aws::Vector<InAppMessageContent>& GetContent() const{ return m_content; }
66 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
67 inline void SetContent(const Aws::Vector<InAppMessageContent>& value) { m_contentHasBeenSet = true; m_content = value; }
68 inline void SetContent(Aws::Vector<InAppMessageContent>&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
70 inline InAppTemplateResponse& WithContent(Aws::Vector<InAppMessageContent>&& value) { SetContent(std::move(value)); return *this;}
71 inline InAppTemplateResponse& AddContent(const InAppMessageContent& value) { m_contentHasBeenSet = true; m_content.push_back(value); return *this; }
72 inline InAppTemplateResponse& AddContent(InAppMessageContent&& value) { m_contentHasBeenSet = true; m_content.push_back(std::move(value)); return *this; }
74
76
79 inline const Aws::String& GetCreationDate() const{ return m_creationDate; }
80 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
81 inline void SetCreationDate(const Aws::String& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
82 inline void SetCreationDate(Aws::String&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
83 inline void SetCreationDate(const char* value) { m_creationDateHasBeenSet = true; m_creationDate.assign(value); }
84 inline InAppTemplateResponse& WithCreationDate(const Aws::String& value) { SetCreationDate(value); return *this;}
85 inline InAppTemplateResponse& WithCreationDate(Aws::String&& value) { SetCreationDate(std::move(value)); return *this;}
86 inline InAppTemplateResponse& WithCreationDate(const char* value) { SetCreationDate(value); return *this;}
88
90
93 inline const Aws::Map<Aws::String, Aws::String>& GetCustomConfig() const{ return m_customConfig; }
94 inline bool CustomConfigHasBeenSet() const { return m_customConfigHasBeenSet; }
95 inline void SetCustomConfig(const Aws::Map<Aws::String, Aws::String>& value) { m_customConfigHasBeenSet = true; m_customConfig = value; }
96 inline void SetCustomConfig(Aws::Map<Aws::String, Aws::String>&& value) { m_customConfigHasBeenSet = true; m_customConfig = std::move(value); }
99 inline InAppTemplateResponse& AddCustomConfig(const Aws::String& key, const Aws::String& value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(key, value); return *this; }
100 inline InAppTemplateResponse& AddCustomConfig(Aws::String&& key, const Aws::String& value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(std::move(key), value); return *this; }
101 inline InAppTemplateResponse& AddCustomConfig(const Aws::String& key, Aws::String&& value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(key, std::move(value)); return *this; }
102 inline InAppTemplateResponse& AddCustomConfig(Aws::String&& key, Aws::String&& value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(std::move(key), std::move(value)); return *this; }
103 inline InAppTemplateResponse& AddCustomConfig(const char* key, Aws::String&& value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(key, std::move(value)); return *this; }
104 inline InAppTemplateResponse& AddCustomConfig(Aws::String&& key, const char* value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(std::move(key), value); return *this; }
105 inline InAppTemplateResponse& AddCustomConfig(const char* key, const char* value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(key, value); return *this; }
107
109
112 inline const Aws::String& GetLastModifiedDate() const{ return m_lastModifiedDate; }
113 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
114 inline void SetLastModifiedDate(const Aws::String& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
115 inline void SetLastModifiedDate(Aws::String&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); }
116 inline void SetLastModifiedDate(const char* value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate.assign(value); }
117 inline InAppTemplateResponse& WithLastModifiedDate(const Aws::String& value) { SetLastModifiedDate(value); return *this;}
118 inline InAppTemplateResponse& WithLastModifiedDate(Aws::String&& value) { SetLastModifiedDate(std::move(value)); return *this;}
119 inline InAppTemplateResponse& WithLastModifiedDate(const char* value) { SetLastModifiedDate(value); return *this;}
121
123
126 inline const Layout& GetLayout() const{ return m_layout; }
127 inline bool LayoutHasBeenSet() const { return m_layoutHasBeenSet; }
128 inline void SetLayout(const Layout& value) { m_layoutHasBeenSet = true; m_layout = value; }
129 inline void SetLayout(Layout&& value) { m_layoutHasBeenSet = true; m_layout = std::move(value); }
130 inline InAppTemplateResponse& WithLayout(const Layout& value) { SetLayout(value); return *this;}
131 inline InAppTemplateResponse& WithLayout(Layout&& value) { SetLayout(std::move(value)); return *this;}
133
135
140 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
141 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
142 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
143 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
144 inline InAppTemplateResponse& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
145 inline InAppTemplateResponse& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
146 inline InAppTemplateResponse& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
147 inline InAppTemplateResponse& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
148 inline InAppTemplateResponse& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
149 inline InAppTemplateResponse& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
150 inline InAppTemplateResponse& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
151 inline InAppTemplateResponse& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
152 inline InAppTemplateResponse& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
154
156
159 inline const Aws::String& GetTemplateDescription() const{ return m_templateDescription; }
160 inline bool TemplateDescriptionHasBeenSet() const { return m_templateDescriptionHasBeenSet; }
161 inline void SetTemplateDescription(const Aws::String& value) { m_templateDescriptionHasBeenSet = true; m_templateDescription = value; }
162 inline void SetTemplateDescription(Aws::String&& value) { m_templateDescriptionHasBeenSet = true; m_templateDescription = std::move(value); }
163 inline void SetTemplateDescription(const char* value) { m_templateDescriptionHasBeenSet = true; m_templateDescription.assign(value); }
165 inline InAppTemplateResponse& WithTemplateDescription(Aws::String&& value) { SetTemplateDescription(std::move(value)); return *this;}
166 inline InAppTemplateResponse& WithTemplateDescription(const char* value) { SetTemplateDescription(value); return *this;}
168
170
173 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
174 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
175 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
176 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
177 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
178 inline InAppTemplateResponse& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
179 inline InAppTemplateResponse& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
180 inline InAppTemplateResponse& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
182
184
187 inline const TemplateType& GetTemplateType() const{ return m_templateType; }
188 inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; }
189 inline void SetTemplateType(const TemplateType& value) { m_templateTypeHasBeenSet = true; m_templateType = value; }
190 inline void SetTemplateType(TemplateType&& value) { m_templateTypeHasBeenSet = true; m_templateType = std::move(value); }
191 inline InAppTemplateResponse& WithTemplateType(const TemplateType& value) { SetTemplateType(value); return *this;}
192 inline InAppTemplateResponse& WithTemplateType(TemplateType&& value) { SetTemplateType(std::move(value)); return *this;}
194
196
199 inline const Aws::String& GetVersion() const{ return m_version; }
200 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
201 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
202 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
203 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
204 inline InAppTemplateResponse& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
205 inline InAppTemplateResponse& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
206 inline InAppTemplateResponse& WithVersion(const char* value) { SetVersion(value); return *this;}
208 private:
209
210 Aws::String m_arn;
211 bool m_arnHasBeenSet = false;
212
214 bool m_contentHasBeenSet = false;
215
216 Aws::String m_creationDate;
217 bool m_creationDateHasBeenSet = false;
218
220 bool m_customConfigHasBeenSet = false;
221
222 Aws::String m_lastModifiedDate;
223 bool m_lastModifiedDateHasBeenSet = false;
224
225 Layout m_layout;
226 bool m_layoutHasBeenSet = false;
227
229 bool m_tagsHasBeenSet = false;
230
231 Aws::String m_templateDescription;
232 bool m_templateDescriptionHasBeenSet = false;
233
234 Aws::String m_templateName;
235 bool m_templateNameHasBeenSet = false;
236
237 TemplateType m_templateType;
238 bool m_templateTypeHasBeenSet = false;
239
240 Aws::String m_version;
241 bool m_versionHasBeenSet = false;
242 };
243
244} // namespace Model
245} // namespace Pinpoint
246} // namespace Aws
InAppTemplateResponse & WithTemplateName(Aws::String &&value)
InAppTemplateResponse & WithCustomConfig(const Aws::Map< Aws::String, Aws::String > &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
InAppTemplateResponse & AddTags(const char *key, const char *value)
InAppTemplateResponse & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetCustomConfig(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
InAppTemplateResponse & WithVersion(const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
InAppTemplateResponse & AddTags(const char *key, Aws::String &&value)
void SetLastModifiedDate(const Aws::String &value)
InAppTemplateResponse & AddContent(const InAppMessageContent &value)
InAppTemplateResponse & WithTemplateDescription(const char *value)
InAppTemplateResponse & WithArn(const Aws::String &value)
InAppTemplateResponse & WithCreationDate(const Aws::String &value)
InAppTemplateResponse & WithCustomConfig(Aws::Map< Aws::String, Aws::String > &&value)
void SetTemplateDescription(const Aws::String &value)
InAppTemplateResponse & WithArn(Aws::String &&value)
InAppTemplateResponse & WithCreationDate(Aws::String &&value)
InAppTemplateResponse & WithTemplateDescription(Aws::String &&value)
InAppTemplateResponse & WithLastModifiedDate(const Aws::String &value)
AWS_PINPOINT_API InAppTemplateResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
InAppTemplateResponse & AddCustomConfig(Aws::String &&key, Aws::String &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetContent(const Aws::Vector< InAppMessageContent > &value)
InAppTemplateResponse & WithLayout(const Layout &value)
InAppTemplateResponse & AddTags(Aws::String &&key, Aws::String &&value)
InAppTemplateResponse & AddTags(const Aws::String &key, const Aws::String &value)
InAppTemplateResponse & AddCustomConfig(const char *key, Aws::String &&value)
InAppTemplateResponse & AddCustomConfig(Aws::String &&key, const Aws::String &value)
void SetTemplateType(const TemplateType &value)
InAppTemplateResponse & WithContent(Aws::Vector< InAppMessageContent > &&value)
InAppTemplateResponse & WithTemplateDescription(const Aws::String &value)
void SetCustomConfig(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Vector< InAppMessageContent > & GetContent() const
InAppTemplateResponse & AddContent(InAppMessageContent &&value)
InAppTemplateResponse & AddTags(const Aws::String &key, Aws::String &&value)
InAppTemplateResponse & AddCustomConfig(const Aws::String &key, const Aws::String &value)
InAppTemplateResponse & WithTemplateName(const Aws::String &value)
AWS_PINPOINT_API InAppTemplateResponse(Aws::Utils::Json::JsonView jsonValue)
InAppTemplateResponse & WithCreationDate(const char *value)
InAppTemplateResponse & WithVersion(const Aws::String &value)
InAppTemplateResponse & AddCustomConfig(const Aws::String &key, Aws::String &&value)
InAppTemplateResponse & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
InAppTemplateResponse & WithTemplateName(const char *value)
InAppTemplateResponse & AddCustomConfig(const char *key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetCustomConfig() const
InAppTemplateResponse & WithLastModifiedDate(Aws::String &&value)
InAppTemplateResponse & WithArn(const char *value)
InAppTemplateResponse & WithTemplateType(const TemplateType &value)
InAppTemplateResponse & WithLayout(Layout &&value)
void SetContent(Aws::Vector< InAppMessageContent > &&value)
InAppTemplateResponse & WithLastModifiedDate(const char *value)
InAppTemplateResponse & WithTemplateType(TemplateType &&value)
InAppTemplateResponse & WithContent(const Aws::Vector< InAppMessageContent > &value)
InAppTemplateResponse & AddTags(Aws::String &&key, const Aws::String &value)
InAppTemplateResponse & WithVersion(Aws::String &&value)
InAppTemplateResponse & AddTags(Aws::String &&key, const char *value)
InAppTemplateResponse & AddCustomConfig(Aws::String &&key, const char *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