AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Message.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Pinpoint
23{
24namespace Model
25{
26
33 class Message
34 {
35 public:
36 AWS_PINPOINT_API Message();
37 AWS_PINPOINT_API Message(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PINPOINT_API Message& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
52 inline const Action& GetAction() const{ return m_action; }
53 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
54 inline void SetAction(const Action& value) { m_actionHasBeenSet = true; m_action = value; }
55 inline void SetAction(Action&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
56 inline Message& WithAction(const Action& value) { SetAction(value); return *this;}
57 inline Message& WithAction(Action&& value) { SetAction(std::move(value)); return *this;}
59
61
65 inline const Aws::String& GetBody() const{ return m_body; }
66 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
67 inline void SetBody(const Aws::String& value) { m_bodyHasBeenSet = true; m_body = value; }
68 inline void SetBody(Aws::String&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); }
69 inline void SetBody(const char* value) { m_bodyHasBeenSet = true; m_body.assign(value); }
70 inline Message& WithBody(const Aws::String& value) { SetBody(value); return *this;}
71 inline Message& WithBody(Aws::String&& value) { SetBody(std::move(value)); return *this;}
72 inline Message& WithBody(const char* value) { SetBody(value); return *this;}
74
76
80 inline const Aws::String& GetImageIconUrl() const{ return m_imageIconUrl; }
81 inline bool ImageIconUrlHasBeenSet() const { return m_imageIconUrlHasBeenSet; }
82 inline void SetImageIconUrl(const Aws::String& value) { m_imageIconUrlHasBeenSet = true; m_imageIconUrl = value; }
83 inline void SetImageIconUrl(Aws::String&& value) { m_imageIconUrlHasBeenSet = true; m_imageIconUrl = std::move(value); }
84 inline void SetImageIconUrl(const char* value) { m_imageIconUrlHasBeenSet = true; m_imageIconUrl.assign(value); }
85 inline Message& WithImageIconUrl(const Aws::String& value) { SetImageIconUrl(value); return *this;}
86 inline Message& WithImageIconUrl(Aws::String&& value) { SetImageIconUrl(std::move(value)); return *this;}
87 inline Message& WithImageIconUrl(const char* value) { SetImageIconUrl(value); return *this;}
89
91
95 inline const Aws::String& GetImageSmallIconUrl() const{ return m_imageSmallIconUrl; }
96 inline bool ImageSmallIconUrlHasBeenSet() const { return m_imageSmallIconUrlHasBeenSet; }
97 inline void SetImageSmallIconUrl(const Aws::String& value) { m_imageSmallIconUrlHasBeenSet = true; m_imageSmallIconUrl = value; }
98 inline void SetImageSmallIconUrl(Aws::String&& value) { m_imageSmallIconUrlHasBeenSet = true; m_imageSmallIconUrl = std::move(value); }
99 inline void SetImageSmallIconUrl(const char* value) { m_imageSmallIconUrlHasBeenSet = true; m_imageSmallIconUrl.assign(value); }
100 inline Message& WithImageSmallIconUrl(const Aws::String& value) { SetImageSmallIconUrl(value); return *this;}
101 inline Message& WithImageSmallIconUrl(Aws::String&& value) { SetImageSmallIconUrl(std::move(value)); return *this;}
102 inline Message& WithImageSmallIconUrl(const char* value) { SetImageSmallIconUrl(value); return *this;}
104
106
109 inline const Aws::String& GetImageUrl() const{ return m_imageUrl; }
110 inline bool ImageUrlHasBeenSet() const { return m_imageUrlHasBeenSet; }
111 inline void SetImageUrl(const Aws::String& value) { m_imageUrlHasBeenSet = true; m_imageUrl = value; }
112 inline void SetImageUrl(Aws::String&& value) { m_imageUrlHasBeenSet = true; m_imageUrl = std::move(value); }
113 inline void SetImageUrl(const char* value) { m_imageUrlHasBeenSet = true; m_imageUrl.assign(value); }
114 inline Message& WithImageUrl(const Aws::String& value) { SetImageUrl(value); return *this;}
115 inline Message& WithImageUrl(Aws::String&& value) { SetImageUrl(std::move(value)); return *this;}
116 inline Message& WithImageUrl(const char* value) { SetImageUrl(value); return *this;}
118
120
123 inline const Aws::String& GetJsonBody() const{ return m_jsonBody; }
124 inline bool JsonBodyHasBeenSet() const { return m_jsonBodyHasBeenSet; }
125 inline void SetJsonBody(const Aws::String& value) { m_jsonBodyHasBeenSet = true; m_jsonBody = value; }
126 inline void SetJsonBody(Aws::String&& value) { m_jsonBodyHasBeenSet = true; m_jsonBody = std::move(value); }
127 inline void SetJsonBody(const char* value) { m_jsonBodyHasBeenSet = true; m_jsonBody.assign(value); }
128 inline Message& WithJsonBody(const Aws::String& value) { SetJsonBody(value); return *this;}
129 inline Message& WithJsonBody(Aws::String&& value) { SetJsonBody(std::move(value)); return *this;}
130 inline Message& WithJsonBody(const char* value) { SetJsonBody(value); return *this;}
132
134
137 inline const Aws::String& GetMediaUrl() const{ return m_mediaUrl; }
138 inline bool MediaUrlHasBeenSet() const { return m_mediaUrlHasBeenSet; }
139 inline void SetMediaUrl(const Aws::String& value) { m_mediaUrlHasBeenSet = true; m_mediaUrl = value; }
140 inline void SetMediaUrl(Aws::String&& value) { m_mediaUrlHasBeenSet = true; m_mediaUrl = std::move(value); }
141 inline void SetMediaUrl(const char* value) { m_mediaUrlHasBeenSet = true; m_mediaUrl.assign(value); }
142 inline Message& WithMediaUrl(const Aws::String& value) { SetMediaUrl(value); return *this;}
143 inline Message& WithMediaUrl(Aws::String&& value) { SetMediaUrl(std::move(value)); return *this;}
144 inline Message& WithMediaUrl(const char* value) { SetMediaUrl(value); return *this;}
146
148
153 inline const Aws::String& GetRawContent() const{ return m_rawContent; }
154 inline bool RawContentHasBeenSet() const { return m_rawContentHasBeenSet; }
155 inline void SetRawContent(const Aws::String& value) { m_rawContentHasBeenSet = true; m_rawContent = value; }
156 inline void SetRawContent(Aws::String&& value) { m_rawContentHasBeenSet = true; m_rawContent = std::move(value); }
157 inline void SetRawContent(const char* value) { m_rawContentHasBeenSet = true; m_rawContent.assign(value); }
158 inline Message& WithRawContent(const Aws::String& value) { SetRawContent(value); return *this;}
159 inline Message& WithRawContent(Aws::String&& value) { SetRawContent(std::move(value)); return *this;}
160 inline Message& WithRawContent(const char* value) { SetRawContent(value); return *this;}
162
164
171 inline bool GetSilentPush() const{ return m_silentPush; }
172 inline bool SilentPushHasBeenSet() const { return m_silentPushHasBeenSet; }
173 inline void SetSilentPush(bool value) { m_silentPushHasBeenSet = true; m_silentPush = value; }
174 inline Message& WithSilentPush(bool value) { SetSilentPush(value); return *this;}
176
178
187 inline int GetTimeToLive() const{ return m_timeToLive; }
188 inline bool TimeToLiveHasBeenSet() const { return m_timeToLiveHasBeenSet; }
189 inline void SetTimeToLive(int value) { m_timeToLiveHasBeenSet = true; m_timeToLive = value; }
190 inline Message& WithTimeToLive(int value) { SetTimeToLive(value); return *this;}
192
194
198 inline const Aws::String& GetTitle() const{ return m_title; }
199 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
200 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
201 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
202 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
203 inline Message& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
204 inline Message& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
205 inline Message& WithTitle(const char* value) { SetTitle(value); return *this;}
207
209
213 inline const Aws::String& GetUrl() const{ return m_url; }
214 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
215 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
216 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
217 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
218 inline Message& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
219 inline Message& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
220 inline Message& WithUrl(const char* value) { SetUrl(value); return *this;}
222 private:
223
224 Action m_action;
225 bool m_actionHasBeenSet = false;
226
227 Aws::String m_body;
228 bool m_bodyHasBeenSet = false;
229
230 Aws::String m_imageIconUrl;
231 bool m_imageIconUrlHasBeenSet = false;
232
233 Aws::String m_imageSmallIconUrl;
234 bool m_imageSmallIconUrlHasBeenSet = false;
235
236 Aws::String m_imageUrl;
237 bool m_imageUrlHasBeenSet = false;
238
239 Aws::String m_jsonBody;
240 bool m_jsonBodyHasBeenSet = false;
241
242 Aws::String m_mediaUrl;
243 bool m_mediaUrlHasBeenSet = false;
244
245 Aws::String m_rawContent;
246 bool m_rawContentHasBeenSet = false;
247
248 bool m_silentPush;
249 bool m_silentPushHasBeenSet = false;
250
251 int m_timeToLive;
252 bool m_timeToLiveHasBeenSet = false;
253
254 Aws::String m_title;
255 bool m_titleHasBeenSet = false;
256
257 Aws::String m_url;
258 bool m_urlHasBeenSet = false;
259 };
260
261} // namespace Model
262} // namespace Pinpoint
263} // namespace Aws
void SetJsonBody(Aws::String &&value)
Definition Message.h:126
Message & WithImageIconUrl(const Aws::String &value)
Definition Message.h:85
void SetRawContent(const Aws::String &value)
Definition Message.h:155
Message & WithBody(const char *value)
Definition Message.h:72
bool ImageSmallIconUrlHasBeenSet() const
Definition Message.h:96
bool ImageIconUrlHasBeenSet() const
Definition Message.h:81
Message & WithTimeToLive(int value)
Definition Message.h:190
void SetTitle(const char *value)
Definition Message.h:202
Message & WithImageSmallIconUrl(const char *value)
Definition Message.h:102
Message & WithImageSmallIconUrl(const Aws::String &value)
Definition Message.h:100
Message & WithBody(Aws::String &&value)
Definition Message.h:71
void SetAction(const Action &value)
Definition Message.h:54
void SetImageUrl(const Aws::String &value)
Definition Message.h:111
void SetTimeToLive(int value)
Definition Message.h:189
Message & WithMediaUrl(const char *value)
Definition Message.h:144
void SetSilentPush(bool value)
Definition Message.h:173
void SetBody(const char *value)
Definition Message.h:69
const Aws::String & GetRawContent() const
Definition Message.h:153
void SetRawContent(Aws::String &&value)
Definition Message.h:156
Message & WithJsonBody(const Aws::String &value)
Definition Message.h:128
Message & WithSilentPush(bool value)
Definition Message.h:174
bool RawContentHasBeenSet() const
Definition Message.h:154
Message & WithJsonBody(const char *value)
Definition Message.h:130
void SetUrl(const Aws::String &value)
Definition Message.h:215
void SetImageUrl(const char *value)
Definition Message.h:113
Message & WithRawContent(const char *value)
Definition Message.h:160
Message & WithImageUrl(const char *value)
Definition Message.h:116
void SetImageSmallIconUrl(const Aws::String &value)
Definition Message.h:97
Message & WithRawContent(const Aws::String &value)
Definition Message.h:158
AWS_PINPOINT_API Message & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetImageSmallIconUrl() const
Definition Message.h:95
void SetAction(Action &&value)
Definition Message.h:55
void SetImageIconUrl(const Aws::String &value)
Definition Message.h:82
bool ActionHasBeenSet() const
Definition Message.h:53
bool JsonBodyHasBeenSet() const
Definition Message.h:124
Message & WithTitle(const Aws::String &value)
Definition Message.h:203
Message & WithImageUrl(Aws::String &&value)
Definition Message.h:115
Message & WithImageSmallIconUrl(Aws::String &&value)
Definition Message.h:101
void SetJsonBody(const char *value)
Definition Message.h:127
const Aws::String & GetImageUrl() const
Definition Message.h:109
const Aws::String & GetJsonBody() const
Definition Message.h:123
void SetUrl(Aws::String &&value)
Definition Message.h:216
Message & WithUrl(const Aws::String &value)
Definition Message.h:218
void SetImageUrl(Aws::String &&value)
Definition Message.h:112
Message & WithImageIconUrl(Aws::String &&value)
Definition Message.h:86
void SetTitle(const Aws::String &value)
Definition Message.h:200
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTitle(Aws::String &&value)
Definition Message.h:201
void SetImageIconUrl(const char *value)
Definition Message.h:84
void SetJsonBody(const Aws::String &value)
Definition Message.h:125
const Aws::String & GetUrl() const
Definition Message.h:213
Message & WithMediaUrl(Aws::String &&value)
Definition Message.h:143
void SetImageSmallIconUrl(Aws::String &&value)
Definition Message.h:98
void SetImageIconUrl(Aws::String &&value)
Definition Message.h:83
Message & WithImageUrl(const Aws::String &value)
Definition Message.h:114
AWS_PINPOINT_API Message(Aws::Utils::Json::JsonView jsonValue)
Message & WithTitle(const char *value)
Definition Message.h:205
void SetImageSmallIconUrl(const char *value)
Definition Message.h:99
void SetUrl(const char *value)
Definition Message.h:217
const Aws::String & GetMediaUrl() const
Definition Message.h:137
void SetMediaUrl(Aws::String &&value)
Definition Message.h:140
Message & WithRawContent(Aws::String &&value)
Definition Message.h:159
Message & WithUrl(Aws::String &&value)
Definition Message.h:219
void SetBody(Aws::String &&value)
Definition Message.h:68
Message & WithMediaUrl(const Aws::String &value)
Definition Message.h:142
AWS_PINPOINT_API Message()
Message & WithImageIconUrl(const char *value)
Definition Message.h:87
bool TimeToLiveHasBeenSet() const
Definition Message.h:188
void SetMediaUrl(const char *value)
Definition Message.h:141
Message & WithTitle(Aws::String &&value)
Definition Message.h:204
Message & WithAction(const Action &value)
Definition Message.h:56
bool SilentPushHasBeenSet() const
Definition Message.h:172
const Aws::String & GetImageIconUrl() const
Definition Message.h:80
Message & WithAction(Action &&value)
Definition Message.h:57
bool ImageUrlHasBeenSet() const
Definition Message.h:110
Message & WithUrl(const char *value)
Definition Message.h:220
Message & WithBody(const Aws::String &value)
Definition Message.h:70
void SetBody(const Aws::String &value)
Definition Message.h:67
bool MediaUrlHasBeenSet() const
Definition Message.h:138
const Aws::String & GetTitle() const
Definition Message.h:198
const Aws::String & GetBody() const
Definition Message.h:65
const Action & GetAction() const
Definition Message.h:52
Message & WithJsonBody(Aws::String &&value)
Definition Message.h:129
void SetRawContent(const char *value)
Definition Message.h:157
void SetMediaUrl(const Aws::String &value)
Definition Message.h:139
bool BodyHasBeenSet() const
Definition Message.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue