AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
BaiduMessage.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 BaiduMessage() = default;
35 AWS_PINPOINT_API BaiduMessage(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 }
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 BaiduMessage& WithBody(BodyT&& value) {
74 SetBody(std::forward<BodyT>(value));
75 return *this;
76 }
78
80
85 inline const Aws::Map<Aws::String, Aws::String>& GetData() const { return m_data; }
86 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
87 template <typename DataT = Aws::Map<Aws::String, Aws::String>>
88 void SetData(DataT&& value) {
89 m_dataHasBeenSet = true;
90 m_data = std::forward<DataT>(value);
91 }
92 template <typename DataT = Aws::Map<Aws::String, Aws::String>>
93 BaiduMessage& WithData(DataT&& value) {
94 SetData(std::forward<DataT>(value));
95 return *this;
96 }
97 template <typename DataKeyT = Aws::String, typename DataValueT = Aws::String>
98 BaiduMessage& AddData(DataKeyT&& key, DataValueT&& value) {
99 m_dataHasBeenSet = true;
100 m_data.emplace(std::forward<DataKeyT>(key), std::forward<DataValueT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetIconReference() const { return m_iconReference; }
110 inline bool IconReferenceHasBeenSet() const { return m_iconReferenceHasBeenSet; }
111 template <typename IconReferenceT = Aws::String>
112 void SetIconReference(IconReferenceT&& value) {
113 m_iconReferenceHasBeenSet = true;
114 m_iconReference = std::forward<IconReferenceT>(value);
115 }
116 template <typename IconReferenceT = Aws::String>
117 BaiduMessage& WithIconReference(IconReferenceT&& value) {
118 SetIconReference(std::forward<IconReferenceT>(value));
119 return *this;
120 }
122
124
128 inline const Aws::String& GetImageIconUrl() const { return m_imageIconUrl; }
129 inline bool ImageIconUrlHasBeenSet() const { return m_imageIconUrlHasBeenSet; }
130 template <typename ImageIconUrlT = Aws::String>
131 void SetImageIconUrl(ImageIconUrlT&& value) {
132 m_imageIconUrlHasBeenSet = true;
133 m_imageIconUrl = std::forward<ImageIconUrlT>(value);
134 }
135 template <typename ImageIconUrlT = Aws::String>
136 BaiduMessage& WithImageIconUrl(ImageIconUrlT&& value) {
137 SetImageIconUrl(std::forward<ImageIconUrlT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetImageUrl() const { return m_imageUrl; }
147 inline bool ImageUrlHasBeenSet() const { return m_imageUrlHasBeenSet; }
148 template <typename ImageUrlT = Aws::String>
149 void SetImageUrl(ImageUrlT&& value) {
150 m_imageUrlHasBeenSet = true;
151 m_imageUrl = std::forward<ImageUrlT>(value);
152 }
153 template <typename ImageUrlT = Aws::String>
154 BaiduMessage& WithImageUrl(ImageUrlT&& value) {
155 SetImageUrl(std::forward<ImageUrlT>(value));
156 return *this;
157 }
159
161
166 inline const Aws::String& GetRawContent() const { return m_rawContent; }
167 inline bool RawContentHasBeenSet() const { return m_rawContentHasBeenSet; }
168 template <typename RawContentT = Aws::String>
169 void SetRawContent(RawContentT&& value) {
170 m_rawContentHasBeenSet = true;
171 m_rawContent = std::forward<RawContentT>(value);
172 }
173 template <typename RawContentT = Aws::String>
174 BaiduMessage& WithRawContent(RawContentT&& value) {
175 SetRawContent(std::forward<RawContentT>(value));
176 return *this;
177 }
179
181
187 inline bool GetSilentPush() const { return m_silentPush; }
188 inline bool SilentPushHasBeenSet() const { return m_silentPushHasBeenSet; }
189 inline void SetSilentPush(bool value) {
190 m_silentPushHasBeenSet = true;
191 m_silentPush = value;
192 }
193 inline BaiduMessage& WithSilentPush(bool value) {
194 SetSilentPush(value);
195 return *this;
196 }
198
200
204 inline const Aws::String& GetSmallImageIconUrl() const { return m_smallImageIconUrl; }
205 inline bool SmallImageIconUrlHasBeenSet() const { return m_smallImageIconUrlHasBeenSet; }
206 template <typename SmallImageIconUrlT = Aws::String>
207 void SetSmallImageIconUrl(SmallImageIconUrlT&& value) {
208 m_smallImageIconUrlHasBeenSet = true;
209 m_smallImageIconUrl = std::forward<SmallImageIconUrlT>(value);
210 }
211 template <typename SmallImageIconUrlT = Aws::String>
212 BaiduMessage& WithSmallImageIconUrl(SmallImageIconUrlT&& value) {
213 SetSmallImageIconUrl(std::forward<SmallImageIconUrlT>(value));
214 return *this;
215 }
217
219
225 inline const Aws::String& GetSound() const { return m_sound; }
226 inline bool SoundHasBeenSet() const { return m_soundHasBeenSet; }
227 template <typename SoundT = Aws::String>
228 void SetSound(SoundT&& value) {
229 m_soundHasBeenSet = true;
230 m_sound = std::forward<SoundT>(value);
231 }
232 template <typename SoundT = Aws::String>
233 BaiduMessage& WithSound(SoundT&& value) {
234 SetSound(std::forward<SoundT>(value));
235 return *this;
236 }
238
240
244 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetSubstitutions() const { return m_substitutions; }
245 inline bool SubstitutionsHasBeenSet() const { return m_substitutionsHasBeenSet; }
246 template <typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
247 void SetSubstitutions(SubstitutionsT&& value) {
248 m_substitutionsHasBeenSet = true;
249 m_substitutions = std::forward<SubstitutionsT>(value);
250 }
251 template <typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
252 BaiduMessage& WithSubstitutions(SubstitutionsT&& value) {
253 SetSubstitutions(std::forward<SubstitutionsT>(value));
254 return *this;
255 }
256 template <typename SubstitutionsKeyT = Aws::String, typename SubstitutionsValueT = Aws::Vector<Aws::String>>
257 BaiduMessage& AddSubstitutions(SubstitutionsKeyT&& key, SubstitutionsValueT&& value) {
258 m_substitutionsHasBeenSet = true;
259 m_substitutions.emplace(std::forward<SubstitutionsKeyT>(key), std::forward<SubstitutionsValueT>(value));
260 return *this;
261 }
263
265
270 inline int GetTimeToLive() const { return m_timeToLive; }
271 inline bool TimeToLiveHasBeenSet() const { return m_timeToLiveHasBeenSet; }
272 inline void SetTimeToLive(int value) {
273 m_timeToLiveHasBeenSet = true;
274 m_timeToLive = value;
275 }
276 inline BaiduMessage& WithTimeToLive(int value) {
277 SetTimeToLive(value);
278 return *this;
279 }
281
283
287 inline const Aws::String& GetTitle() const { return m_title; }
288 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
289 template <typename TitleT = Aws::String>
290 void SetTitle(TitleT&& value) {
291 m_titleHasBeenSet = true;
292 m_title = std::forward<TitleT>(value);
293 }
294 template <typename TitleT = Aws::String>
295 BaiduMessage& WithTitle(TitleT&& value) {
296 SetTitle(std::forward<TitleT>(value));
297 return *this;
298 }
300
302
306 inline const Aws::String& GetUrl() const { return m_url; }
307 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
308 template <typename UrlT = Aws::String>
309 void SetUrl(UrlT&& value) {
310 m_urlHasBeenSet = true;
311 m_url = std::forward<UrlT>(value);
312 }
313 template <typename UrlT = Aws::String>
314 BaiduMessage& WithUrl(UrlT&& value) {
315 SetUrl(std::forward<UrlT>(value));
316 return *this;
317 }
319 private:
320 Action m_action{Action::NOT_SET};
321 bool m_actionHasBeenSet = false;
322
323 Aws::String m_body;
324 bool m_bodyHasBeenSet = false;
325
327 bool m_dataHasBeenSet = false;
328
329 Aws::String m_iconReference;
330 bool m_iconReferenceHasBeenSet = false;
331
332 Aws::String m_imageIconUrl;
333 bool m_imageIconUrlHasBeenSet = false;
334
335 Aws::String m_imageUrl;
336 bool m_imageUrlHasBeenSet = false;
337
338 Aws::String m_rawContent;
339 bool m_rawContentHasBeenSet = false;
340
341 bool m_silentPush{false};
342 bool m_silentPushHasBeenSet = false;
343
344 Aws::String m_smallImageIconUrl;
345 bool m_smallImageIconUrlHasBeenSet = false;
346
347 Aws::String m_sound;
348 bool m_soundHasBeenSet = false;
349
351 bool m_substitutionsHasBeenSet = false;
352
353 int m_timeToLive{0};
354 bool m_timeToLiveHasBeenSet = false;
355
356 Aws::String m_title;
357 bool m_titleHasBeenSet = false;
358
359 Aws::String m_url;
360 bool m_urlHasBeenSet = false;
361};
362
363} // namespace Model
364} // namespace Pinpoint
365} // namespace Aws
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetSubstitutions() const
BaiduMessage & WithSound(SoundT &&value)
void SetImageIconUrl(ImageIconUrlT &&value)
BaiduMessage & AddData(DataKeyT &&key, DataValueT &&value)
BaiduMessage & WithTimeToLive(int value)
BaiduMessage & WithRawContent(RawContentT &&value)
void SetRawContent(RawContentT &&value)
AWS_PINPOINT_API BaiduMessage()=default
BaiduMessage & WithBody(BodyT &&value)
const Aws::String & GetSmallImageIconUrl() const
const Aws::String & GetSound() const
const Aws::String & GetIconReference() const
void SetIconReference(IconReferenceT &&value)
const Aws::Map< Aws::String, Aws::String > & GetData() const
BaiduMessage & WithUrl(UrlT &&value)
BaiduMessage & WithTitle(TitleT &&value)
const Aws::String & GetUrl() const
const Aws::String & GetImageUrl() const
const Aws::String & GetRawContent() const
BaiduMessage & WithSmallImageIconUrl(SmallImageIconUrlT &&value)
BaiduMessage & WithData(DataT &&value)
const Aws::String & GetImageIconUrl() const
const Aws::String & GetBody() const
AWS_PINPOINT_API BaiduMessage(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API BaiduMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
BaiduMessage & WithAction(Action value)
BaiduMessage & AddSubstitutions(SubstitutionsKeyT &&key, SubstitutionsValueT &&value)
void SetSubstitutions(SubstitutionsT &&value)
BaiduMessage & WithIconReference(IconReferenceT &&value)
void SetImageUrl(ImageUrlT &&value)
BaiduMessage & WithSubstitutions(SubstitutionsT &&value)
BaiduMessage & WithImageIconUrl(ImageIconUrlT &&value)
BaiduMessage & WithImageUrl(ImageUrlT &&value)
void SetSmallImageIconUrl(SmallImageIconUrlT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTitle() const
BaiduMessage & WithSilentPush(bool 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