AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 Action GetAction() const { return m_action; }
53 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
54 inline void SetAction(Action value) { m_actionHasBeenSet = true; m_action = value; }
55 inline Message& WithAction(Action value) { SetAction(value); return *this;}
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) { m_bodyHasBeenSet = true; m_body = std::forward<BodyT>(value); }
67 template<typename BodyT = Aws::String>
68 Message& WithBody(BodyT&& value) { SetBody(std::forward<BodyT>(value)); return *this;}
70
72
76 inline const Aws::String& GetImageIconUrl() const { return m_imageIconUrl; }
77 inline bool ImageIconUrlHasBeenSet() const { return m_imageIconUrlHasBeenSet; }
78 template<typename ImageIconUrlT = Aws::String>
79 void SetImageIconUrl(ImageIconUrlT&& value) { m_imageIconUrlHasBeenSet = true; m_imageIconUrl = std::forward<ImageIconUrlT>(value); }
80 template<typename ImageIconUrlT = Aws::String>
81 Message& WithImageIconUrl(ImageIconUrlT&& value) { SetImageIconUrl(std::forward<ImageIconUrlT>(value)); return *this;}
83
85
89 inline const Aws::String& GetImageSmallIconUrl() const { return m_imageSmallIconUrl; }
90 inline bool ImageSmallIconUrlHasBeenSet() const { return m_imageSmallIconUrlHasBeenSet; }
91 template<typename ImageSmallIconUrlT = Aws::String>
92 void SetImageSmallIconUrl(ImageSmallIconUrlT&& value) { m_imageSmallIconUrlHasBeenSet = true; m_imageSmallIconUrl = std::forward<ImageSmallIconUrlT>(value); }
93 template<typename ImageSmallIconUrlT = Aws::String>
94 Message& WithImageSmallIconUrl(ImageSmallIconUrlT&& value) { SetImageSmallIconUrl(std::forward<ImageSmallIconUrlT>(value)); return *this;}
96
98
101 inline const Aws::String& GetImageUrl() const { return m_imageUrl; }
102 inline bool ImageUrlHasBeenSet() const { return m_imageUrlHasBeenSet; }
103 template<typename ImageUrlT = Aws::String>
104 void SetImageUrl(ImageUrlT&& value) { m_imageUrlHasBeenSet = true; m_imageUrl = std::forward<ImageUrlT>(value); }
105 template<typename ImageUrlT = Aws::String>
106 Message& WithImageUrl(ImageUrlT&& value) { SetImageUrl(std::forward<ImageUrlT>(value)); return *this;}
108
110
113 inline const Aws::String& GetJsonBody() const { return m_jsonBody; }
114 inline bool JsonBodyHasBeenSet() const { return m_jsonBodyHasBeenSet; }
115 template<typename JsonBodyT = Aws::String>
116 void SetJsonBody(JsonBodyT&& value) { m_jsonBodyHasBeenSet = true; m_jsonBody = std::forward<JsonBodyT>(value); }
117 template<typename JsonBodyT = Aws::String>
118 Message& WithJsonBody(JsonBodyT&& value) { SetJsonBody(std::forward<JsonBodyT>(value)); return *this;}
120
122
125 inline const Aws::String& GetMediaUrl() const { return m_mediaUrl; }
126 inline bool MediaUrlHasBeenSet() const { return m_mediaUrlHasBeenSet; }
127 template<typename MediaUrlT = Aws::String>
128 void SetMediaUrl(MediaUrlT&& value) { m_mediaUrlHasBeenSet = true; m_mediaUrl = std::forward<MediaUrlT>(value); }
129 template<typename MediaUrlT = Aws::String>
130 Message& WithMediaUrl(MediaUrlT&& value) { SetMediaUrl(std::forward<MediaUrlT>(value)); return *this;}
132
134
139 inline const Aws::String& GetRawContent() const { return m_rawContent; }
140 inline bool RawContentHasBeenSet() const { return m_rawContentHasBeenSet; }
141 template<typename RawContentT = Aws::String>
142 void SetRawContent(RawContentT&& value) { m_rawContentHasBeenSet = true; m_rawContent = std::forward<RawContentT>(value); }
143 template<typename RawContentT = Aws::String>
144 Message& WithRawContent(RawContentT&& value) { SetRawContent(std::forward<RawContentT>(value)); return *this;}
146
148
155 inline bool GetSilentPush() const { return m_silentPush; }
156 inline bool SilentPushHasBeenSet() const { return m_silentPushHasBeenSet; }
157 inline void SetSilentPush(bool value) { m_silentPushHasBeenSet = true; m_silentPush = value; }
158 inline Message& WithSilentPush(bool value) { SetSilentPush(value); return *this;}
160
162
171 inline int GetTimeToLive() const { return m_timeToLive; }
172 inline bool TimeToLiveHasBeenSet() const { return m_timeToLiveHasBeenSet; }
173 inline void SetTimeToLive(int value) { m_timeToLiveHasBeenSet = true; m_timeToLive = value; }
174 inline Message& WithTimeToLive(int value) { SetTimeToLive(value); return *this;}
176
178
182 inline const Aws::String& GetTitle() const { return m_title; }
183 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
184 template<typename TitleT = Aws::String>
185 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
186 template<typename TitleT = Aws::String>
187 Message& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
189
191
195 inline const Aws::String& GetUrl() const { return m_url; }
196 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
197 template<typename UrlT = Aws::String>
198 void SetUrl(UrlT&& value) { m_urlHasBeenSet = true; m_url = std::forward<UrlT>(value); }
199 template<typename UrlT = Aws::String>
200 Message& WithUrl(UrlT&& value) { SetUrl(std::forward<UrlT>(value)); return *this;}
202 private:
203
204 Action m_action{Action::NOT_SET};
205 bool m_actionHasBeenSet = false;
206
207 Aws::String m_body;
208 bool m_bodyHasBeenSet = false;
209
210 Aws::String m_imageIconUrl;
211 bool m_imageIconUrlHasBeenSet = false;
212
213 Aws::String m_imageSmallIconUrl;
214 bool m_imageSmallIconUrlHasBeenSet = false;
215
216 Aws::String m_imageUrl;
217 bool m_imageUrlHasBeenSet = false;
218
219 Aws::String m_jsonBody;
220 bool m_jsonBodyHasBeenSet = false;
221
222 Aws::String m_mediaUrl;
223 bool m_mediaUrlHasBeenSet = false;
224
225 Aws::String m_rawContent;
226 bool m_rawContentHasBeenSet = false;
227
228 bool m_silentPush{false};
229 bool m_silentPushHasBeenSet = false;
230
231 int m_timeToLive{0};
232 bool m_timeToLiveHasBeenSet = false;
233
234 Aws::String m_title;
235 bool m_titleHasBeenSet = false;
236
237 Aws::String m_url;
238 bool m_urlHasBeenSet = false;
239 };
240
241} // namespace Model
242} // namespace Pinpoint
243} // namespace Aws
bool ImageSmallIconUrlHasBeenSet() const
Definition Message.h:90
bool ImageIconUrlHasBeenSet() const
Definition Message.h:77
Message & WithTimeToLive(int value)
Definition Message.h:174
Message & WithImageSmallIconUrl(ImageSmallIconUrlT &&value)
Definition Message.h:94
void SetImageIconUrl(ImageIconUrlT &&value)
Definition Message.h:79
void SetJsonBody(JsonBodyT &&value)
Definition Message.h:116
Message & WithMediaUrl(MediaUrlT &&value)
Definition Message.h:130
void SetImageUrl(ImageUrlT &&value)
Definition Message.h:104
void SetTimeToLive(int value)
Definition Message.h:173
void SetRawContent(RawContentT &&value)
Definition Message.h:142
void SetSilentPush(bool value)
Definition Message.h:157
const Aws::String & GetRawContent() const
Definition Message.h:139
Message & WithRawContent(RawContentT &&value)
Definition Message.h:144
Message & WithJsonBody(JsonBodyT &&value)
Definition Message.h:118
void SetUrl(UrlT &&value)
Definition Message.h:198
Message & WithSilentPush(bool value)
Definition Message.h:158
bool RawContentHasBeenSet() const
Definition Message.h:140
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:89
void SetImageSmallIconUrl(ImageSmallIconUrlT &&value)
Definition Message.h:92
bool ActionHasBeenSet() const
Definition Message.h:53
bool JsonBodyHasBeenSet() const
Definition Message.h:114
const Aws::String & GetImageUrl() const
Definition Message.h:101
const Aws::String & GetJsonBody() const
Definition Message.h:113
void SetMediaUrl(MediaUrlT &&value)
Definition Message.h:128
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
Message & WithUrl(UrlT &&value)
Definition Message.h:200
void SetAction(Action value)
Definition Message.h:54
const Aws::String & GetUrl() const
Definition Message.h:195
AWS_PINPOINT_API Message(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMediaUrl() const
Definition Message.h:125
Message & WithTitle(TitleT &&value)
Definition Message.h:187
Message & WithImageUrl(ImageUrlT &&value)
Definition Message.h:106
bool TimeToLiveHasBeenSet() const
Definition Message.h:172
void SetTitle(TitleT &&value)
Definition Message.h:185
Message & WithAction(Action value)
Definition Message.h:55
bool SilentPushHasBeenSet() const
Definition Message.h:156
const Aws::String & GetImageIconUrl() const
Definition Message.h:76
Message & WithBody(BodyT &&value)
Definition Message.h:68
bool ImageUrlHasBeenSet() const
Definition Message.h:102
AWS_PINPOINT_API Message()=default
Message & WithImageIconUrl(ImageIconUrlT &&value)
Definition Message.h:81
bool MediaUrlHasBeenSet() const
Definition Message.h:126
Action GetAction() const
Definition Message.h:52
const Aws::String & GetTitle() const
Definition Message.h:182
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