AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BaiduMessage.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 BaiduMessage();
40 AWS_PINPOINT_API BaiduMessage(Aws::Utils::Json::JsonView jsonValue);
42 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
55 inline const Action& GetAction() const{ return m_action; }
56 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
57 inline void SetAction(const Action& value) { m_actionHasBeenSet = true; m_action = value; }
58 inline void SetAction(Action&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
59 inline BaiduMessage& WithAction(const Action& value) { SetAction(value); return *this;}
60 inline BaiduMessage& WithAction(Action&& value) { SetAction(std::move(value)); return *this;}
62
64
67 inline const Aws::String& GetBody() const{ return m_body; }
68 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
69 inline void SetBody(const Aws::String& value) { m_bodyHasBeenSet = true; m_body = value; }
70 inline void SetBody(Aws::String&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); }
71 inline void SetBody(const char* value) { m_bodyHasBeenSet = true; m_body.assign(value); }
72 inline BaiduMessage& WithBody(const Aws::String& value) { SetBody(value); return *this;}
73 inline BaiduMessage& WithBody(Aws::String&& value) { SetBody(std::move(value)); return *this;}
74 inline BaiduMessage& WithBody(const char* value) { SetBody(value); return *this;}
76
78
83 inline const Aws::Map<Aws::String, Aws::String>& GetData() const{ return m_data; }
84 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
85 inline void SetData(const Aws::Map<Aws::String, Aws::String>& value) { m_dataHasBeenSet = true; m_data = value; }
86 inline void SetData(Aws::Map<Aws::String, Aws::String>&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
87 inline BaiduMessage& WithData(const Aws::Map<Aws::String, Aws::String>& value) { SetData(value); return *this;}
88 inline BaiduMessage& WithData(Aws::Map<Aws::String, Aws::String>&& value) { SetData(std::move(value)); return *this;}
89 inline BaiduMessage& AddData(const Aws::String& key, const Aws::String& value) { m_dataHasBeenSet = true; m_data.emplace(key, value); return *this; }
90 inline BaiduMessage& AddData(Aws::String&& key, const Aws::String& value) { m_dataHasBeenSet = true; m_data.emplace(std::move(key), value); return *this; }
91 inline BaiduMessage& AddData(const Aws::String& key, Aws::String&& value) { m_dataHasBeenSet = true; m_data.emplace(key, std::move(value)); return *this; }
92 inline BaiduMessage& AddData(Aws::String&& key, Aws::String&& value) { m_dataHasBeenSet = true; m_data.emplace(std::move(key), std::move(value)); return *this; }
93 inline BaiduMessage& AddData(const char* key, Aws::String&& value) { m_dataHasBeenSet = true; m_data.emplace(key, std::move(value)); return *this; }
94 inline BaiduMessage& AddData(Aws::String&& key, const char* value) { m_dataHasBeenSet = true; m_data.emplace(std::move(key), value); return *this; }
95 inline BaiduMessage& AddData(const char* key, const char* value) { m_dataHasBeenSet = true; m_data.emplace(key, value); return *this; }
97
99
102 inline const Aws::String& GetIconReference() const{ return m_iconReference; }
103 inline bool IconReferenceHasBeenSet() const { return m_iconReferenceHasBeenSet; }
104 inline void SetIconReference(const Aws::String& value) { m_iconReferenceHasBeenSet = true; m_iconReference = value; }
105 inline void SetIconReference(Aws::String&& value) { m_iconReferenceHasBeenSet = true; m_iconReference = std::move(value); }
106 inline void SetIconReference(const char* value) { m_iconReferenceHasBeenSet = true; m_iconReference.assign(value); }
107 inline BaiduMessage& WithIconReference(const Aws::String& value) { SetIconReference(value); return *this;}
108 inline BaiduMessage& WithIconReference(Aws::String&& value) { SetIconReference(std::move(value)); return *this;}
109 inline BaiduMessage& WithIconReference(const char* value) { SetIconReference(value); return *this;}
111
113
117 inline const Aws::String& GetImageIconUrl() const{ return m_imageIconUrl; }
118 inline bool ImageIconUrlHasBeenSet() const { return m_imageIconUrlHasBeenSet; }
119 inline void SetImageIconUrl(const Aws::String& value) { m_imageIconUrlHasBeenSet = true; m_imageIconUrl = value; }
120 inline void SetImageIconUrl(Aws::String&& value) { m_imageIconUrlHasBeenSet = true; m_imageIconUrl = std::move(value); }
121 inline void SetImageIconUrl(const char* value) { m_imageIconUrlHasBeenSet = true; m_imageIconUrl.assign(value); }
122 inline BaiduMessage& WithImageIconUrl(const Aws::String& value) { SetImageIconUrl(value); return *this;}
123 inline BaiduMessage& WithImageIconUrl(Aws::String&& value) { SetImageIconUrl(std::move(value)); return *this;}
124 inline BaiduMessage& WithImageIconUrl(const char* value) { SetImageIconUrl(value); return *this;}
126
128
131 inline const Aws::String& GetImageUrl() const{ return m_imageUrl; }
132 inline bool ImageUrlHasBeenSet() const { return m_imageUrlHasBeenSet; }
133 inline void SetImageUrl(const Aws::String& value) { m_imageUrlHasBeenSet = true; m_imageUrl = value; }
134 inline void SetImageUrl(Aws::String&& value) { m_imageUrlHasBeenSet = true; m_imageUrl = std::move(value); }
135 inline void SetImageUrl(const char* value) { m_imageUrlHasBeenSet = true; m_imageUrl.assign(value); }
136 inline BaiduMessage& WithImageUrl(const Aws::String& value) { SetImageUrl(value); return *this;}
137 inline BaiduMessage& WithImageUrl(Aws::String&& value) { SetImageUrl(std::move(value)); return *this;}
138 inline BaiduMessage& WithImageUrl(const char* value) { SetImageUrl(value); return *this;}
140
142
147 inline const Aws::String& GetRawContent() const{ return m_rawContent; }
148 inline bool RawContentHasBeenSet() const { return m_rawContentHasBeenSet; }
149 inline void SetRawContent(const Aws::String& value) { m_rawContentHasBeenSet = true; m_rawContent = value; }
150 inline void SetRawContent(Aws::String&& value) { m_rawContentHasBeenSet = true; m_rawContent = std::move(value); }
151 inline void SetRawContent(const char* value) { m_rawContentHasBeenSet = true; m_rawContent.assign(value); }
152 inline BaiduMessage& WithRawContent(const Aws::String& value) { SetRawContent(value); return *this;}
153 inline BaiduMessage& WithRawContent(Aws::String&& value) { SetRawContent(std::move(value)); return *this;}
154 inline BaiduMessage& WithRawContent(const char* value) { SetRawContent(value); return *this;}
156
158
164 inline bool GetSilentPush() const{ return m_silentPush; }
165 inline bool SilentPushHasBeenSet() const { return m_silentPushHasBeenSet; }
166 inline void SetSilentPush(bool value) { m_silentPushHasBeenSet = true; m_silentPush = value; }
167 inline BaiduMessage& WithSilentPush(bool value) { SetSilentPush(value); return *this;}
169
171
175 inline const Aws::String& GetSmallImageIconUrl() const{ return m_smallImageIconUrl; }
176 inline bool SmallImageIconUrlHasBeenSet() const { return m_smallImageIconUrlHasBeenSet; }
177 inline void SetSmallImageIconUrl(const Aws::String& value) { m_smallImageIconUrlHasBeenSet = true; m_smallImageIconUrl = value; }
178 inline void SetSmallImageIconUrl(Aws::String&& value) { m_smallImageIconUrlHasBeenSet = true; m_smallImageIconUrl = std::move(value); }
179 inline void SetSmallImageIconUrl(const char* value) { m_smallImageIconUrlHasBeenSet = true; m_smallImageIconUrl.assign(value); }
180 inline BaiduMessage& WithSmallImageIconUrl(const Aws::String& value) { SetSmallImageIconUrl(value); return *this;}
181 inline BaiduMessage& WithSmallImageIconUrl(Aws::String&& value) { SetSmallImageIconUrl(std::move(value)); return *this;}
182 inline BaiduMessage& WithSmallImageIconUrl(const char* value) { SetSmallImageIconUrl(value); return *this;}
184
186
192 inline const Aws::String& GetSound() const{ return m_sound; }
193 inline bool SoundHasBeenSet() const { return m_soundHasBeenSet; }
194 inline void SetSound(const Aws::String& value) { m_soundHasBeenSet = true; m_sound = value; }
195 inline void SetSound(Aws::String&& value) { m_soundHasBeenSet = true; m_sound = std::move(value); }
196 inline void SetSound(const char* value) { m_soundHasBeenSet = true; m_sound.assign(value); }
197 inline BaiduMessage& WithSound(const Aws::String& value) { SetSound(value); return *this;}
198 inline BaiduMessage& WithSound(Aws::String&& value) { SetSound(std::move(value)); return *this;}
199 inline BaiduMessage& WithSound(const char* value) { SetSound(value); return *this;}
201
203
207 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetSubstitutions() const{ return m_substitutions; }
208 inline bool SubstitutionsHasBeenSet() const { return m_substitutionsHasBeenSet; }
209 inline void SetSubstitutions(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_substitutionsHasBeenSet = true; m_substitutions = value; }
210 inline void SetSubstitutions(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_substitutionsHasBeenSet = true; m_substitutions = std::move(value); }
213 inline BaiduMessage& AddSubstitutions(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, value); return *this; }
214 inline BaiduMessage& AddSubstitutions(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(std::move(key), value); return *this; }
215 inline BaiduMessage& AddSubstitutions(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, std::move(value)); return *this; }
216 inline BaiduMessage& AddSubstitutions(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(std::move(key), std::move(value)); return *this; }
217 inline BaiduMessage& AddSubstitutions(const char* key, Aws::Vector<Aws::String>&& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, std::move(value)); return *this; }
218 inline BaiduMessage& AddSubstitutions(const char* key, const Aws::Vector<Aws::String>& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, value); return *this; }
220
222
227 inline int GetTimeToLive() const{ return m_timeToLive; }
228 inline bool TimeToLiveHasBeenSet() const { return m_timeToLiveHasBeenSet; }
229 inline void SetTimeToLive(int value) { m_timeToLiveHasBeenSet = true; m_timeToLive = value; }
230 inline BaiduMessage& WithTimeToLive(int value) { SetTimeToLive(value); return *this;}
232
234
238 inline const Aws::String& GetTitle() const{ return m_title; }
239 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
240 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
241 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
242 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
243 inline BaiduMessage& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
244 inline BaiduMessage& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
245 inline BaiduMessage& WithTitle(const char* value) { SetTitle(value); return *this;}
247
249
253 inline const Aws::String& GetUrl() const{ return m_url; }
254 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
255 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
256 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
257 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
258 inline BaiduMessage& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
259 inline BaiduMessage& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
260 inline BaiduMessage& WithUrl(const char* value) { SetUrl(value); return *this;}
262 private:
263
264 Action m_action;
265 bool m_actionHasBeenSet = false;
266
267 Aws::String m_body;
268 bool m_bodyHasBeenSet = false;
269
271 bool m_dataHasBeenSet = false;
272
273 Aws::String m_iconReference;
274 bool m_iconReferenceHasBeenSet = false;
275
276 Aws::String m_imageIconUrl;
277 bool m_imageIconUrlHasBeenSet = false;
278
279 Aws::String m_imageUrl;
280 bool m_imageUrlHasBeenSet = false;
281
282 Aws::String m_rawContent;
283 bool m_rawContentHasBeenSet = false;
284
285 bool m_silentPush;
286 bool m_silentPushHasBeenSet = false;
287
288 Aws::String m_smallImageIconUrl;
289 bool m_smallImageIconUrlHasBeenSet = false;
290
291 Aws::String m_sound;
292 bool m_soundHasBeenSet = false;
293
295 bool m_substitutionsHasBeenSet = false;
296
297 int m_timeToLive;
298 bool m_timeToLiveHasBeenSet = false;
299
300 Aws::String m_title;
301 bool m_titleHasBeenSet = false;
302
303 Aws::String m_url;
304 bool m_urlHasBeenSet = false;
305 };
306
307} // namespace Model
308} // namespace Pinpoint
309} // namespace Aws
BaiduMessage & WithUrl(const Aws::String &value)
void SetTitle(const Aws::String &value)
BaiduMessage & WithTitle(Aws::String &&value)
BaiduMessage & WithTitle(const Aws::String &value)
BaiduMessage & WithRawContent(Aws::String &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetSubstitutions() const
void SetSound(const Aws::String &value)
BaiduMessage & WithSound(const Aws::String &value)
BaiduMessage & AddSubstitutions(const Aws::String &key, const Aws::Vector< Aws::String > &value)
BaiduMessage & WithBody(Aws::String &&value)
void SetImageIconUrl(const char *value)
BaiduMessage & WithIconReference(const Aws::String &value)
void SetRawContent(Aws::String &&value)
void SetSubstitutions(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
BaiduMessage & WithTimeToLive(int value)
void SetTitle(const char *value)
BaiduMessage & WithUrl(Aws::String &&value)
void SetSmallImageIconUrl(const Aws::String &value)
BaiduMessage & WithSound(Aws::String &&value)
void SetTitle(Aws::String &&value)
BaiduMessage & AddData(Aws::String &&key, const Aws::String &value)
BaiduMessage & AddData(const Aws::String &key, Aws::String &&value)
void SetSmallImageIconUrl(Aws::String &&value)
BaiduMessage & WithSubstitutions(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
BaiduMessage & WithSubstitutions(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
void SetIconReference(const char *value)
BaiduMessage & WithSmallImageIconUrl(Aws::String &&value)
const Aws::String & GetSmallImageIconUrl() const
void SetSubstitutions(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
void SetBody(const Aws::String &value)
BaiduMessage & WithImageIconUrl(const Aws::String &value)
BaiduMessage & WithSmallImageIconUrl(const char *value)
BaiduMessage & AddSubstitutions(const Aws::String &key, Aws::Vector< Aws::String > &&value)
BaiduMessage & WithRawContent(const char *value)
BaiduMessage & AddSubstitutions(Aws::String &&key, const Aws::Vector< Aws::String > &value)
const Aws::String & GetSound() const
BaiduMessage & WithImageUrl(const char *value)
const Aws::String & GetIconReference() const
void SetImageIconUrl(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetData() const
BaiduMessage & WithSmallImageIconUrl(const Aws::String &value)
void SetImageIconUrl(Aws::String &&value)
BaiduMessage & WithRawContent(const Aws::String &value)
void SetSound(const char *value)
BaiduMessage & WithSound(const char *value)
void SetImageUrl(const char *value)
void SetIconReference(Aws::String &&value)
const Aws::String & GetUrl() const
void SetBody(Aws::String &&value)
BaiduMessage & AddSubstitutions(const char *key, Aws::Vector< Aws::String > &&value)
const Aws::String & GetImageUrl() const
const Aws::String & GetRawContent() const
BaiduMessage & WithImageIconUrl(const char *value)
BaiduMessage & WithIconReference(const char *value)
BaiduMessage & AddData(const Aws::String &key, const Aws::String &value)
void SetBody(const char *value)
BaiduMessage & WithBody(const Aws::String &value)
void SetSmallImageIconUrl(const char *value)
BaiduMessage & AddData(Aws::String &&key, Aws::String &&value)
void SetImageUrl(Aws::String &&value)
const Aws::String & GetImageIconUrl() const
const Aws::String & GetBody() const
BaiduMessage & WithAction(Action &&value)
BaiduMessage & AddData(const char *key, Aws::String &&value)
void SetUrl(const char *value)
AWS_PINPOINT_API BaiduMessage(Aws::Utils::Json::JsonView jsonValue)
void SetData(const Aws::Map< Aws::String, Aws::String > &value)
BaiduMessage & WithImageUrl(Aws::String &&value)
BaiduMessage & AddSubstitutions(Aws::String &&key, Aws::Vector< Aws::String > &&value)
BaiduMessage & AddSubstitutions(const char *key, const Aws::Vector< Aws::String > &value)
BaiduMessage & WithTitle(const char *value)
AWS_PINPOINT_API BaiduMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
BaiduMessage & WithUrl(const char *value)
BaiduMessage & WithAction(const Action &value)
BaiduMessage & WithData(Aws::Map< Aws::String, Aws::String > &&value)
BaiduMessage & WithIconReference(Aws::String &&value)
void SetSound(Aws::String &&value)
void SetRawContent(const char *value)
void SetUrl(Aws::String &&value)
BaiduMessage & AddData(Aws::String &&key, const char *value)
void SetAction(const Action &value)
BaiduMessage & AddData(const char *key, const char *value)
void SetImageUrl(const Aws::String &value)
void SetRawContent(const Aws::String &value)
void SetUrl(const Aws::String &value)
BaiduMessage & WithImageUrl(const Aws::String &value)
const Action & GetAction() const
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
BaiduMessage & WithImageIconUrl(Aws::String &&value)
void SetIconReference(const Aws::String &value)
const Aws::String & GetTitle() const
void SetData(Aws::Map< Aws::String, Aws::String > &&value)
BaiduMessage & WithData(const Aws::Map< Aws::String, Aws::String > &value)
BaiduMessage & WithBody(const char *value)
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue