AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
ADMMessage.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/core/utils/memory/stl/AWSVector.h>
10#include <aws/pinpoint/Pinpoint_EXPORTS.h>
11#include <aws/pinpoint/model/Action.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Pinpoint {
23namespace Model {
24
33 public:
34 AWS_PINPOINT_API ADMMessage() = default;
35 AWS_PINPOINT_API ADMMessage(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PINPOINT_API ADMMessage& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
49 inline Action GetAction() const { return m_action; }
50 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
51 inline void SetAction(Action value) {
52 m_actionHasBeenSet = true;
53 m_action = value;
54 }
55 inline ADMMessage& WithAction(Action value) {
56 SetAction(value);
57 return *this;
58 }
60
62
65 inline const Aws::String& GetBody() const { return m_body; }
66 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
67 template <typename BodyT = Aws::String>
68 void SetBody(BodyT&& value) {
69 m_bodyHasBeenSet = true;
70 m_body = std::forward<BodyT>(value);
71 }
72 template <typename BodyT = Aws::String>
73 ADMMessage& WithBody(BodyT&& value) {
74 SetBody(std::forward<BodyT>(value));
75 return *this;
76 }
78
80
85 inline const Aws::String& GetConsolidationKey() const { return m_consolidationKey; }
86 inline bool ConsolidationKeyHasBeenSet() const { return m_consolidationKeyHasBeenSet; }
87 template <typename ConsolidationKeyT = Aws::String>
88 void SetConsolidationKey(ConsolidationKeyT&& value) {
89 m_consolidationKeyHasBeenSet = true;
90 m_consolidationKey = std::forward<ConsolidationKeyT>(value);
91 }
92 template <typename ConsolidationKeyT = Aws::String>
93 ADMMessage& WithConsolidationKey(ConsolidationKeyT&& value) {
94 SetConsolidationKey(std::forward<ConsolidationKeyT>(value));
95 return *this;
96 }
98
100
105 inline const Aws::Map<Aws::String, Aws::String>& GetData() const { return m_data; }
106 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
107 template <typename DataT = Aws::Map<Aws::String, Aws::String>>
108 void SetData(DataT&& value) {
109 m_dataHasBeenSet = true;
110 m_data = std::forward<DataT>(value);
111 }
112 template <typename DataT = Aws::Map<Aws::String, Aws::String>>
113 ADMMessage& WithData(DataT&& value) {
114 SetData(std::forward<DataT>(value));
115 return *this;
116 }
117 template <typename DataKeyT = Aws::String, typename DataValueT = Aws::String>
118 ADMMessage& AddData(DataKeyT&& key, DataValueT&& value) {
119 m_dataHasBeenSet = true;
120 m_data.emplace(std::forward<DataKeyT>(key), std::forward<DataValueT>(value));
121 return *this;
122 }
124
126
131 inline const Aws::String& GetExpiresAfter() const { return m_expiresAfter; }
132 inline bool ExpiresAfterHasBeenSet() const { return m_expiresAfterHasBeenSet; }
133 template <typename ExpiresAfterT = Aws::String>
134 void SetExpiresAfter(ExpiresAfterT&& value) {
135 m_expiresAfterHasBeenSet = true;
136 m_expiresAfter = std::forward<ExpiresAfterT>(value);
137 }
138 template <typename ExpiresAfterT = Aws::String>
139 ADMMessage& WithExpiresAfter(ExpiresAfterT&& value) {
140 SetExpiresAfter(std::forward<ExpiresAfterT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetIconReference() const { return m_iconReference; }
150 inline bool IconReferenceHasBeenSet() const { return m_iconReferenceHasBeenSet; }
151 template <typename IconReferenceT = Aws::String>
152 void SetIconReference(IconReferenceT&& value) {
153 m_iconReferenceHasBeenSet = true;
154 m_iconReference = std::forward<IconReferenceT>(value);
155 }
156 template <typename IconReferenceT = Aws::String>
157 ADMMessage& WithIconReference(IconReferenceT&& value) {
158 SetIconReference(std::forward<IconReferenceT>(value));
159 return *this;
160 }
162
164
168 inline const Aws::String& GetImageIconUrl() const { return m_imageIconUrl; }
169 inline bool ImageIconUrlHasBeenSet() const { return m_imageIconUrlHasBeenSet; }
170 template <typename ImageIconUrlT = Aws::String>
171 void SetImageIconUrl(ImageIconUrlT&& value) {
172 m_imageIconUrlHasBeenSet = true;
173 m_imageIconUrl = std::forward<ImageIconUrlT>(value);
174 }
175 template <typename ImageIconUrlT = Aws::String>
176 ADMMessage& WithImageIconUrl(ImageIconUrlT&& value) {
177 SetImageIconUrl(std::forward<ImageIconUrlT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::String& GetImageUrl() const { return m_imageUrl; }
187 inline bool ImageUrlHasBeenSet() const { return m_imageUrlHasBeenSet; }
188 template <typename ImageUrlT = Aws::String>
189 void SetImageUrl(ImageUrlT&& value) {
190 m_imageUrlHasBeenSet = true;
191 m_imageUrl = std::forward<ImageUrlT>(value);
192 }
193 template <typename ImageUrlT = Aws::String>
194 ADMMessage& WithImageUrl(ImageUrlT&& value) {
195 SetImageUrl(std::forward<ImageUrlT>(value));
196 return *this;
197 }
199
201
205 inline const Aws::String& GetMD5() const { return m_mD5; }
206 inline bool MD5HasBeenSet() const { return m_mD5HasBeenSet; }
207 template <typename MD5T = Aws::String>
208 void SetMD5(MD5T&& value) {
209 m_mD5HasBeenSet = true;
210 m_mD5 = std::forward<MD5T>(value);
211 }
212 template <typename MD5T = Aws::String>
213 ADMMessage& WithMD5(MD5T&& value) {
214 SetMD5(std::forward<MD5T>(value));
215 return *this;
216 }
218
220
225 inline const Aws::String& GetRawContent() const { return m_rawContent; }
226 inline bool RawContentHasBeenSet() const { return m_rawContentHasBeenSet; }
227 template <typename RawContentT = Aws::String>
228 void SetRawContent(RawContentT&& value) {
229 m_rawContentHasBeenSet = true;
230 m_rawContent = std::forward<RawContentT>(value);
231 }
232 template <typename RawContentT = Aws::String>
233 ADMMessage& WithRawContent(RawContentT&& value) {
234 SetRawContent(std::forward<RawContentT>(value));
235 return *this;
236 }
238
240
246 inline bool GetSilentPush() const { return m_silentPush; }
247 inline bool SilentPushHasBeenSet() const { return m_silentPushHasBeenSet; }
248 inline void SetSilentPush(bool value) {
249 m_silentPushHasBeenSet = true;
250 m_silentPush = value;
251 }
252 inline ADMMessage& WithSilentPush(bool value) {
253 SetSilentPush(value);
254 return *this;
255 }
257
259
263 inline const Aws::String& GetSmallImageIconUrl() const { return m_smallImageIconUrl; }
264 inline bool SmallImageIconUrlHasBeenSet() const { return m_smallImageIconUrlHasBeenSet; }
265 template <typename SmallImageIconUrlT = Aws::String>
266 void SetSmallImageIconUrl(SmallImageIconUrlT&& value) {
267 m_smallImageIconUrlHasBeenSet = true;
268 m_smallImageIconUrl = std::forward<SmallImageIconUrlT>(value);
269 }
270 template <typename SmallImageIconUrlT = Aws::String>
271 ADMMessage& WithSmallImageIconUrl(SmallImageIconUrlT&& value) {
272 SetSmallImageIconUrl(std::forward<SmallImageIconUrlT>(value));
273 return *this;
274 }
276
278
284 inline const Aws::String& GetSound() const { return m_sound; }
285 inline bool SoundHasBeenSet() const { return m_soundHasBeenSet; }
286 template <typename SoundT = Aws::String>
287 void SetSound(SoundT&& value) {
288 m_soundHasBeenSet = true;
289 m_sound = std::forward<SoundT>(value);
290 }
291 template <typename SoundT = Aws::String>
292 ADMMessage& WithSound(SoundT&& value) {
293 SetSound(std::forward<SoundT>(value));
294 return *this;
295 }
297
299
303 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetSubstitutions() const { return m_substitutions; }
304 inline bool SubstitutionsHasBeenSet() const { return m_substitutionsHasBeenSet; }
305 template <typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
306 void SetSubstitutions(SubstitutionsT&& value) {
307 m_substitutionsHasBeenSet = true;
308 m_substitutions = std::forward<SubstitutionsT>(value);
309 }
310 template <typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
311 ADMMessage& WithSubstitutions(SubstitutionsT&& value) {
312 SetSubstitutions(std::forward<SubstitutionsT>(value));
313 return *this;
314 }
315 template <typename SubstitutionsKeyT = Aws::String, typename SubstitutionsValueT = Aws::Vector<Aws::String>>
316 ADMMessage& AddSubstitutions(SubstitutionsKeyT&& key, SubstitutionsValueT&& value) {
317 m_substitutionsHasBeenSet = true;
318 m_substitutions.emplace(std::forward<SubstitutionsKeyT>(key), std::forward<SubstitutionsValueT>(value));
319 return *this;
320 }
322
324
328 inline const Aws::String& GetTitle() const { return m_title; }
329 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
330 template <typename TitleT = Aws::String>
331 void SetTitle(TitleT&& value) {
332 m_titleHasBeenSet = true;
333 m_title = std::forward<TitleT>(value);
334 }
335 template <typename TitleT = Aws::String>
336 ADMMessage& WithTitle(TitleT&& value) {
337 SetTitle(std::forward<TitleT>(value));
338 return *this;
339 }
341
343
347 inline const Aws::String& GetUrl() const { return m_url; }
348 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
349 template <typename UrlT = Aws::String>
350 void SetUrl(UrlT&& value) {
351 m_urlHasBeenSet = true;
352 m_url = std::forward<UrlT>(value);
353 }
354 template <typename UrlT = Aws::String>
355 ADMMessage& WithUrl(UrlT&& value) {
356 SetUrl(std::forward<UrlT>(value));
357 return *this;
358 }
360 private:
361 Action m_action{Action::NOT_SET};
362 bool m_actionHasBeenSet = false;
363
364 Aws::String m_body;
365 bool m_bodyHasBeenSet = false;
366
367 Aws::String m_consolidationKey;
368 bool m_consolidationKeyHasBeenSet = false;
369
371 bool m_dataHasBeenSet = false;
372
373 Aws::String m_expiresAfter;
374 bool m_expiresAfterHasBeenSet = false;
375
376 Aws::String m_iconReference;
377 bool m_iconReferenceHasBeenSet = false;
378
379 Aws::String m_imageIconUrl;
380 bool m_imageIconUrlHasBeenSet = false;
381
382 Aws::String m_imageUrl;
383 bool m_imageUrlHasBeenSet = false;
384
385 Aws::String m_mD5;
386 bool m_mD5HasBeenSet = false;
387
388 Aws::String m_rawContent;
389 bool m_rawContentHasBeenSet = false;
390
391 bool m_silentPush{false};
392 bool m_silentPushHasBeenSet = false;
393
394 Aws::String m_smallImageIconUrl;
395 bool m_smallImageIconUrlHasBeenSet = false;
396
397 Aws::String m_sound;
398 bool m_soundHasBeenSet = false;
399
401 bool m_substitutionsHasBeenSet = false;
402
403 Aws::String m_title;
404 bool m_titleHasBeenSet = false;
405
406 Aws::String m_url;
407 bool m_urlHasBeenSet = false;
408};
409
410} // namespace Model
411} // namespace Pinpoint
412} // namespace Aws
ADMMessage & WithTitle(TitleT &&value)
Definition ADMMessage.h:336
ADMMessage & WithMD5(MD5T &&value)
Definition ADMMessage.h:213
ADMMessage & WithSilentPush(bool value)
Definition ADMMessage.h:252
ADMMessage & WithAction(Action value)
Definition ADMMessage.h:55
const Aws::String & GetTitle() const
Definition ADMMessage.h:328
const Aws::String & GetBody() const
Definition ADMMessage.h:65
const Aws::String & GetIconReference() const
Definition ADMMessage.h:149
const Aws::String & GetUrl() const
Definition ADMMessage.h:347
const Aws::String & GetImageIconUrl() const
Definition ADMMessage.h:168
ADMMessage & WithData(DataT &&value)
Definition ADMMessage.h:113
void SetAction(Action value)
Definition ADMMessage.h:51
ADMMessage & WithConsolidationKey(ConsolidationKeyT &&value)
Definition ADMMessage.h:93
void SetSmallImageIconUrl(SmallImageIconUrlT &&value)
Definition ADMMessage.h:266
AWS_PINPOINT_API ADMMessage(Aws::Utils::Json::JsonView jsonValue)
void SetData(DataT &&value)
Definition ADMMessage.h:108
ADMMessage & WithImageUrl(ImageUrlT &&value)
Definition ADMMessage.h:194
AWS_PINPOINT_API ADMMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIconReference(IconReferenceT &&value)
Definition ADMMessage.h:152
const Aws::String & GetRawContent() const
Definition ADMMessage.h:225
void SetTitle(TitleT &&value)
Definition ADMMessage.h:331
void SetImageIconUrl(ImageIconUrlT &&value)
Definition ADMMessage.h:171
void SetExpiresAfter(ExpiresAfterT &&value)
Definition ADMMessage.h:134
const Aws::String & GetExpiresAfter() const
Definition ADMMessage.h:131
void SetRawContent(RawContentT &&value)
Definition ADMMessage.h:228
void SetImageUrl(ImageUrlT &&value)
Definition ADMMessage.h:189
void SetSound(SoundT &&value)
Definition ADMMessage.h:287
const Aws::String & GetSound() const
Definition ADMMessage.h:284
ADMMessage & AddSubstitutions(SubstitutionsKeyT &&key, SubstitutionsValueT &&value)
Definition ADMMessage.h:316
ADMMessage & AddData(DataKeyT &&key, DataValueT &&value)
Definition ADMMessage.h:118
const Aws::String & GetSmallImageIconUrl() const
Definition ADMMessage.h:263
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetSubstitutions() const
Definition ADMMessage.h:303
AWS_PINPOINT_API ADMMessage()=default
const Aws::String & GetMD5() const
Definition ADMMessage.h:205
void SetBody(BodyT &&value)
Definition ADMMessage.h:68
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetData() const
Definition ADMMessage.h:105
const Aws::String & GetConsolidationKey() const
Definition ADMMessage.h:85
void SetSubstitutions(SubstitutionsT &&value)
Definition ADMMessage.h:306
bool ConsolidationKeyHasBeenSet() const
Definition ADMMessage.h:86
ADMMessage & WithSubstitutions(SubstitutionsT &&value)
Definition ADMMessage.h:311
const Aws::String & GetImageUrl() const
Definition ADMMessage.h:186
ADMMessage & WithImageIconUrl(ImageIconUrlT &&value)
Definition ADMMessage.h:176
ADMMessage & WithSound(SoundT &&value)
Definition ADMMessage.h:292
ADMMessage & WithExpiresAfter(ExpiresAfterT &&value)
Definition ADMMessage.h:139
ADMMessage & WithIconReference(IconReferenceT &&value)
Definition ADMMessage.h:157
ADMMessage & WithRawContent(RawContentT &&value)
Definition ADMMessage.h:233
ADMMessage & WithUrl(UrlT &&value)
Definition ADMMessage.h:355
ADMMessage & WithBody(BodyT &&value)
Definition ADMMessage.h:73
void SetConsolidationKey(ConsolidationKeyT &&value)
Definition ADMMessage.h:88
ADMMessage & WithSmallImageIconUrl(SmallImageIconUrlT &&value)
Definition ADMMessage.h:271
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