AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 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 BaiduMessage& 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 BaiduMessage& WithBody(BodyT&& value) { SetBody(std::forward<BodyT>(value)); return *this;}
72
74
79 inline const Aws::Map<Aws::String, Aws::String>& GetData() const { return m_data; }
80 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
81 template<typename DataT = Aws::Map<Aws::String, Aws::String>>
82 void SetData(DataT&& value) { m_dataHasBeenSet = true; m_data = std::forward<DataT>(value); }
83 template<typename DataT = Aws::Map<Aws::String, Aws::String>>
84 BaiduMessage& WithData(DataT&& value) { SetData(std::forward<DataT>(value)); return *this;}
85 template<typename DataKeyT = Aws::String, typename DataValueT = Aws::String>
86 BaiduMessage& AddData(DataKeyT&& key, DataValueT&& value) {
87 m_dataHasBeenSet = true; m_data.emplace(std::forward<DataKeyT>(key), std::forward<DataValueT>(value)); return *this;
88 }
90
92
95 inline const Aws::String& GetIconReference() const { return m_iconReference; }
96 inline bool IconReferenceHasBeenSet() const { return m_iconReferenceHasBeenSet; }
97 template<typename IconReferenceT = Aws::String>
98 void SetIconReference(IconReferenceT&& value) { m_iconReferenceHasBeenSet = true; m_iconReference = std::forward<IconReferenceT>(value); }
99 template<typename IconReferenceT = Aws::String>
100 BaiduMessage& WithIconReference(IconReferenceT&& value) { SetIconReference(std::forward<IconReferenceT>(value)); return *this;}
102
104
108 inline const Aws::String& GetImageIconUrl() const { return m_imageIconUrl; }
109 inline bool ImageIconUrlHasBeenSet() const { return m_imageIconUrlHasBeenSet; }
110 template<typename ImageIconUrlT = Aws::String>
111 void SetImageIconUrl(ImageIconUrlT&& value) { m_imageIconUrlHasBeenSet = true; m_imageIconUrl = std::forward<ImageIconUrlT>(value); }
112 template<typename ImageIconUrlT = Aws::String>
113 BaiduMessage& WithImageIconUrl(ImageIconUrlT&& value) { SetImageIconUrl(std::forward<ImageIconUrlT>(value)); return *this;}
115
117
120 inline const Aws::String& GetImageUrl() const { return m_imageUrl; }
121 inline bool ImageUrlHasBeenSet() const { return m_imageUrlHasBeenSet; }
122 template<typename ImageUrlT = Aws::String>
123 void SetImageUrl(ImageUrlT&& value) { m_imageUrlHasBeenSet = true; m_imageUrl = std::forward<ImageUrlT>(value); }
124 template<typename ImageUrlT = Aws::String>
125 BaiduMessage& WithImageUrl(ImageUrlT&& value) { SetImageUrl(std::forward<ImageUrlT>(value)); return *this;}
127
129
134 inline const Aws::String& GetRawContent() const { return m_rawContent; }
135 inline bool RawContentHasBeenSet() const { return m_rawContentHasBeenSet; }
136 template<typename RawContentT = Aws::String>
137 void SetRawContent(RawContentT&& value) { m_rawContentHasBeenSet = true; m_rawContent = std::forward<RawContentT>(value); }
138 template<typename RawContentT = Aws::String>
139 BaiduMessage& WithRawContent(RawContentT&& value) { SetRawContent(std::forward<RawContentT>(value)); return *this;}
141
143
149 inline bool GetSilentPush() const { return m_silentPush; }
150 inline bool SilentPushHasBeenSet() const { return m_silentPushHasBeenSet; }
151 inline void SetSilentPush(bool value) { m_silentPushHasBeenSet = true; m_silentPush = value; }
152 inline BaiduMessage& WithSilentPush(bool value) { SetSilentPush(value); return *this;}
154
156
160 inline const Aws::String& GetSmallImageIconUrl() const { return m_smallImageIconUrl; }
161 inline bool SmallImageIconUrlHasBeenSet() const { return m_smallImageIconUrlHasBeenSet; }
162 template<typename SmallImageIconUrlT = Aws::String>
163 void SetSmallImageIconUrl(SmallImageIconUrlT&& value) { m_smallImageIconUrlHasBeenSet = true; m_smallImageIconUrl = std::forward<SmallImageIconUrlT>(value); }
164 template<typename SmallImageIconUrlT = Aws::String>
165 BaiduMessage& WithSmallImageIconUrl(SmallImageIconUrlT&& value) { SetSmallImageIconUrl(std::forward<SmallImageIconUrlT>(value)); return *this;}
167
169
175 inline const Aws::String& GetSound() const { return m_sound; }
176 inline bool SoundHasBeenSet() const { return m_soundHasBeenSet; }
177 template<typename SoundT = Aws::String>
178 void SetSound(SoundT&& value) { m_soundHasBeenSet = true; m_sound = std::forward<SoundT>(value); }
179 template<typename SoundT = Aws::String>
180 BaiduMessage& WithSound(SoundT&& value) { SetSound(std::forward<SoundT>(value)); return *this;}
182
184
188 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetSubstitutions() const { return m_substitutions; }
189 inline bool SubstitutionsHasBeenSet() const { return m_substitutionsHasBeenSet; }
190 template<typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
191 void SetSubstitutions(SubstitutionsT&& value) { m_substitutionsHasBeenSet = true; m_substitutions = std::forward<SubstitutionsT>(value); }
192 template<typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
193 BaiduMessage& WithSubstitutions(SubstitutionsT&& value) { SetSubstitutions(std::forward<SubstitutionsT>(value)); return *this;}
194 template<typename SubstitutionsKeyT = Aws::String, typename SubstitutionsValueT = Aws::Vector<Aws::String>>
195 BaiduMessage& AddSubstitutions(SubstitutionsKeyT&& key, SubstitutionsValueT&& value) {
196 m_substitutionsHasBeenSet = true; m_substitutions.emplace(std::forward<SubstitutionsKeyT>(key), std::forward<SubstitutionsValueT>(value)); return *this;
197 }
199
201
206 inline int GetTimeToLive() const { return m_timeToLive; }
207 inline bool TimeToLiveHasBeenSet() const { return m_timeToLiveHasBeenSet; }
208 inline void SetTimeToLive(int value) { m_timeToLiveHasBeenSet = true; m_timeToLive = value; }
209 inline BaiduMessage& WithTimeToLive(int value) { SetTimeToLive(value); return *this;}
211
213
217 inline const Aws::String& GetTitle() const { return m_title; }
218 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
219 template<typename TitleT = Aws::String>
220 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
221 template<typename TitleT = Aws::String>
222 BaiduMessage& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
224
226
230 inline const Aws::String& GetUrl() const { return m_url; }
231 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
232 template<typename UrlT = Aws::String>
233 void SetUrl(UrlT&& value) { m_urlHasBeenSet = true; m_url = std::forward<UrlT>(value); }
234 template<typename UrlT = Aws::String>
235 BaiduMessage& WithUrl(UrlT&& value) { SetUrl(std::forward<UrlT>(value)); return *this;}
237 private:
238
239 Action m_action{Action::NOT_SET};
240 bool m_actionHasBeenSet = false;
241
242 Aws::String m_body;
243 bool m_bodyHasBeenSet = false;
244
246 bool m_dataHasBeenSet = false;
247
248 Aws::String m_iconReference;
249 bool m_iconReferenceHasBeenSet = false;
250
251 Aws::String m_imageIconUrl;
252 bool m_imageIconUrlHasBeenSet = false;
253
254 Aws::String m_imageUrl;
255 bool m_imageUrlHasBeenSet = false;
256
257 Aws::String m_rawContent;
258 bool m_rawContentHasBeenSet = false;
259
260 bool m_silentPush{false};
261 bool m_silentPushHasBeenSet = false;
262
263 Aws::String m_smallImageIconUrl;
264 bool m_smallImageIconUrlHasBeenSet = false;
265
266 Aws::String m_sound;
267 bool m_soundHasBeenSet = false;
268
270 bool m_substitutionsHasBeenSet = false;
271
272 int m_timeToLive{0};
273 bool m_timeToLiveHasBeenSet = false;
274
275 Aws::String m_title;
276 bool m_titleHasBeenSet = false;
277
278 Aws::String m_url;
279 bool m_urlHasBeenSet = false;
280 };
281
282} // namespace Model
283} // namespace Pinpoint
284} // 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