AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
PushNotificationTemplateResponse.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/pinpoint/Pinpoint_EXPORTS.h>
10#include <aws/pinpoint/model/APNSPushNotificationTemplate.h>
11#include <aws/pinpoint/model/AndroidPushNotificationTemplate.h>
12#include <aws/pinpoint/model/DefaultPushNotificationTemplate.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
35 public:
36 AWS_PINPOINT_API PushNotificationTemplateResponse() = default;
39 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
47 inline const AndroidPushNotificationTemplate& GetADM() const { return m_aDM; }
48 inline bool ADMHasBeenSet() const { return m_aDMHasBeenSet; }
49 template <typename ADMT = AndroidPushNotificationTemplate>
50 void SetADM(ADMT&& value) {
51 m_aDMHasBeenSet = true;
52 m_aDM = std::forward<ADMT>(value);
53 }
54 template <typename ADMT = AndroidPushNotificationTemplate>
56 SetADM(std::forward<ADMT>(value));
57 return *this;
58 }
60
62
67 inline const APNSPushNotificationTemplate& GetAPNS() const { return m_aPNS; }
68 inline bool APNSHasBeenSet() const { return m_aPNSHasBeenSet; }
69 template <typename APNST = APNSPushNotificationTemplate>
70 void SetAPNS(APNST&& value) {
71 m_aPNSHasBeenSet = true;
72 m_aPNS = std::forward<APNST>(value);
73 }
74 template <typename APNST = APNSPushNotificationTemplate>
76 SetAPNS(std::forward<APNST>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetArn() const { return m_arn; }
86 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
87 template <typename ArnT = Aws::String>
88 void SetArn(ArnT&& value) {
89 m_arnHasBeenSet = true;
90 m_arn = std::forward<ArnT>(value);
91 }
92 template <typename ArnT = Aws::String>
94 SetArn(std::forward<ArnT>(value));
95 return *this;
96 }
98
100
105 inline const AndroidPushNotificationTemplate& GetBaidu() const { return m_baidu; }
106 inline bool BaiduHasBeenSet() const { return m_baiduHasBeenSet; }
107 template <typename BaiduT = AndroidPushNotificationTemplate>
108 void SetBaidu(BaiduT&& value) {
109 m_baiduHasBeenSet = true;
110 m_baidu = std::forward<BaiduT>(value);
111 }
112 template <typename BaiduT = AndroidPushNotificationTemplate>
114 SetBaidu(std::forward<BaiduT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
124 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
125 template <typename CreationDateT = Aws::String>
126 void SetCreationDate(CreationDateT&& value) {
127 m_creationDateHasBeenSet = true;
128 m_creationDate = std::forward<CreationDateT>(value);
129 }
130 template <typename CreationDateT = Aws::String>
132 SetCreationDate(std::forward<CreationDateT>(value));
133 return *this;
134 }
136
138
141 inline const DefaultPushNotificationTemplate& GetDefault() const { return m_default; }
142 inline bool DefaultHasBeenSet() const { return m_defaultHasBeenSet; }
143 template <typename DefaultT = DefaultPushNotificationTemplate>
144 void SetDefault(DefaultT&& value) {
145 m_defaultHasBeenSet = true;
146 m_default = std::forward<DefaultT>(value);
147 }
148 template <typename DefaultT = DefaultPushNotificationTemplate>
150 SetDefault(std::forward<DefaultT>(value));
151 return *this;
152 }
154
156
162 inline const Aws::String& GetDefaultSubstitutions() const { return m_defaultSubstitutions; }
163 inline bool DefaultSubstitutionsHasBeenSet() const { return m_defaultSubstitutionsHasBeenSet; }
164 template <typename DefaultSubstitutionsT = Aws::String>
165 void SetDefaultSubstitutions(DefaultSubstitutionsT&& value) {
166 m_defaultSubstitutionsHasBeenSet = true;
167 m_defaultSubstitutions = std::forward<DefaultSubstitutionsT>(value);
168 }
169 template <typename DefaultSubstitutionsT = Aws::String>
171 SetDefaultSubstitutions(std::forward<DefaultSubstitutionsT>(value));
172 return *this;
173 }
175
177
183 inline const AndroidPushNotificationTemplate& GetGCM() const { return m_gCM; }
184 inline bool GCMHasBeenSet() const { return m_gCMHasBeenSet; }
185 template <typename GCMT = AndroidPushNotificationTemplate>
186 void SetGCM(GCMT&& value) {
187 m_gCMHasBeenSet = true;
188 m_gCM = std::forward<GCMT>(value);
189 }
190 template <typename GCMT = AndroidPushNotificationTemplate>
192 SetGCM(std::forward<GCMT>(value));
193 return *this;
194 }
196
198
202 inline const Aws::String& GetLastModifiedDate() const { return m_lastModifiedDate; }
203 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
204 template <typename LastModifiedDateT = Aws::String>
205 void SetLastModifiedDate(LastModifiedDateT&& value) {
206 m_lastModifiedDateHasBeenSet = true;
207 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
208 }
209 template <typename LastModifiedDateT = Aws::String>
211 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
212 return *this;
213 }
215
217
221 inline const Aws::String& GetRecommenderId() const { return m_recommenderId; }
222 inline bool RecommenderIdHasBeenSet() const { return m_recommenderIdHasBeenSet; }
223 template <typename RecommenderIdT = Aws::String>
224 void SetRecommenderId(RecommenderIdT&& value) {
225 m_recommenderIdHasBeenSet = true;
226 m_recommenderId = std::forward<RecommenderIdT>(value);
227 }
228 template <typename RecommenderIdT = Aws::String>
230 SetRecommenderId(std::forward<RecommenderIdT>(value));
231 return *this;
232 }
234
236
241 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
242 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
243 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
244 void SetTags(TagsT&& value) {
245 m_tagsHasBeenSet = true;
246 m_tags = std::forward<TagsT>(value);
247 }
248 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
250 SetTags(std::forward<TagsT>(value));
251 return *this;
252 }
253 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
254 PushNotificationTemplateResponse& AddTags(TagsKeyT&& key, TagsValueT&& value) {
255 m_tagsHasBeenSet = true;
256 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
257 return *this;
258 }
260
262
265 inline const Aws::String& GetTemplateDescription() const { return m_templateDescription; }
266 inline bool TemplateDescriptionHasBeenSet() const { return m_templateDescriptionHasBeenSet; }
267 template <typename TemplateDescriptionT = Aws::String>
268 void SetTemplateDescription(TemplateDescriptionT&& value) {
269 m_templateDescriptionHasBeenSet = true;
270 m_templateDescription = std::forward<TemplateDescriptionT>(value);
271 }
272 template <typename TemplateDescriptionT = Aws::String>
274 SetTemplateDescription(std::forward<TemplateDescriptionT>(value));
275 return *this;
276 }
278
280
283 inline const Aws::String& GetTemplateName() const { return m_templateName; }
284 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
285 template <typename TemplateNameT = Aws::String>
286 void SetTemplateName(TemplateNameT&& value) {
287 m_templateNameHasBeenSet = true;
288 m_templateName = std::forward<TemplateNameT>(value);
289 }
290 template <typename TemplateNameT = Aws::String>
292 SetTemplateName(std::forward<TemplateNameT>(value));
293 return *this;
294 }
296
298
302 inline TemplateType GetTemplateType() const { return m_templateType; }
303 inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; }
304 inline void SetTemplateType(TemplateType value) {
305 m_templateTypeHasBeenSet = true;
306 m_templateType = value;
307 }
309 SetTemplateType(value);
310 return *this;
311 }
313
315
320 inline const Aws::String& GetVersion() const { return m_version; }
321 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
322 template <typename VersionT = Aws::String>
323 void SetVersion(VersionT&& value) {
324 m_versionHasBeenSet = true;
325 m_version = std::forward<VersionT>(value);
326 }
327 template <typename VersionT = Aws::String>
329 SetVersion(std::forward<VersionT>(value));
330 return *this;
331 }
333 private:
334 AndroidPushNotificationTemplate m_aDM;
335
337
338 Aws::String m_arn;
339
340 AndroidPushNotificationTemplate m_baidu;
341
342 Aws::String m_creationDate;
343
345
346 Aws::String m_defaultSubstitutions;
347
348 AndroidPushNotificationTemplate m_gCM;
349
350 Aws::String m_lastModifiedDate;
351
352 Aws::String m_recommenderId;
353
355
356 Aws::String m_templateDescription;
357
358 Aws::String m_templateName;
359
360 TemplateType m_templateType{TemplateType::NOT_SET};
361
362 Aws::String m_version;
363 bool m_aDMHasBeenSet = false;
364 bool m_aPNSHasBeenSet = false;
365 bool m_arnHasBeenSet = false;
366 bool m_baiduHasBeenSet = false;
367 bool m_creationDateHasBeenSet = false;
368 bool m_defaultHasBeenSet = false;
369 bool m_defaultSubstitutionsHasBeenSet = false;
370 bool m_gCMHasBeenSet = false;
371 bool m_lastModifiedDateHasBeenSet = false;
372 bool m_recommenderIdHasBeenSet = false;
373 bool m_tagsHasBeenSet = false;
374 bool m_templateDescriptionHasBeenSet = false;
375 bool m_templateNameHasBeenSet = false;
376 bool m_templateTypeHasBeenSet = false;
377 bool m_versionHasBeenSet = false;
378};
379
380} // namespace Model
381} // namespace Pinpoint
382} // namespace Aws
PushNotificationTemplateResponse & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_PINPOINT_API PushNotificationTemplateResponse(Aws::Utils::Json::JsonView jsonValue)
PushNotificationTemplateResponse & WithTemplateDescription(TemplateDescriptionT &&value)
PushNotificationTemplateResponse & WithTemplateName(TemplateNameT &&value)
PushNotificationTemplateResponse & WithVersion(VersionT &&value)
PushNotificationTemplateResponse & WithArn(ArnT &&value)
PushNotificationTemplateResponse & WithLastModifiedDate(LastModifiedDateT &&value)
PushNotificationTemplateResponse & WithADM(ADMT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_PINPOINT_API PushNotificationTemplateResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
PushNotificationTemplateResponse & WithTemplateType(TemplateType value)
PushNotificationTemplateResponse & WithBaidu(BaiduT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
PushNotificationTemplateResponse & WithCreationDate(CreationDateT &&value)
AWS_PINPOINT_API PushNotificationTemplateResponse()=default
PushNotificationTemplateResponse & WithDefaultSubstitutions(DefaultSubstitutionsT &&value)
PushNotificationTemplateResponse & WithRecommenderId(RecommenderIdT &&value)
PushNotificationTemplateResponse & WithDefault(DefaultT &&value)
PushNotificationTemplateResponse & WithAPNS(APNST &&value)
PushNotificationTemplateResponse & WithTags(TagsT &&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
Aws::Utils::Json::JsonValue JsonValue