AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ADMMessage.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/pinpoint/model/Action.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Pinpoint
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_PINPOINT_API ADMMessage() = default;
40 AWS_PINPOINT_API ADMMessage(Aws::Utils::Json::JsonView jsonValue);
41 AWS_PINPOINT_API ADMMessage& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
55 inline Action GetAction() const { return m_action; }
56 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
57 inline void SetAction(Action value) { m_actionHasBeenSet = true; m_action = value; }
58 inline ADMMessage& WithAction(Action value) { SetAction(value); return *this;}
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) { m_bodyHasBeenSet = true; m_body = std::forward<BodyT>(value); }
69 template<typename BodyT = Aws::String>
70 ADMMessage& WithBody(BodyT&& value) { SetBody(std::forward<BodyT>(value)); return *this;}
72
74
79 inline const Aws::String& GetConsolidationKey() const { return m_consolidationKey; }
80 inline bool ConsolidationKeyHasBeenSet() const { return m_consolidationKeyHasBeenSet; }
81 template<typename ConsolidationKeyT = Aws::String>
82 void SetConsolidationKey(ConsolidationKeyT&& value) { m_consolidationKeyHasBeenSet = true; m_consolidationKey = std::forward<ConsolidationKeyT>(value); }
83 template<typename ConsolidationKeyT = Aws::String>
84 ADMMessage& WithConsolidationKey(ConsolidationKeyT&& value) { SetConsolidationKey(std::forward<ConsolidationKeyT>(value)); return *this;}
86
88
93 inline const Aws::Map<Aws::String, Aws::String>& GetData() const { return m_data; }
94 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
95 template<typename DataT = Aws::Map<Aws::String, Aws::String>>
96 void SetData(DataT&& value) { m_dataHasBeenSet = true; m_data = std::forward<DataT>(value); }
97 template<typename DataT = Aws::Map<Aws::String, Aws::String>>
98 ADMMessage& WithData(DataT&& value) { SetData(std::forward<DataT>(value)); return *this;}
99 template<typename DataKeyT = Aws::String, typename DataValueT = Aws::String>
100 ADMMessage& AddData(DataKeyT&& key, DataValueT&& value) {
101 m_dataHasBeenSet = true; m_data.emplace(std::forward<DataKeyT>(key), std::forward<DataValueT>(value)); return *this;
102 }
104
106
111 inline const Aws::String& GetExpiresAfter() const { return m_expiresAfter; }
112 inline bool ExpiresAfterHasBeenSet() const { return m_expiresAfterHasBeenSet; }
113 template<typename ExpiresAfterT = Aws::String>
114 void SetExpiresAfter(ExpiresAfterT&& value) { m_expiresAfterHasBeenSet = true; m_expiresAfter = std::forward<ExpiresAfterT>(value); }
115 template<typename ExpiresAfterT = Aws::String>
116 ADMMessage& WithExpiresAfter(ExpiresAfterT&& value) { SetExpiresAfter(std::forward<ExpiresAfterT>(value)); return *this;}
118
120
123 inline const Aws::String& GetIconReference() const { return m_iconReference; }
124 inline bool IconReferenceHasBeenSet() const { return m_iconReferenceHasBeenSet; }
125 template<typename IconReferenceT = Aws::String>
126 void SetIconReference(IconReferenceT&& value) { m_iconReferenceHasBeenSet = true; m_iconReference = std::forward<IconReferenceT>(value); }
127 template<typename IconReferenceT = Aws::String>
128 ADMMessage& WithIconReference(IconReferenceT&& value) { SetIconReference(std::forward<IconReferenceT>(value)); return *this;}
130
132
136 inline const Aws::String& GetImageIconUrl() const { return m_imageIconUrl; }
137 inline bool ImageIconUrlHasBeenSet() const { return m_imageIconUrlHasBeenSet; }
138 template<typename ImageIconUrlT = Aws::String>
139 void SetImageIconUrl(ImageIconUrlT&& value) { m_imageIconUrlHasBeenSet = true; m_imageIconUrl = std::forward<ImageIconUrlT>(value); }
140 template<typename ImageIconUrlT = Aws::String>
141 ADMMessage& WithImageIconUrl(ImageIconUrlT&& value) { SetImageIconUrl(std::forward<ImageIconUrlT>(value)); return *this;}
143
145
148 inline const Aws::String& GetImageUrl() const { return m_imageUrl; }
149 inline bool ImageUrlHasBeenSet() const { return m_imageUrlHasBeenSet; }
150 template<typename ImageUrlT = Aws::String>
151 void SetImageUrl(ImageUrlT&& value) { m_imageUrlHasBeenSet = true; m_imageUrl = std::forward<ImageUrlT>(value); }
152 template<typename ImageUrlT = Aws::String>
153 ADMMessage& WithImageUrl(ImageUrlT&& value) { SetImageUrl(std::forward<ImageUrlT>(value)); return *this;}
155
157
161 inline const Aws::String& GetMD5() const { return m_mD5; }
162 inline bool MD5HasBeenSet() const { return m_mD5HasBeenSet; }
163 template<typename MD5T = Aws::String>
164 void SetMD5(MD5T&& value) { m_mD5HasBeenSet = true; m_mD5 = std::forward<MD5T>(value); }
165 template<typename MD5T = Aws::String>
166 ADMMessage& WithMD5(MD5T&& value) { SetMD5(std::forward<MD5T>(value)); return *this;}
168
170
175 inline const Aws::String& GetRawContent() const { return m_rawContent; }
176 inline bool RawContentHasBeenSet() const { return m_rawContentHasBeenSet; }
177 template<typename RawContentT = Aws::String>
178 void SetRawContent(RawContentT&& value) { m_rawContentHasBeenSet = true; m_rawContent = std::forward<RawContentT>(value); }
179 template<typename RawContentT = Aws::String>
180 ADMMessage& WithRawContent(RawContentT&& value) { SetRawContent(std::forward<RawContentT>(value)); return *this;}
182
184
190 inline bool GetSilentPush() const { return m_silentPush; }
191 inline bool SilentPushHasBeenSet() const { return m_silentPushHasBeenSet; }
192 inline void SetSilentPush(bool value) { m_silentPushHasBeenSet = true; m_silentPush = value; }
193 inline ADMMessage& WithSilentPush(bool value) { SetSilentPush(value); return *this;}
195
197
201 inline const Aws::String& GetSmallImageIconUrl() const { return m_smallImageIconUrl; }
202 inline bool SmallImageIconUrlHasBeenSet() const { return m_smallImageIconUrlHasBeenSet; }
203 template<typename SmallImageIconUrlT = Aws::String>
204 void SetSmallImageIconUrl(SmallImageIconUrlT&& value) { m_smallImageIconUrlHasBeenSet = true; m_smallImageIconUrl = std::forward<SmallImageIconUrlT>(value); }
205 template<typename SmallImageIconUrlT = Aws::String>
206 ADMMessage& WithSmallImageIconUrl(SmallImageIconUrlT&& value) { SetSmallImageIconUrl(std::forward<SmallImageIconUrlT>(value)); return *this;}
208
210
216 inline const Aws::String& GetSound() const { return m_sound; }
217 inline bool SoundHasBeenSet() const { return m_soundHasBeenSet; }
218 template<typename SoundT = Aws::String>
219 void SetSound(SoundT&& value) { m_soundHasBeenSet = true; m_sound = std::forward<SoundT>(value); }
220 template<typename SoundT = Aws::String>
221 ADMMessage& WithSound(SoundT&& value) { SetSound(std::forward<SoundT>(value)); return *this;}
223
225
229 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetSubstitutions() const { return m_substitutions; }
230 inline bool SubstitutionsHasBeenSet() const { return m_substitutionsHasBeenSet; }
231 template<typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
232 void SetSubstitutions(SubstitutionsT&& value) { m_substitutionsHasBeenSet = true; m_substitutions = std::forward<SubstitutionsT>(value); }
233 template<typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
234 ADMMessage& WithSubstitutions(SubstitutionsT&& value) { SetSubstitutions(std::forward<SubstitutionsT>(value)); return *this;}
235 template<typename SubstitutionsKeyT = Aws::String, typename SubstitutionsValueT = Aws::Vector<Aws::String>>
236 ADMMessage& AddSubstitutions(SubstitutionsKeyT&& key, SubstitutionsValueT&& value) {
237 m_substitutionsHasBeenSet = true; m_substitutions.emplace(std::forward<SubstitutionsKeyT>(key), std::forward<SubstitutionsValueT>(value)); return *this;
238 }
240
242
246 inline const Aws::String& GetTitle() const { return m_title; }
247 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
248 template<typename TitleT = Aws::String>
249 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
250 template<typename TitleT = Aws::String>
251 ADMMessage& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
253
255
259 inline const Aws::String& GetUrl() const { return m_url; }
260 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
261 template<typename UrlT = Aws::String>
262 void SetUrl(UrlT&& value) { m_urlHasBeenSet = true; m_url = std::forward<UrlT>(value); }
263 template<typename UrlT = Aws::String>
264 ADMMessage& WithUrl(UrlT&& value) { SetUrl(std::forward<UrlT>(value)); return *this;}
266 private:
267
268 Action m_action{Action::NOT_SET};
269 bool m_actionHasBeenSet = false;
270
271 Aws::String m_body;
272 bool m_bodyHasBeenSet = false;
273
274 Aws::String m_consolidationKey;
275 bool m_consolidationKeyHasBeenSet = false;
276
278 bool m_dataHasBeenSet = false;
279
280 Aws::String m_expiresAfter;
281 bool m_expiresAfterHasBeenSet = false;
282
283 Aws::String m_iconReference;
284 bool m_iconReferenceHasBeenSet = false;
285
286 Aws::String m_imageIconUrl;
287 bool m_imageIconUrlHasBeenSet = false;
288
289 Aws::String m_imageUrl;
290 bool m_imageUrlHasBeenSet = false;
291
292 Aws::String m_mD5;
293 bool m_mD5HasBeenSet = false;
294
295 Aws::String m_rawContent;
296 bool m_rawContentHasBeenSet = false;
297
298 bool m_silentPush{false};
299 bool m_silentPushHasBeenSet = false;
300
301 Aws::String m_smallImageIconUrl;
302 bool m_smallImageIconUrlHasBeenSet = false;
303
304 Aws::String m_sound;
305 bool m_soundHasBeenSet = false;
306
308 bool m_substitutionsHasBeenSet = false;
309
310 Aws::String m_title;
311 bool m_titleHasBeenSet = false;
312
313 Aws::String m_url;
314 bool m_urlHasBeenSet = false;
315 };
316
317} // namespace Model
318} // namespace Pinpoint
319} // namespace Aws
ADMMessage & WithTitle(TitleT &&value)
Definition ADMMessage.h:251
ADMMessage & WithMD5(MD5T &&value)
Definition ADMMessage.h:166
ADMMessage & WithSilentPush(bool value)
Definition ADMMessage.h:193
ADMMessage & WithAction(Action value)
Definition ADMMessage.h:58
const Aws::String & GetTitle() const
Definition ADMMessage.h:246
const Aws::String & GetBody() const
Definition ADMMessage.h:65
const Aws::String & GetIconReference() const
Definition ADMMessage.h:123
const Aws::String & GetUrl() const
Definition ADMMessage.h:259
const Aws::String & GetImageIconUrl() const
Definition ADMMessage.h:136
ADMMessage & WithData(DataT &&value)
Definition ADMMessage.h:98
void SetAction(Action value)
Definition ADMMessage.h:57
ADMMessage & WithConsolidationKey(ConsolidationKeyT &&value)
Definition ADMMessage.h:84
void SetSmallImageIconUrl(SmallImageIconUrlT &&value)
Definition ADMMessage.h:204
AWS_PINPOINT_API ADMMessage(Aws::Utils::Json::JsonView jsonValue)
void SetData(DataT &&value)
Definition ADMMessage.h:96
ADMMessage & WithImageUrl(ImageUrlT &&value)
Definition ADMMessage.h:153
AWS_PINPOINT_API ADMMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIconReference(IconReferenceT &&value)
Definition ADMMessage.h:126
const Aws::String & GetRawContent() const
Definition ADMMessage.h:175
void SetTitle(TitleT &&value)
Definition ADMMessage.h:249
void SetImageIconUrl(ImageIconUrlT &&value)
Definition ADMMessage.h:139
void SetExpiresAfter(ExpiresAfterT &&value)
Definition ADMMessage.h:114
const Aws::String & GetExpiresAfter() const
Definition ADMMessage.h:111
void SetRawContent(RawContentT &&value)
Definition ADMMessage.h:178
void SetImageUrl(ImageUrlT &&value)
Definition ADMMessage.h:151
void SetSound(SoundT &&value)
Definition ADMMessage.h:219
const Aws::String & GetSound() const
Definition ADMMessage.h:216
ADMMessage & AddSubstitutions(SubstitutionsKeyT &&key, SubstitutionsValueT &&value)
Definition ADMMessage.h:236
ADMMessage & AddData(DataKeyT &&key, DataValueT &&value)
Definition ADMMessage.h:100
const Aws::String & GetSmallImageIconUrl() const
Definition ADMMessage.h:201
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetSubstitutions() const
Definition ADMMessage.h:229
AWS_PINPOINT_API ADMMessage()=default
const Aws::String & GetMD5() const
Definition ADMMessage.h:161
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:93
const Aws::String & GetConsolidationKey() const
Definition ADMMessage.h:79
void SetSubstitutions(SubstitutionsT &&value)
Definition ADMMessage.h:232
bool ConsolidationKeyHasBeenSet() const
Definition ADMMessage.h:80
ADMMessage & WithSubstitutions(SubstitutionsT &&value)
Definition ADMMessage.h:234
const Aws::String & GetImageUrl() const
Definition ADMMessage.h:148
ADMMessage & WithImageIconUrl(ImageIconUrlT &&value)
Definition ADMMessage.h:141
ADMMessage & WithSound(SoundT &&value)
Definition ADMMessage.h:221
ADMMessage & WithExpiresAfter(ExpiresAfterT &&value)
Definition ADMMessage.h:116
ADMMessage & WithIconReference(IconReferenceT &&value)
Definition ADMMessage.h:128
ADMMessage & WithRawContent(RawContentT &&value)
Definition ADMMessage.h:180
ADMMessage & WithUrl(UrlT &&value)
Definition ADMMessage.h:264
ADMMessage & WithBody(BodyT &&value)
Definition ADMMessage.h:70
void SetConsolidationKey(ConsolidationKeyT &&value)
Definition ADMMessage.h:82
ADMMessage & WithSmallImageIconUrl(SmallImageIconUrlT &&value)
Definition ADMMessage.h:206
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