AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PushBaiduMessageTemplateContent.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/qconnect/QConnect_EXPORTS.h>
9#include <aws/qconnect/model/MessageTemplateBodyContentProvider.h>
10#include <aws/qconnect/model/PushMessageAction.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QConnect {
22namespace Model {
23
31 public:
32 AWS_QCONNECT_API PushBaiduMessageTemplateContent() = default;
35 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetTitle() const { return m_title; }
43 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
44 template <typename TitleT = Aws::String>
45 void SetTitle(TitleT&& value) {
46 m_titleHasBeenSet = true;
47 m_title = std::forward<TitleT>(value);
48 }
49 template <typename TitleT = Aws::String>
51 SetTitle(std::forward<TitleT>(value));
52 return *this;
53 }
55
57
61 inline const MessageTemplateBodyContentProvider& GetBody() const { return m_body; }
62 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
63 template <typename BodyT = MessageTemplateBodyContentProvider>
64 void SetBody(BodyT&& value) {
65 m_bodyHasBeenSet = true;
66 m_body = std::forward<BodyT>(value);
67 }
68 template <typename BodyT = MessageTemplateBodyContentProvider>
70 SetBody(std::forward<BodyT>(value));
71 return *this;
72 }
74
76
87 inline PushMessageAction GetAction() const { return m_action; }
88 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
89 inline void SetAction(PushMessageAction value) {
90 m_actionHasBeenSet = true;
91 m_action = value;
92 }
94 SetAction(value);
95 return *this;
96 }
98
100
106 inline const Aws::String& GetSound() const { return m_sound; }
107 inline bool SoundHasBeenSet() const { return m_soundHasBeenSet; }
108 template <typename SoundT = Aws::String>
109 void SetSound(SoundT&& value) {
110 m_soundHasBeenSet = true;
111 m_sound = std::forward<SoundT>(value);
112 }
113 template <typename SoundT = Aws::String>
115 SetSound(std::forward<SoundT>(value));
116 return *this;
117 }
119
121
126 inline const Aws::String& GetUrl() const { return m_url; }
127 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
128 template <typename UrlT = Aws::String>
129 void SetUrl(UrlT&& value) {
130 m_urlHasBeenSet = true;
131 m_url = std::forward<UrlT>(value);
132 }
133 template <typename UrlT = Aws::String>
135 SetUrl(std::forward<UrlT>(value));
136 return *this;
137 }
139
141
145 inline const Aws::String& GetImageUrl() const { return m_imageUrl; }
146 inline bool ImageUrlHasBeenSet() const { return m_imageUrlHasBeenSet; }
147 template <typename ImageUrlT = Aws::String>
148 void SetImageUrl(ImageUrlT&& value) {
149 m_imageUrlHasBeenSet = true;
150 m_imageUrl = std::forward<ImageUrlT>(value);
151 }
152 template <typename ImageUrlT = Aws::String>
154 SetImageUrl(std::forward<ImageUrlT>(value));
155 return *this;
156 }
158
160
164 inline const Aws::String& GetImageIconUrl() const { return m_imageIconUrl; }
165 inline bool ImageIconUrlHasBeenSet() const { return m_imageIconUrlHasBeenSet; }
166 template <typename ImageIconUrlT = Aws::String>
168 m_imageIconUrlHasBeenSet = true;
169 m_imageIconUrl = std::forward<ImageIconUrlT>(value);
170 }
171 template <typename ImageIconUrlT = Aws::String>
173 SetImageIconUrl(std::forward<ImageIconUrlT>(value));
174 return *this;
175 }
177
179
183 inline const Aws::String& GetSmallImageIconUrl() const { return m_smallImageIconUrl; }
184 inline bool SmallImageIconUrlHasBeenSet() const { return m_smallImageIconUrlHasBeenSet; }
185 template <typename SmallImageIconUrlT = Aws::String>
187 m_smallImageIconUrlHasBeenSet = true;
188 m_smallImageIconUrl = std::forward<SmallImageIconUrlT>(value);
189 }
190 template <typename SmallImageIconUrlT = Aws::String>
192 SetSmallImageIconUrl(std::forward<SmallImageIconUrlT>(value));
193 return *this;
194 }
196
198
202 inline const MessageTemplateBodyContentProvider& GetRawContent() const { return m_rawContent; }
203 inline bool RawContentHasBeenSet() const { return m_rawContentHasBeenSet; }
204 template <typename RawContentT = MessageTemplateBodyContentProvider>
206 m_rawContentHasBeenSet = true;
207 m_rawContent = std::forward<RawContentT>(value);
208 }
209 template <typename RawContentT = MessageTemplateBodyContentProvider>
211 SetRawContent(std::forward<RawContentT>(value));
212 return *this;
213 }
215 private:
216 Aws::String m_title;
217
219
221
222 Aws::String m_sound;
223
224 Aws::String m_url;
225
226 Aws::String m_imageUrl;
227
228 Aws::String m_imageIconUrl;
229
230 Aws::String m_smallImageIconUrl;
231
232 MessageTemplateBodyContentProvider m_rawContent;
233 bool m_titleHasBeenSet = false;
234 bool m_bodyHasBeenSet = false;
235 bool m_actionHasBeenSet = false;
236 bool m_soundHasBeenSet = false;
237 bool m_urlHasBeenSet = false;
238 bool m_imageUrlHasBeenSet = false;
239 bool m_imageIconUrlHasBeenSet = false;
240 bool m_smallImageIconUrlHasBeenSet = false;
241 bool m_rawContentHasBeenSet = false;
242};
243
244} // namespace Model
245} // namespace QConnect
246} // namespace Aws
PushBaiduMessageTemplateContent & WithSmallImageIconUrl(SmallImageIconUrlT &&value)
PushBaiduMessageTemplateContent & WithSound(SoundT &&value)
PushBaiduMessageTemplateContent & WithRawContent(RawContentT &&value)
PushBaiduMessageTemplateContent & WithTitle(TitleT &&value)
const MessageTemplateBodyContentProvider & GetBody() const
PushBaiduMessageTemplateContent & WithBody(BodyT &&value)
PushBaiduMessageTemplateContent & WithUrl(UrlT &&value)
AWS_QCONNECT_API PushBaiduMessageTemplateContent()=default
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const MessageTemplateBodyContentProvider & GetRawContent() const
AWS_QCONNECT_API PushBaiduMessageTemplateContent & operator=(Aws::Utils::Json::JsonView jsonValue)
PushBaiduMessageTemplateContent & WithImageUrl(ImageUrlT &&value)
PushBaiduMessageTemplateContent & WithImageIconUrl(ImageIconUrlT &&value)
AWS_QCONNECT_API PushBaiduMessageTemplateContent(Aws::Utils::Json::JsonView jsonValue)
PushBaiduMessageTemplateContent & WithAction(PushMessageAction value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue