AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename ArnT = Aws::String>
52 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
53 template<typename ArnT = Aws::String>
54 InAppTemplateResponse& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
67 template<typename ContentT = Aws::Vector<InAppMessageContent>>
68 InAppTemplateResponse& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
69 template<typename ContentT = InAppMessageContent>
70 InAppTemplateResponse& AddContent(ContentT&& value) { m_contentHasBeenSet = true; m_content.emplace_back(std::forward<ContentT>(value)); return *this; }
72
74
77 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
78 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
79 template<typename CreationDateT = Aws::String>
80 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
81 template<typename CreationDateT = Aws::String>
82 InAppTemplateResponse& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
84
86
89 inline const Aws::Map<Aws::String, Aws::String>& GetCustomConfig() const { return m_customConfig; }
90 inline bool CustomConfigHasBeenSet() const { return m_customConfigHasBeenSet; }
91 template<typename CustomConfigT = Aws::Map<Aws::String, Aws::String>>
92 void SetCustomConfig(CustomConfigT&& value) { m_customConfigHasBeenSet = true; m_customConfig = std::forward<CustomConfigT>(value); }
93 template<typename CustomConfigT = Aws::Map<Aws::String, Aws::String>>
94 InAppTemplateResponse& WithCustomConfig(CustomConfigT&& value) { SetCustomConfig(std::forward<CustomConfigT>(value)); return *this;}
95 template<typename CustomConfigKeyT = Aws::String, typename CustomConfigValueT = Aws::String>
96 InAppTemplateResponse& AddCustomConfig(CustomConfigKeyT&& key, CustomConfigValueT&& value) {
97 m_customConfigHasBeenSet = true; m_customConfig.emplace(std::forward<CustomConfigKeyT>(key), std::forward<CustomConfigValueT>(value)); return *this;
98 }
100
102
105 inline const Aws::String& GetLastModifiedDate() const { return m_lastModifiedDate; }
106 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
107 template<typename LastModifiedDateT = Aws::String>
108 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
109 template<typename LastModifiedDateT = Aws::String>
110 InAppTemplateResponse& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
112
114
117 inline Layout GetLayout() const { return m_layout; }
118 inline bool LayoutHasBeenSet() const { return m_layoutHasBeenSet; }
119 inline void SetLayout(Layout value) { m_layoutHasBeenSet = true; m_layout = value; }
120 inline InAppTemplateResponse& WithLayout(Layout value) { SetLayout(value); return *this;}
122
124
129 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
130 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
131 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
132 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
133 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
134 InAppTemplateResponse& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
135 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
136 InAppTemplateResponse& AddTags(TagsKeyT&& key, TagsValueT&& value) {
137 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
138 }
140
142
145 inline const Aws::String& GetTemplateDescription() const { return m_templateDescription; }
146 inline bool TemplateDescriptionHasBeenSet() const { return m_templateDescriptionHasBeenSet; }
147 template<typename TemplateDescriptionT = Aws::String>
148 void SetTemplateDescription(TemplateDescriptionT&& value) { m_templateDescriptionHasBeenSet = true; m_templateDescription = std::forward<TemplateDescriptionT>(value); }
149 template<typename TemplateDescriptionT = Aws::String>
150 InAppTemplateResponse& WithTemplateDescription(TemplateDescriptionT&& value) { SetTemplateDescription(std::forward<TemplateDescriptionT>(value)); return *this;}
152
154
157 inline const Aws::String& GetTemplateName() const { return m_templateName; }
158 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
159 template<typename TemplateNameT = Aws::String>
160 void SetTemplateName(TemplateNameT&& value) { m_templateNameHasBeenSet = true; m_templateName = std::forward<TemplateNameT>(value); }
161 template<typename TemplateNameT = Aws::String>
162 InAppTemplateResponse& WithTemplateName(TemplateNameT&& value) { SetTemplateName(std::forward<TemplateNameT>(value)); return *this;}
164
166
169 inline TemplateType GetTemplateType() const { return m_templateType; }
170 inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; }
171 inline void SetTemplateType(TemplateType value) { m_templateTypeHasBeenSet = true; m_templateType = value; }
174
176
179 inline const Aws::String& GetVersion() const { return m_version; }
180 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
181 template<typename VersionT = Aws::String>
182 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
183 template<typename VersionT = Aws::String>
184 InAppTemplateResponse& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
186 private:
187
188 Aws::String m_arn;
189 bool m_arnHasBeenSet = false;
190
192 bool m_contentHasBeenSet = false;
193
194 Aws::String m_creationDate;
195 bool m_creationDateHasBeenSet = false;
196
198 bool m_customConfigHasBeenSet = false;
199
200 Aws::String m_lastModifiedDate;
201 bool m_lastModifiedDateHasBeenSet = false;
202
203 Layout m_layout{Layout::NOT_SET};
204 bool m_layoutHasBeenSet = false;
205
207 bool m_tagsHasBeenSet = false;
208
209 Aws::String m_templateDescription;
210 bool m_templateDescriptionHasBeenSet = false;
211
212 Aws::String m_templateName;
213 bool m_templateNameHasBeenSet = false;
214
215 TemplateType m_templateType{TemplateType::NOT_SET};
216 bool m_templateTypeHasBeenSet = false;
217
218 Aws::String m_version;
219 bool m_versionHasBeenSet = false;
220 };
221
222} // namespace Model
223} // namespace Pinpoint
224} // 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