AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
InAppTemplateResponse.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/InAppMessageContent.h>
12#include <aws/pinpoint/model/Layout.h>
13#include <aws/pinpoint/model/TemplateType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Pinpoint {
25namespace Model {
26
33 public:
34 AWS_PINPOINT_API InAppTemplateResponse() = default;
37 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetArn() const { return m_arn; }
44 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
45 template <typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) {
47 m_arnHasBeenSet = true;
48 m_arn = std::forward<ArnT>(value);
49 }
50 template <typename ArnT = Aws::String>
52 SetArn(std::forward<ArnT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::Vector<InAppMessageContent>& GetContent() const { return m_content; }
64 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
65 template <typename ContentT = Aws::Vector<InAppMessageContent>>
66 void SetContent(ContentT&& value) {
67 m_contentHasBeenSet = true;
68 m_content = std::forward<ContentT>(value);
69 }
70 template <typename ContentT = Aws::Vector<InAppMessageContent>>
72 SetContent(std::forward<ContentT>(value));
73 return *this;
74 }
75 template <typename ContentT = InAppMessageContent>
76 InAppTemplateResponse& AddContent(ContentT&& value) {
77 m_contentHasBeenSet = true;
78 m_content.emplace_back(std::forward<ContentT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
88 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
89 template <typename CreationDateT = Aws::String>
90 void SetCreationDate(CreationDateT&& value) {
91 m_creationDateHasBeenSet = true;
92 m_creationDate = std::forward<CreationDateT>(value);
93 }
94 template <typename CreationDateT = Aws::String>
95 InAppTemplateResponse& WithCreationDate(CreationDateT&& value) {
96 SetCreationDate(std::forward<CreationDateT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::Map<Aws::String, Aws::String>& GetCustomConfig() const { return m_customConfig; }
106 inline bool CustomConfigHasBeenSet() const { return m_customConfigHasBeenSet; }
107 template <typename CustomConfigT = Aws::Map<Aws::String, Aws::String>>
108 void SetCustomConfig(CustomConfigT&& value) {
109 m_customConfigHasBeenSet = true;
110 m_customConfig = std::forward<CustomConfigT>(value);
111 }
112 template <typename CustomConfigT = Aws::Map<Aws::String, Aws::String>>
113 InAppTemplateResponse& WithCustomConfig(CustomConfigT&& value) {
114 SetCustomConfig(std::forward<CustomConfigT>(value));
115 return *this;
116 }
117 template <typename CustomConfigKeyT = Aws::String, typename CustomConfigValueT = Aws::String>
118 InAppTemplateResponse& AddCustomConfig(CustomConfigKeyT&& key, CustomConfigValueT&& value) {
119 m_customConfigHasBeenSet = true;
120 m_customConfig.emplace(std::forward<CustomConfigKeyT>(key), std::forward<CustomConfigValueT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetLastModifiedDate() const { return m_lastModifiedDate; }
130 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
131 template <typename LastModifiedDateT = Aws::String>
132 void SetLastModifiedDate(LastModifiedDateT&& value) {
133 m_lastModifiedDateHasBeenSet = true;
134 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
135 }
136 template <typename LastModifiedDateT = Aws::String>
137 InAppTemplateResponse& WithLastModifiedDate(LastModifiedDateT&& value) {
138 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
139 return *this;
140 }
142
144
147 inline Layout GetLayout() const { return m_layout; }
148 inline bool LayoutHasBeenSet() const { return m_layoutHasBeenSet; }
149 inline void SetLayout(Layout value) {
150 m_layoutHasBeenSet = true;
151 m_layout = value;
152 }
154 SetLayout(value);
155 return *this;
156 }
158
160
165 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
166 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
167 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
168 void SetTags(TagsT&& value) {
169 m_tagsHasBeenSet = true;
170 m_tags = std::forward<TagsT>(value);
171 }
172 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
174 SetTags(std::forward<TagsT>(value));
175 return *this;
176 }
177 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
178 InAppTemplateResponse& AddTags(TagsKeyT&& key, TagsValueT&& value) {
179 m_tagsHasBeenSet = true;
180 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
181 return *this;
182 }
184
186
189 inline const Aws::String& GetTemplateDescription() const { return m_templateDescription; }
190 inline bool TemplateDescriptionHasBeenSet() const { return m_templateDescriptionHasBeenSet; }
191 template <typename TemplateDescriptionT = Aws::String>
192 void SetTemplateDescription(TemplateDescriptionT&& value) {
193 m_templateDescriptionHasBeenSet = true;
194 m_templateDescription = std::forward<TemplateDescriptionT>(value);
195 }
196 template <typename TemplateDescriptionT = Aws::String>
197 InAppTemplateResponse& WithTemplateDescription(TemplateDescriptionT&& value) {
198 SetTemplateDescription(std::forward<TemplateDescriptionT>(value));
199 return *this;
200 }
202
204
207 inline const Aws::String& GetTemplateName() const { return m_templateName; }
208 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
209 template <typename TemplateNameT = Aws::String>
210 void SetTemplateName(TemplateNameT&& value) {
211 m_templateNameHasBeenSet = true;
212 m_templateName = std::forward<TemplateNameT>(value);
213 }
214 template <typename TemplateNameT = Aws::String>
215 InAppTemplateResponse& WithTemplateName(TemplateNameT&& value) {
216 SetTemplateName(std::forward<TemplateNameT>(value));
217 return *this;
218 }
220
222
225 inline TemplateType GetTemplateType() const { return m_templateType; }
226 inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; }
227 inline void SetTemplateType(TemplateType value) {
228 m_templateTypeHasBeenSet = true;
229 m_templateType = value;
230 }
232 SetTemplateType(value);
233 return *this;
234 }
236
238
241 inline const Aws::String& GetVersion() const { return m_version; }
242 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
243 template <typename VersionT = Aws::String>
244 void SetVersion(VersionT&& value) {
245 m_versionHasBeenSet = true;
246 m_version = std::forward<VersionT>(value);
247 }
248 template <typename VersionT = Aws::String>
250 SetVersion(std::forward<VersionT>(value));
251 return *this;
252 }
254 private:
255 Aws::String m_arn;
256 bool m_arnHasBeenSet = false;
257
259 bool m_contentHasBeenSet = false;
260
261 Aws::String m_creationDate;
262 bool m_creationDateHasBeenSet = false;
263
265 bool m_customConfigHasBeenSet = false;
266
267 Aws::String m_lastModifiedDate;
268 bool m_lastModifiedDateHasBeenSet = false;
269
270 Layout m_layout{Layout::NOT_SET};
271 bool m_layoutHasBeenSet = false;
272
274 bool m_tagsHasBeenSet = false;
275
276 Aws::String m_templateDescription;
277 bool m_templateDescriptionHasBeenSet = false;
278
279 Aws::String m_templateName;
280 bool m_templateNameHasBeenSet = false;
281
282 TemplateType m_templateType{TemplateType::NOT_SET};
283 bool m_templateTypeHasBeenSet = false;
284
285 Aws::String m_version;
286 bool m_versionHasBeenSet = false;
287};
288
289} // namespace Model
290} // namespace Pinpoint
291} // namespace Aws
InAppTemplateResponse & WithCreationDate(CreationDateT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
InAppTemplateResponse & AddContent(ContentT &&value)
InAppTemplateResponse & WithTemplateName(TemplateNameT &&value)
void SetLastModifiedDate(LastModifiedDateT &&value)
AWS_PINPOINT_API InAppTemplateResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
InAppTemplateResponse & AddCustomConfig(CustomConfigKeyT &&key, CustomConfigValueT &&value)
InAppTemplateResponse & WithTags(TagsT &&value)
InAppTemplateResponse & WithVersion(VersionT &&value)
InAppTemplateResponse & WithTemplateType(TemplateType value)
InAppTemplateResponse & WithLayout(Layout value)
InAppTemplateResponse & WithCustomConfig(CustomConfigT &&value)
const Aws::Vector< InAppMessageContent > & GetContent() const
InAppTemplateResponse & WithTemplateDescription(TemplateDescriptionT &&value)
AWS_PINPOINT_API InAppTemplateResponse(Aws::Utils::Json::JsonView jsonValue)
InAppTemplateResponse & WithArn(ArnT &&value)
void SetTemplateDescription(TemplateDescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomConfig() const
InAppTemplateResponse & WithLastModifiedDate(LastModifiedDateT &&value)
AWS_PINPOINT_API InAppTemplateResponse()=default
InAppTemplateResponse & AddTags(TagsKeyT &&key, TagsValueT &&value)
InAppTemplateResponse & WithContent(ContentT &&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