AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
PushNotificationTemplateRequest.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
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Pinpoint {
24namespace Model {
25
34 public:
35 AWS_PINPOINT_API PushNotificationTemplateRequest() = default;
38 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
46 inline const AndroidPushNotificationTemplate& GetADM() const { return m_aDM; }
47 inline bool ADMHasBeenSet() const { return m_aDMHasBeenSet; }
48 template <typename ADMT = AndroidPushNotificationTemplate>
49 void SetADM(ADMT&& value) {
50 m_aDMHasBeenSet = true;
51 m_aDM = std::forward<ADMT>(value);
52 }
53 template <typename ADMT = AndroidPushNotificationTemplate>
55 SetADM(std::forward<ADMT>(value));
56 return *this;
57 }
59
61
66 inline const APNSPushNotificationTemplate& GetAPNS() const { return m_aPNS; }
67 inline bool APNSHasBeenSet() const { return m_aPNSHasBeenSet; }
68 template <typename APNST = APNSPushNotificationTemplate>
69 void SetAPNS(APNST&& value) {
70 m_aPNSHasBeenSet = true;
71 m_aPNS = std::forward<APNST>(value);
72 }
73 template <typename APNST = APNSPushNotificationTemplate>
75 SetAPNS(std::forward<APNST>(value));
76 return *this;
77 }
79
81
86 inline const AndroidPushNotificationTemplate& GetBaidu() const { return m_baidu; }
87 inline bool BaiduHasBeenSet() const { return m_baiduHasBeenSet; }
88 template <typename BaiduT = AndroidPushNotificationTemplate>
89 void SetBaidu(BaiduT&& value) {
90 m_baiduHasBeenSet = true;
91 m_baidu = std::forward<BaiduT>(value);
92 }
93 template <typename BaiduT = AndroidPushNotificationTemplate>
95 SetBaidu(std::forward<BaiduT>(value));
96 return *this;
97 }
99
101
104 inline const DefaultPushNotificationTemplate& GetDefault() const { return m_default; }
105 inline bool DefaultHasBeenSet() const { return m_defaultHasBeenSet; }
106 template <typename DefaultT = DefaultPushNotificationTemplate>
107 void SetDefault(DefaultT&& value) {
108 m_defaultHasBeenSet = true;
109 m_default = std::forward<DefaultT>(value);
110 }
111 template <typename DefaultT = DefaultPushNotificationTemplate>
113 SetDefault(std::forward<DefaultT>(value));
114 return *this;
115 }
117
119
127 inline const Aws::String& GetDefaultSubstitutions() const { return m_defaultSubstitutions; }
128 inline bool DefaultSubstitutionsHasBeenSet() const { return m_defaultSubstitutionsHasBeenSet; }
129 template <typename DefaultSubstitutionsT = Aws::String>
130 void SetDefaultSubstitutions(DefaultSubstitutionsT&& value) {
131 m_defaultSubstitutionsHasBeenSet = true;
132 m_defaultSubstitutions = std::forward<DefaultSubstitutionsT>(value);
133 }
134 template <typename DefaultSubstitutionsT = Aws::String>
136 SetDefaultSubstitutions(std::forward<DefaultSubstitutionsT>(value));
137 return *this;
138 }
140
142
148 inline const AndroidPushNotificationTemplate& GetGCM() const { return m_gCM; }
149 inline bool GCMHasBeenSet() const { return m_gCMHasBeenSet; }
150 template <typename GCMT = AndroidPushNotificationTemplate>
151 void SetGCM(GCMT&& value) {
152 m_gCMHasBeenSet = true;
153 m_gCM = std::forward<GCMT>(value);
154 }
155 template <typename GCMT = AndroidPushNotificationTemplate>
157 SetGCM(std::forward<GCMT>(value));
158 return *this;
159 }
161
163
170 inline const Aws::String& GetRecommenderId() const { return m_recommenderId; }
171 inline bool RecommenderIdHasBeenSet() const { return m_recommenderIdHasBeenSet; }
172 template <typename RecommenderIdT = Aws::String>
173 void SetRecommenderId(RecommenderIdT&& value) {
174 m_recommenderIdHasBeenSet = true;
175 m_recommenderId = std::forward<RecommenderIdT>(value);
176 }
177 template <typename RecommenderIdT = Aws::String>
179 SetRecommenderId(std::forward<RecommenderIdT>(value));
180 return *this;
181 }
183
185
198 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
199 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
200 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
201 void SetTags(TagsT&& value) {
202 m_tagsHasBeenSet = true;
203 m_tags = std::forward<TagsT>(value);
204 }
205 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
207 SetTags(std::forward<TagsT>(value));
208 return *this;
209 }
210 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
211 PushNotificationTemplateRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
212 m_tagsHasBeenSet = true;
213 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
214 return *this;
215 }
217
219
222 inline const Aws::String& GetTemplateDescription() const { return m_templateDescription; }
223 inline bool TemplateDescriptionHasBeenSet() const { return m_templateDescriptionHasBeenSet; }
224 template <typename TemplateDescriptionT = Aws::String>
225 void SetTemplateDescription(TemplateDescriptionT&& value) {
226 m_templateDescriptionHasBeenSet = true;
227 m_templateDescription = std::forward<TemplateDescriptionT>(value);
228 }
229 template <typename TemplateDescriptionT = Aws::String>
231 SetTemplateDescription(std::forward<TemplateDescriptionT>(value));
232 return *this;
233 }
235 private:
236 AndroidPushNotificationTemplate m_aDM;
237
239
240 AndroidPushNotificationTemplate m_baidu;
241
243
244 Aws::String m_defaultSubstitutions;
245
246 AndroidPushNotificationTemplate m_gCM;
247
248 Aws::String m_recommenderId;
249
251
252 Aws::String m_templateDescription;
253 bool m_aDMHasBeenSet = false;
254 bool m_aPNSHasBeenSet = false;
255 bool m_baiduHasBeenSet = false;
256 bool m_defaultHasBeenSet = false;
257 bool m_defaultSubstitutionsHasBeenSet = false;
258 bool m_gCMHasBeenSet = false;
259 bool m_recommenderIdHasBeenSet = false;
260 bool m_tagsHasBeenSet = false;
261 bool m_templateDescriptionHasBeenSet = false;
262};
263
264} // namespace Model
265} // namespace Pinpoint
266} // namespace Aws
PushNotificationTemplateRequest & WithTags(TagsT &&value)
PushNotificationTemplateRequest & WithDefaultSubstitutions(DefaultSubstitutionsT &&value)
PushNotificationTemplateRequest & WithBaidu(BaiduT &&value)
PushNotificationTemplateRequest & WithTemplateDescription(TemplateDescriptionT &&value)
AWS_PINPOINT_API PushNotificationTemplateRequest(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API PushNotificationTemplateRequest()=default
const AndroidPushNotificationTemplate & GetBaidu() const
const AndroidPushNotificationTemplate & GetADM() const
PushNotificationTemplateRequest & WithADM(ADMT &&value)
PushNotificationTemplateRequest & WithGCM(GCMT &&value)
PushNotificationTemplateRequest & WithDefault(DefaultT &&value)
AWS_PINPOINT_API PushNotificationTemplateRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
PushNotificationTemplateRequest & WithRecommenderId(RecommenderIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
PushNotificationTemplateRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
const DefaultPushNotificationTemplate & GetDefault() const
PushNotificationTemplateRequest & WithAPNS(APNST &&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