AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PushNotificationTemplateRequest.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/pinpoint/model/DefaultPushNotificationTemplate.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Pinpoint
26{
27namespace Model
28{
29
38 {
39 public:
43 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
52 inline const AndroidPushNotificationTemplate& GetADM() const{ return m_aDM; }
53 inline bool ADMHasBeenSet() const { return m_aDMHasBeenSet; }
54 inline void SetADM(const AndroidPushNotificationTemplate& value) { m_aDMHasBeenSet = true; m_aDM = value; }
55 inline void SetADM(AndroidPushNotificationTemplate&& value) { m_aDMHasBeenSet = true; m_aDM = std::move(value); }
56 inline PushNotificationTemplateRequest& WithADM(const AndroidPushNotificationTemplate& value) { SetADM(value); return *this;}
57 inline PushNotificationTemplateRequest& WithADM(AndroidPushNotificationTemplate&& value) { SetADM(std::move(value)); return *this;}
59
61
66 inline const APNSPushNotificationTemplate& GetAPNS() const{ return m_aPNS; }
67 inline bool APNSHasBeenSet() const { return m_aPNSHasBeenSet; }
68 inline void SetAPNS(const APNSPushNotificationTemplate& value) { m_aPNSHasBeenSet = true; m_aPNS = value; }
69 inline void SetAPNS(APNSPushNotificationTemplate&& value) { m_aPNSHasBeenSet = true; m_aPNS = std::move(value); }
71 inline PushNotificationTemplateRequest& WithAPNS(APNSPushNotificationTemplate&& value) { SetAPNS(std::move(value)); return *this;}
73
75
80 inline const AndroidPushNotificationTemplate& GetBaidu() const{ return m_baidu; }
81 inline bool BaiduHasBeenSet() const { return m_baiduHasBeenSet; }
82 inline void SetBaidu(const AndroidPushNotificationTemplate& value) { m_baiduHasBeenSet = true; m_baidu = value; }
83 inline void SetBaidu(AndroidPushNotificationTemplate&& value) { m_baiduHasBeenSet = true; m_baidu = std::move(value); }
84 inline PushNotificationTemplateRequest& WithBaidu(const AndroidPushNotificationTemplate& value) { SetBaidu(value); return *this;}
85 inline PushNotificationTemplateRequest& WithBaidu(AndroidPushNotificationTemplate&& value) { SetBaidu(std::move(value)); return *this;}
87
89
92 inline const DefaultPushNotificationTemplate& GetDefault() const{ return m_default; }
93 inline bool DefaultHasBeenSet() const { return m_defaultHasBeenSet; }
94 inline void SetDefault(const DefaultPushNotificationTemplate& value) { m_defaultHasBeenSet = true; m_default = value; }
95 inline void SetDefault(DefaultPushNotificationTemplate&& value) { m_defaultHasBeenSet = true; m_default = std::move(value); }
99
101
109 inline const Aws::String& GetDefaultSubstitutions() const{ return m_defaultSubstitutions; }
110 inline bool DefaultSubstitutionsHasBeenSet() const { return m_defaultSubstitutionsHasBeenSet; }
111 inline void SetDefaultSubstitutions(const Aws::String& value) { m_defaultSubstitutionsHasBeenSet = true; m_defaultSubstitutions = value; }
112 inline void SetDefaultSubstitutions(Aws::String&& value) { m_defaultSubstitutionsHasBeenSet = true; m_defaultSubstitutions = std::move(value); }
113 inline void SetDefaultSubstitutions(const char* value) { m_defaultSubstitutionsHasBeenSet = true; m_defaultSubstitutions.assign(value); }
116 inline PushNotificationTemplateRequest& WithDefaultSubstitutions(const char* value) { SetDefaultSubstitutions(value); return *this;}
118
120
126 inline const AndroidPushNotificationTemplate& GetGCM() const{ return m_gCM; }
127 inline bool GCMHasBeenSet() const { return m_gCMHasBeenSet; }
128 inline void SetGCM(const AndroidPushNotificationTemplate& value) { m_gCMHasBeenSet = true; m_gCM = value; }
129 inline void SetGCM(AndroidPushNotificationTemplate&& value) { m_gCMHasBeenSet = true; m_gCM = std::move(value); }
130 inline PushNotificationTemplateRequest& WithGCM(const AndroidPushNotificationTemplate& value) { SetGCM(value); return *this;}
131 inline PushNotificationTemplateRequest& WithGCM(AndroidPushNotificationTemplate&& value) { SetGCM(std::move(value)); return *this;}
133
135
142 inline const Aws::String& GetRecommenderId() const{ return m_recommenderId; }
143 inline bool RecommenderIdHasBeenSet() const { return m_recommenderIdHasBeenSet; }
144 inline void SetRecommenderId(const Aws::String& value) { m_recommenderIdHasBeenSet = true; m_recommenderId = value; }
145 inline void SetRecommenderId(Aws::String&& value) { m_recommenderIdHasBeenSet = true; m_recommenderId = std::move(value); }
146 inline void SetRecommenderId(const char* value) { m_recommenderIdHasBeenSet = true; m_recommenderId.assign(value); }
148 inline PushNotificationTemplateRequest& WithRecommenderId(Aws::String&& value) { SetRecommenderId(std::move(value)); return *this;}
149 inline PushNotificationTemplateRequest& WithRecommenderId(const char* value) { SetRecommenderId(value); return *this;}
151
153
166 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
167 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
168 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
169 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
171 inline PushNotificationTemplateRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
172 inline PushNotificationTemplateRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
173 inline PushNotificationTemplateRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
174 inline PushNotificationTemplateRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
175 inline PushNotificationTemplateRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
176 inline PushNotificationTemplateRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
177 inline PushNotificationTemplateRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
178 inline PushNotificationTemplateRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
180
182
185 inline const Aws::String& GetTemplateDescription() const{ return m_templateDescription; }
186 inline bool TemplateDescriptionHasBeenSet() const { return m_templateDescriptionHasBeenSet; }
187 inline void SetTemplateDescription(const Aws::String& value) { m_templateDescriptionHasBeenSet = true; m_templateDescription = value; }
188 inline void SetTemplateDescription(Aws::String&& value) { m_templateDescriptionHasBeenSet = true; m_templateDescription = std::move(value); }
189 inline void SetTemplateDescription(const char* value) { m_templateDescriptionHasBeenSet = true; m_templateDescription.assign(value); }
192 inline PushNotificationTemplateRequest& WithTemplateDescription(const char* value) { SetTemplateDescription(value); return *this;}
194 private:
195
196 AndroidPushNotificationTemplate m_aDM;
197 bool m_aDMHasBeenSet = false;
198
200 bool m_aPNSHasBeenSet = false;
201
202 AndroidPushNotificationTemplate m_baidu;
203 bool m_baiduHasBeenSet = false;
204
206 bool m_defaultHasBeenSet = false;
207
208 Aws::String m_defaultSubstitutions;
209 bool m_defaultSubstitutionsHasBeenSet = false;
210
211 AndroidPushNotificationTemplate m_gCM;
212 bool m_gCMHasBeenSet = false;
213
214 Aws::String m_recommenderId;
215 bool m_recommenderIdHasBeenSet = false;
216
218 bool m_tagsHasBeenSet = false;
219
220 Aws::String m_templateDescription;
221 bool m_templateDescriptionHasBeenSet = false;
222 };
223
224} // namespace Model
225} // namespace Pinpoint
226} // namespace Aws
PushNotificationTemplateRequest & WithDefault(DefaultPushNotificationTemplate &&value)
PushNotificationTemplateRequest & WithADM(const AndroidPushNotificationTemplate &value)
PushNotificationTemplateRequest & WithDefault(const DefaultPushNotificationTemplate &value)
PushNotificationTemplateRequest & WithTemplateDescription(const char *value)
void SetAPNS(const APNSPushNotificationTemplate &value)
PushNotificationTemplateRequest & AddTags(const char *key, Aws::String &&value)
AWS_PINPOINT_API PushNotificationTemplateRequest(Aws::Utils::Json::JsonView jsonValue)
PushNotificationTemplateRequest & WithDefaultSubstitutions(const Aws::String &value)
PushNotificationTemplateRequest & AddTags(const char *key, const char *value)
PushNotificationTemplateRequest & WithRecommenderId(const char *value)
PushNotificationTemplateRequest & WithRecommenderId(Aws::String &&value)
PushNotificationTemplateRequest & WithAPNS(const APNSPushNotificationTemplate &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
const AndroidPushNotificationTemplate & GetBaidu() const
PushNotificationTemplateRequest & WithTemplateDescription(Aws::String &&value)
PushNotificationTemplateRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
const AndroidPushNotificationTemplate & GetADM() const
PushNotificationTemplateRequest & AddTags(Aws::String &&key, const Aws::String &value)
PushNotificationTemplateRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
PushNotificationTemplateRequest & WithBaidu(AndroidPushNotificationTemplate &&value)
PushNotificationTemplateRequest & AddTags(Aws::String &&key, Aws::String &&value)
AWS_PINPOINT_API PushNotificationTemplateRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
PushNotificationTemplateRequest & WithADM(AndroidPushNotificationTemplate &&value)
void SetGCM(const AndroidPushNotificationTemplate &value)
PushNotificationTemplateRequest & WithDefaultSubstitutions(const char *value)
void SetDefault(const DefaultPushNotificationTemplate &value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
PushNotificationTemplateRequest & WithRecommenderId(const Aws::String &value)
const DefaultPushNotificationTemplate & GetDefault() const
PushNotificationTemplateRequest & WithDefaultSubstitutions(Aws::String &&value)
PushNotificationTemplateRequest & WithTemplateDescription(const Aws::String &value)
void SetBaidu(const AndroidPushNotificationTemplate &value)
PushNotificationTemplateRequest & AddTags(const Aws::String &key, Aws::String &&value)
PushNotificationTemplateRequest & AddTags(const Aws::String &key, const Aws::String &value)
PushNotificationTemplateRequest & WithGCM(AndroidPushNotificationTemplate &&value)
void SetADM(const AndroidPushNotificationTemplate &value)
PushNotificationTemplateRequest & WithGCM(const AndroidPushNotificationTemplate &value)
PushNotificationTemplateRequest & WithAPNS(APNSPushNotificationTemplate &&value)
PushNotificationTemplateRequest & AddTags(Aws::String &&key, const char *value)
PushNotificationTemplateRequest & WithBaidu(const AndroidPushNotificationTemplate &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