AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PushNotificationTemplateResponse.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/pinpoint/model/AndroidPushNotificationTemplate.h>
9#include <aws/pinpoint/model/APNSPushNotificationTemplate.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/pinpoint/model/DefaultPushNotificationTemplate.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/pinpoint/model/TemplateType.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
39 {
40 public:
44 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
53 inline const AndroidPushNotificationTemplate& GetADM() const{ return m_aDM; }
54 inline bool ADMHasBeenSet() const { return m_aDMHasBeenSet; }
55 inline void SetADM(const AndroidPushNotificationTemplate& value) { m_aDMHasBeenSet = true; m_aDM = value; }
56 inline void SetADM(AndroidPushNotificationTemplate&& value) { m_aDMHasBeenSet = true; m_aDM = std::move(value); }
57 inline PushNotificationTemplateResponse& WithADM(const AndroidPushNotificationTemplate& value) { SetADM(value); return *this;}
58 inline PushNotificationTemplateResponse& WithADM(AndroidPushNotificationTemplate&& value) { SetADM(std::move(value)); return *this;}
60
62
67 inline const APNSPushNotificationTemplate& GetAPNS() const{ return m_aPNS; }
68 inline bool APNSHasBeenSet() const { return m_aPNSHasBeenSet; }
69 inline void SetAPNS(const APNSPushNotificationTemplate& value) { m_aPNSHasBeenSet = true; m_aPNS = value; }
70 inline void SetAPNS(APNSPushNotificationTemplate&& value) { m_aPNSHasBeenSet = true; m_aPNS = std::move(value); }
72 inline PushNotificationTemplateResponse& WithAPNS(APNSPushNotificationTemplate&& value) { SetAPNS(std::move(value)); return *this;}
74
76
79 inline const Aws::String& GetArn() const{ return m_arn; }
80 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
81 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
82 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
83 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
84 inline PushNotificationTemplateResponse& WithArn(const Aws::String& value) { SetArn(value); return *this;}
85 inline PushNotificationTemplateResponse& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
86 inline PushNotificationTemplateResponse& WithArn(const char* value) { SetArn(value); return *this;}
88
90
95 inline const AndroidPushNotificationTemplate& GetBaidu() const{ return m_baidu; }
96 inline bool BaiduHasBeenSet() const { return m_baiduHasBeenSet; }
97 inline void SetBaidu(const AndroidPushNotificationTemplate& value) { m_baiduHasBeenSet = true; m_baidu = value; }
98 inline void SetBaidu(AndroidPushNotificationTemplate&& value) { m_baiduHasBeenSet = true; m_baidu = std::move(value); }
99 inline PushNotificationTemplateResponse& WithBaidu(const AndroidPushNotificationTemplate& value) { SetBaidu(value); return *this;}
100 inline PushNotificationTemplateResponse& WithBaidu(AndroidPushNotificationTemplate&& value) { SetBaidu(std::move(value)); return *this;}
102
104
107 inline const Aws::String& GetCreationDate() const{ return m_creationDate; }
108 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
109 inline void SetCreationDate(const Aws::String& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
110 inline void SetCreationDate(Aws::String&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
111 inline void SetCreationDate(const char* value) { m_creationDateHasBeenSet = true; m_creationDate.assign(value); }
113 inline PushNotificationTemplateResponse& WithCreationDate(Aws::String&& value) { SetCreationDate(std::move(value)); return *this;}
114 inline PushNotificationTemplateResponse& WithCreationDate(const char* value) { SetCreationDate(value); return *this;}
116
118
121 inline const DefaultPushNotificationTemplate& GetDefault() const{ return m_default; }
122 inline bool DefaultHasBeenSet() const { return m_defaultHasBeenSet; }
123 inline void SetDefault(const DefaultPushNotificationTemplate& value) { m_defaultHasBeenSet = true; m_default = value; }
124 inline void SetDefault(DefaultPushNotificationTemplate&& value) { m_defaultHasBeenSet = true; m_default = std::move(value); }
128
130
136 inline const Aws::String& GetDefaultSubstitutions() const{ return m_defaultSubstitutions; }
137 inline bool DefaultSubstitutionsHasBeenSet() const { return m_defaultSubstitutionsHasBeenSet; }
138 inline void SetDefaultSubstitutions(const Aws::String& value) { m_defaultSubstitutionsHasBeenSet = true; m_defaultSubstitutions = value; }
139 inline void SetDefaultSubstitutions(Aws::String&& value) { m_defaultSubstitutionsHasBeenSet = true; m_defaultSubstitutions = std::move(value); }
140 inline void SetDefaultSubstitutions(const char* value) { m_defaultSubstitutionsHasBeenSet = true; m_defaultSubstitutions.assign(value); }
145
147
153 inline const AndroidPushNotificationTemplate& GetGCM() const{ return m_gCM; }
154 inline bool GCMHasBeenSet() const { return m_gCMHasBeenSet; }
155 inline void SetGCM(const AndroidPushNotificationTemplate& value) { m_gCMHasBeenSet = true; m_gCM = value; }
156 inline void SetGCM(AndroidPushNotificationTemplate&& value) { m_gCMHasBeenSet = true; m_gCM = std::move(value); }
157 inline PushNotificationTemplateResponse& WithGCM(const AndroidPushNotificationTemplate& value) { SetGCM(value); return *this;}
158 inline PushNotificationTemplateResponse& WithGCM(AndroidPushNotificationTemplate&& value) { SetGCM(std::move(value)); return *this;}
160
162
166 inline const Aws::String& GetLastModifiedDate() const{ return m_lastModifiedDate; }
167 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
168 inline void SetLastModifiedDate(const Aws::String& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
169 inline void SetLastModifiedDate(Aws::String&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); }
170 inline void SetLastModifiedDate(const char* value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate.assign(value); }
173 inline PushNotificationTemplateResponse& WithLastModifiedDate(const char* value) { SetLastModifiedDate(value); return *this;}
175
177
181 inline const Aws::String& GetRecommenderId() const{ return m_recommenderId; }
182 inline bool RecommenderIdHasBeenSet() const { return m_recommenderIdHasBeenSet; }
183 inline void SetRecommenderId(const Aws::String& value) { m_recommenderIdHasBeenSet = true; m_recommenderId = value; }
184 inline void SetRecommenderId(Aws::String&& value) { m_recommenderIdHasBeenSet = true; m_recommenderId = std::move(value); }
185 inline void SetRecommenderId(const char* value) { m_recommenderIdHasBeenSet = true; m_recommenderId.assign(value); }
187 inline PushNotificationTemplateResponse& WithRecommenderId(Aws::String&& value) { SetRecommenderId(std::move(value)); return *this;}
188 inline PushNotificationTemplateResponse& WithRecommenderId(const char* value) { SetRecommenderId(value); return *this;}
190
192
197 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
198 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
199 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
200 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
202 inline PushNotificationTemplateResponse& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
203 inline PushNotificationTemplateResponse& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
204 inline PushNotificationTemplateResponse& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
205 inline PushNotificationTemplateResponse& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
206 inline PushNotificationTemplateResponse& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
207 inline PushNotificationTemplateResponse& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
208 inline PushNotificationTemplateResponse& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
209 inline PushNotificationTemplateResponse& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
211
213
216 inline const Aws::String& GetTemplateDescription() const{ return m_templateDescription; }
217 inline bool TemplateDescriptionHasBeenSet() const { return m_templateDescriptionHasBeenSet; }
218 inline void SetTemplateDescription(const Aws::String& value) { m_templateDescriptionHasBeenSet = true; m_templateDescription = value; }
219 inline void SetTemplateDescription(Aws::String&& value) { m_templateDescriptionHasBeenSet = true; m_templateDescription = std::move(value); }
220 inline void SetTemplateDescription(const char* value) { m_templateDescriptionHasBeenSet = true; m_templateDescription.assign(value); }
223 inline PushNotificationTemplateResponse& WithTemplateDescription(const char* value) { SetTemplateDescription(value); return *this;}
225
227
230 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
231 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
232 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
233 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
234 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
236 inline PushNotificationTemplateResponse& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
237 inline PushNotificationTemplateResponse& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
239
241
245 inline const TemplateType& GetTemplateType() const{ return m_templateType; }
246 inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; }
247 inline void SetTemplateType(const TemplateType& value) { m_templateTypeHasBeenSet = true; m_templateType = value; }
248 inline void SetTemplateType(TemplateType&& value) { m_templateTypeHasBeenSet = true; m_templateType = std::move(value); }
250 inline PushNotificationTemplateResponse& WithTemplateType(TemplateType&& value) { SetTemplateType(std::move(value)); return *this;}
252
254
259 inline const Aws::String& GetVersion() const{ return m_version; }
260 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
261 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
262 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
263 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
264 inline PushNotificationTemplateResponse& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
265 inline PushNotificationTemplateResponse& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
266 inline PushNotificationTemplateResponse& WithVersion(const char* value) { SetVersion(value); return *this;}
268 private:
269
270 AndroidPushNotificationTemplate m_aDM;
271 bool m_aDMHasBeenSet = false;
272
274 bool m_aPNSHasBeenSet = false;
275
276 Aws::String m_arn;
277 bool m_arnHasBeenSet = false;
278
279 AndroidPushNotificationTemplate m_baidu;
280 bool m_baiduHasBeenSet = false;
281
282 Aws::String m_creationDate;
283 bool m_creationDateHasBeenSet = false;
284
286 bool m_defaultHasBeenSet = false;
287
288 Aws::String m_defaultSubstitutions;
289 bool m_defaultSubstitutionsHasBeenSet = false;
290
291 AndroidPushNotificationTemplate m_gCM;
292 bool m_gCMHasBeenSet = false;
293
294 Aws::String m_lastModifiedDate;
295 bool m_lastModifiedDateHasBeenSet = false;
296
297 Aws::String m_recommenderId;
298 bool m_recommenderIdHasBeenSet = false;
299
301 bool m_tagsHasBeenSet = false;
302
303 Aws::String m_templateDescription;
304 bool m_templateDescriptionHasBeenSet = false;
305
306 Aws::String m_templateName;
307 bool m_templateNameHasBeenSet = false;
308
309 TemplateType m_templateType;
310 bool m_templateTypeHasBeenSet = false;
311
312 Aws::String m_version;
313 bool m_versionHasBeenSet = false;
314 };
315
316} // namespace Model
317} // namespace Pinpoint
318} // namespace Aws
PushNotificationTemplateResponse & WithTemplateDescription(const char *value)
PushNotificationTemplateResponse & WithTemplateDescription(Aws::String &&value)
PushNotificationTemplateResponse & AddTags(const Aws::String &key, Aws::String &&value)
AWS_PINPOINT_API PushNotificationTemplateResponse(Aws::Utils::Json::JsonView jsonValue)
PushNotificationTemplateResponse & WithGCM(AndroidPushNotificationTemplate &&value)
PushNotificationTemplateResponse & WithTemplateName(const Aws::String &value)
void SetBaidu(const AndroidPushNotificationTemplate &value)
PushNotificationTemplateResponse & AddTags(Aws::String &&key, const Aws::String &value)
PushNotificationTemplateResponse & WithDefaultSubstitutions(Aws::String &&value)
PushNotificationTemplateResponse & WithADM(const AndroidPushNotificationTemplate &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
PushNotificationTemplateResponse & WithVersion(const char *value)
PushNotificationTemplateResponse & WithTemplateType(TemplateType &&value)
PushNotificationTemplateResponse & WithTemplateName(Aws::String &&value)
PushNotificationTemplateResponse & WithDefault(const DefaultPushNotificationTemplate &value)
PushNotificationTemplateResponse & WithCreationDate(Aws::String &&value)
void SetDefault(const DefaultPushNotificationTemplate &value)
PushNotificationTemplateResponse & AddTags(const char *key, Aws::String &&value)
PushNotificationTemplateResponse & WithTemplateDescription(const Aws::String &value)
PushNotificationTemplateResponse & WithBaidu(const AndroidPushNotificationTemplate &value)
PushNotificationTemplateResponse & WithVersion(const Aws::String &value)
PushNotificationTemplateResponse & AddTags(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
PushNotificationTemplateResponse & WithLastModifiedDate(Aws::String &&value)
PushNotificationTemplateResponse & AddTags(const char *key, const char *value)
PushNotificationTemplateResponse & WithAPNS(APNSPushNotificationTemplate &&value)
PushNotificationTemplateResponse & WithDefaultSubstitutions(const char *value)
PushNotificationTemplateResponse & WithLastModifiedDate(const Aws::String &value)
PushNotificationTemplateResponse & WithGCM(const AndroidPushNotificationTemplate &value)
PushNotificationTemplateResponse & WithDefault(DefaultPushNotificationTemplate &&value)
PushNotificationTemplateResponse & WithRecommenderId(Aws::String &&value)
PushNotificationTemplateResponse & WithDefaultSubstitutions(const Aws::String &value)
void SetGCM(const AndroidPushNotificationTemplate &value)
PushNotificationTemplateResponse & AddTags(Aws::String &&key, const char *value)
PushNotificationTemplateResponse & WithArn(Aws::String &&value)
AWS_PINPOINT_API PushNotificationTemplateResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
PushNotificationTemplateResponse & WithArn(const Aws::String &value)
PushNotificationTemplateResponse & AddTags(const Aws::String &key, const Aws::String &value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetADM(const AndroidPushNotificationTemplate &value)
PushNotificationTemplateResponse & WithADM(AndroidPushNotificationTemplate &&value)
PushNotificationTemplateResponse & WithVersion(Aws::String &&value)
PushNotificationTemplateResponse & WithRecommenderId(const Aws::String &value)
PushNotificationTemplateResponse & WithCreationDate(const char *value)
PushNotificationTemplateResponse & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
PushNotificationTemplateResponse & WithLastModifiedDate(const char *value)
PushNotificationTemplateResponse & WithCreationDate(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
PushNotificationTemplateResponse & WithRecommenderId(const char *value)
PushNotificationTemplateResponse & WithBaidu(AndroidPushNotificationTemplate &&value)
PushNotificationTemplateResponse & WithTemplateName(const char *value)
PushNotificationTemplateResponse & WithTemplateType(const TemplateType &value)
PushNotificationTemplateResponse & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
PushNotificationTemplateResponse & WithAPNS(const APNSPushNotificationTemplate &value)
PushNotificationTemplateResponse & WithArn(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
Aws::Utils::Json::JsonValue JsonValue