AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Message.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pinpoint/Pinpoint_EXPORTS.h>
9#include <aws/pinpoint/model/Action.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Pinpoint {
21namespace Model {
22
29class Message {
30 public:
31 AWS_PINPOINT_API Message() = default;
32 AWS_PINPOINT_API Message(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PINPOINT_API Message& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
46 inline Action GetAction() const { return m_action; }
47 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
48 inline void SetAction(Action value) {
49 m_actionHasBeenSet = true;
50 m_action = value;
51 }
52 inline Message& WithAction(Action value) {
53 SetAction(value);
54 return *this;
55 }
57
59
63 inline const Aws::String& GetBody() const { return m_body; }
64 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
65 template <typename BodyT = Aws::String>
66 void SetBody(BodyT&& value) {
67 m_bodyHasBeenSet = true;
68 m_body = std::forward<BodyT>(value);
69 }
70 template <typename BodyT = Aws::String>
71 Message& WithBody(BodyT&& value) {
72 SetBody(std::forward<BodyT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetImageIconUrl() const { return m_imageIconUrl; }
83 inline bool ImageIconUrlHasBeenSet() const { return m_imageIconUrlHasBeenSet; }
84 template <typename ImageIconUrlT = Aws::String>
85 void SetImageIconUrl(ImageIconUrlT&& value) {
86 m_imageIconUrlHasBeenSet = true;
87 m_imageIconUrl = std::forward<ImageIconUrlT>(value);
88 }
89 template <typename ImageIconUrlT = Aws::String>
90 Message& WithImageIconUrl(ImageIconUrlT&& value) {
91 SetImageIconUrl(std::forward<ImageIconUrlT>(value));
92 return *this;
93 }
95
97
101 inline const Aws::String& GetImageSmallIconUrl() const { return m_imageSmallIconUrl; }
102 inline bool ImageSmallIconUrlHasBeenSet() const { return m_imageSmallIconUrlHasBeenSet; }
103 template <typename ImageSmallIconUrlT = Aws::String>
104 void SetImageSmallIconUrl(ImageSmallIconUrlT&& value) {
105 m_imageSmallIconUrlHasBeenSet = true;
106 m_imageSmallIconUrl = std::forward<ImageSmallIconUrlT>(value);
107 }
108 template <typename ImageSmallIconUrlT = Aws::String>
109 Message& WithImageSmallIconUrl(ImageSmallIconUrlT&& value) {
110 SetImageSmallIconUrl(std::forward<ImageSmallIconUrlT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetImageUrl() const { return m_imageUrl; }
120 inline bool ImageUrlHasBeenSet() const { return m_imageUrlHasBeenSet; }
121 template <typename ImageUrlT = Aws::String>
122 void SetImageUrl(ImageUrlT&& value) {
123 m_imageUrlHasBeenSet = true;
124 m_imageUrl = std::forward<ImageUrlT>(value);
125 }
126 template <typename ImageUrlT = Aws::String>
127 Message& WithImageUrl(ImageUrlT&& value) {
128 SetImageUrl(std::forward<ImageUrlT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::String& GetJsonBody() const { return m_jsonBody; }
138 inline bool JsonBodyHasBeenSet() const { return m_jsonBodyHasBeenSet; }
139 template <typename JsonBodyT = Aws::String>
140 void SetJsonBody(JsonBodyT&& value) {
141 m_jsonBodyHasBeenSet = true;
142 m_jsonBody = std::forward<JsonBodyT>(value);
143 }
144 template <typename JsonBodyT = Aws::String>
145 Message& WithJsonBody(JsonBodyT&& value) {
146 SetJsonBody(std::forward<JsonBodyT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::String& GetMediaUrl() const { return m_mediaUrl; }
156 inline bool MediaUrlHasBeenSet() const { return m_mediaUrlHasBeenSet; }
157 template <typename MediaUrlT = Aws::String>
158 void SetMediaUrl(MediaUrlT&& value) {
159 m_mediaUrlHasBeenSet = true;
160 m_mediaUrl = std::forward<MediaUrlT>(value);
161 }
162 template <typename MediaUrlT = Aws::String>
163 Message& WithMediaUrl(MediaUrlT&& value) {
164 SetMediaUrl(std::forward<MediaUrlT>(value));
165 return *this;
166 }
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) {
179 m_rawContentHasBeenSet = true;
180 m_rawContent = std::forward<RawContentT>(value);
181 }
182 template <typename RawContentT = Aws::String>
183 Message& WithRawContent(RawContentT&& value) {
184 SetRawContent(std::forward<RawContentT>(value));
185 return *this;
186 }
188
190
197 inline bool GetSilentPush() const { return m_silentPush; }
198 inline bool SilentPushHasBeenSet() const { return m_silentPushHasBeenSet; }
199 inline void SetSilentPush(bool value) {
200 m_silentPushHasBeenSet = true;
201 m_silentPush = value;
202 }
203 inline Message& WithSilentPush(bool value) {
204 SetSilentPush(value);
205 return *this;
206 }
208
210
219 inline int GetTimeToLive() const { return m_timeToLive; }
220 inline bool TimeToLiveHasBeenSet() const { return m_timeToLiveHasBeenSet; }
221 inline void SetTimeToLive(int value) {
222 m_timeToLiveHasBeenSet = true;
223 m_timeToLive = value;
224 }
225 inline Message& WithTimeToLive(int value) {
226 SetTimeToLive(value);
227 return *this;
228 }
230
232
236 inline const Aws::String& GetTitle() const { return m_title; }
237 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
238 template <typename TitleT = Aws::String>
239 void SetTitle(TitleT&& value) {
240 m_titleHasBeenSet = true;
241 m_title = std::forward<TitleT>(value);
242 }
243 template <typename TitleT = Aws::String>
244 Message& WithTitle(TitleT&& value) {
245 SetTitle(std::forward<TitleT>(value));
246 return *this;
247 }
249
251
255 inline const Aws::String& GetUrl() const { return m_url; }
256 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
257 template <typename UrlT = Aws::String>
258 void SetUrl(UrlT&& value) {
259 m_urlHasBeenSet = true;
260 m_url = std::forward<UrlT>(value);
261 }
262 template <typename UrlT = Aws::String>
263 Message& WithUrl(UrlT&& value) {
264 SetUrl(std::forward<UrlT>(value));
265 return *this;
266 }
268 private:
269 Action m_action{Action::NOT_SET};
270
271 Aws::String m_body;
272
273 Aws::String m_imageIconUrl;
274
275 Aws::String m_imageSmallIconUrl;
276
277 Aws::String m_imageUrl;
278
279 Aws::String m_jsonBody;
280
281 Aws::String m_mediaUrl;
282
283 Aws::String m_rawContent;
284
285 bool m_silentPush{false};
286
287 int m_timeToLive{0};
288
289 Aws::String m_title;
290
291 Aws::String m_url;
292 bool m_actionHasBeenSet = false;
293 bool m_bodyHasBeenSet = false;
294 bool m_imageIconUrlHasBeenSet = false;
295 bool m_imageSmallIconUrlHasBeenSet = false;
296 bool m_imageUrlHasBeenSet = false;
297 bool m_jsonBodyHasBeenSet = false;
298 bool m_mediaUrlHasBeenSet = false;
299 bool m_rawContentHasBeenSet = false;
300 bool m_silentPushHasBeenSet = false;
301 bool m_timeToLiveHasBeenSet = false;
302 bool m_titleHasBeenSet = false;
303 bool m_urlHasBeenSet = false;
304};
305
306} // namespace Model
307} // namespace Pinpoint
308} // namespace Aws
bool ImageSmallIconUrlHasBeenSet() const
Definition Message.h:102
bool ImageIconUrlHasBeenSet() const
Definition Message.h:83
Message & WithTimeToLive(int value)
Definition Message.h:225
Message & WithImageSmallIconUrl(ImageSmallIconUrlT &&value)
Definition Message.h:109
void SetImageIconUrl(ImageIconUrlT &&value)
Definition Message.h:85
void SetJsonBody(JsonBodyT &&value)
Definition Message.h:140
Message & WithMediaUrl(MediaUrlT &&value)
Definition Message.h:163
void SetImageUrl(ImageUrlT &&value)
Definition Message.h:122
void SetTimeToLive(int value)
Definition Message.h:221
void SetRawContent(RawContentT &&value)
Definition Message.h:178
void SetSilentPush(bool value)
Definition Message.h:199
const Aws::String & GetRawContent() const
Definition Message.h:175
Message & WithRawContent(RawContentT &&value)
Definition Message.h:183
Message & WithJsonBody(JsonBodyT &&value)
Definition Message.h:145
void SetUrl(UrlT &&value)
Definition Message.h:258
Message & WithSilentPush(bool value)
Definition Message.h:203
bool RawContentHasBeenSet() const
Definition Message.h:176
void SetBody(BodyT &&value)
Definition Message.h:66
AWS_PINPOINT_API Message & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetImageSmallIconUrl() const
Definition Message.h:101
void SetImageSmallIconUrl(ImageSmallIconUrlT &&value)
Definition Message.h:104
bool ActionHasBeenSet() const
Definition Message.h:47
bool JsonBodyHasBeenSet() const
Definition Message.h:138
const Aws::String & GetImageUrl() const
Definition Message.h:119
const Aws::String & GetJsonBody() const
Definition Message.h:137
void SetMediaUrl(MediaUrlT &&value)
Definition Message.h:158
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
Message & WithUrl(UrlT &&value)
Definition Message.h:263
void SetAction(Action value)
Definition Message.h:48
const Aws::String & GetUrl() const
Definition Message.h:255
AWS_PINPOINT_API Message(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMediaUrl() const
Definition Message.h:155
Message & WithTitle(TitleT &&value)
Definition Message.h:244
Message & WithImageUrl(ImageUrlT &&value)
Definition Message.h:127
bool TimeToLiveHasBeenSet() const
Definition Message.h:220
void SetTitle(TitleT &&value)
Definition Message.h:239
Message & WithAction(Action value)
Definition Message.h:52
bool SilentPushHasBeenSet() const
Definition Message.h:198
const Aws::String & GetImageIconUrl() const
Definition Message.h:82
Message & WithBody(BodyT &&value)
Definition Message.h:71
bool ImageUrlHasBeenSet() const
Definition Message.h:120
AWS_PINPOINT_API Message()=default
Message & WithImageIconUrl(ImageIconUrlT &&value)
Definition Message.h:90
bool MediaUrlHasBeenSet() const
Definition Message.h:156
Action GetAction() const
Definition Message.h:46
const Aws::String & GetTitle() const
Definition Message.h:236
const Aws::String & GetBody() const
Definition Message.h:63
bool BodyHasBeenSet() const
Definition Message.h:64
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue