AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
LibraryItemMember.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/qapps/QApps_EXPORTS.h>
11#include <aws/qapps/model/Category.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QApps {
23namespace Model {
24
33 public:
34 AWS_QAPPS_API LibraryItemMember() = default;
37 AWS_QAPPS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetLibraryItemId() const { return m_libraryItemId; }
44 inline bool LibraryItemIdHasBeenSet() const { return m_libraryItemIdHasBeenSet; }
45 template <typename LibraryItemIdT = Aws::String>
47 m_libraryItemIdHasBeenSet = true;
48 m_libraryItemId = std::forward<LibraryItemIdT>(value);
49 }
50 template <typename LibraryItemIdT = Aws::String>
52 SetLibraryItemId(std::forward<LibraryItemIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetAppId() const { return m_appId; }
62 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
63 template <typename AppIdT = Aws::String>
64 void SetAppId(AppIdT&& value) {
65 m_appIdHasBeenSet = true;
66 m_appId = std::forward<AppIdT>(value);
67 }
68 template <typename AppIdT = Aws::String>
70 SetAppId(std::forward<AppIdT>(value));
71 return *this;
72 }
74
76
79 inline int GetAppVersion() const { return m_appVersion; }
80 inline bool AppVersionHasBeenSet() const { return m_appVersionHasBeenSet; }
81 inline void SetAppVersion(int value) {
82 m_appVersionHasBeenSet = true;
83 m_appVersion = value;
84 }
85 inline LibraryItemMember& WithAppVersion(int value) {
86 SetAppVersion(value);
87 return *this;
88 }
90
92
95 inline const Aws::Vector<Category>& GetCategories() const { return m_categories; }
96 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
97 template <typename CategoriesT = Aws::Vector<Category>>
98 void SetCategories(CategoriesT&& value) {
99 m_categoriesHasBeenSet = true;
100 m_categories = std::forward<CategoriesT>(value);
101 }
102 template <typename CategoriesT = Aws::Vector<Category>>
104 SetCategories(std::forward<CategoriesT>(value));
105 return *this;
106 }
107 template <typename CategoriesT = Category>
109 m_categoriesHasBeenSet = true;
110 m_categories.emplace_back(std::forward<CategoriesT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetStatus() const { return m_status; }
120 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
121 template <typename StatusT = Aws::String>
122 void SetStatus(StatusT&& value) {
123 m_statusHasBeenSet = true;
124 m_status = std::forward<StatusT>(value);
125 }
126 template <typename StatusT = Aws::String>
128 SetStatus(std::forward<StatusT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
138 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
139 template <typename CreatedAtT = Aws::Utils::DateTime>
140 void SetCreatedAt(CreatedAtT&& value) {
141 m_createdAtHasBeenSet = true;
142 m_createdAt = std::forward<CreatedAtT>(value);
143 }
144 template <typename CreatedAtT = Aws::Utils::DateTime>
146 SetCreatedAt(std::forward<CreatedAtT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
156 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
157 template <typename CreatedByT = Aws::String>
158 void SetCreatedBy(CreatedByT&& value) {
159 m_createdByHasBeenSet = true;
160 m_createdBy = std::forward<CreatedByT>(value);
161 }
162 template <typename CreatedByT = Aws::String>
164 SetCreatedBy(std::forward<CreatedByT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
174 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
175 template <typename UpdatedAtT = Aws::Utils::DateTime>
176 void SetUpdatedAt(UpdatedAtT&& value) {
177 m_updatedAtHasBeenSet = true;
178 m_updatedAt = std::forward<UpdatedAtT>(value);
179 }
180 template <typename UpdatedAtT = Aws::Utils::DateTime>
182 SetUpdatedAt(std::forward<UpdatedAtT>(value));
183 return *this;
184 }
186
188
191 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
192 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
193 template <typename UpdatedByT = Aws::String>
194 void SetUpdatedBy(UpdatedByT&& value) {
195 m_updatedByHasBeenSet = true;
196 m_updatedBy = std::forward<UpdatedByT>(value);
197 }
198 template <typename UpdatedByT = Aws::String>
200 SetUpdatedBy(std::forward<UpdatedByT>(value));
201 return *this;
202 }
204
206
209 inline int GetRatingCount() const { return m_ratingCount; }
210 inline bool RatingCountHasBeenSet() const { return m_ratingCountHasBeenSet; }
211 inline void SetRatingCount(int value) {
212 m_ratingCountHasBeenSet = true;
213 m_ratingCount = value;
214 }
216 SetRatingCount(value);
217 return *this;
218 }
220
222
225 inline bool GetIsRatedByUser() const { return m_isRatedByUser; }
226 inline bool IsRatedByUserHasBeenSet() const { return m_isRatedByUserHasBeenSet; }
227 inline void SetIsRatedByUser(bool value) {
228 m_isRatedByUserHasBeenSet = true;
229 m_isRatedByUser = value;
230 }
232 SetIsRatedByUser(value);
233 return *this;
234 }
236
238
241 inline int GetUserCount() const { return m_userCount; }
242 inline bool UserCountHasBeenSet() const { return m_userCountHasBeenSet; }
243 inline void SetUserCount(int value) {
244 m_userCountHasBeenSet = true;
245 m_userCount = value;
246 }
247 inline LibraryItemMember& WithUserCount(int value) {
248 SetUserCount(value);
249 return *this;
250 }
252
254
257 inline bool GetIsVerified() const { return m_isVerified; }
258 inline bool IsVerifiedHasBeenSet() const { return m_isVerifiedHasBeenSet; }
259 inline void SetIsVerified(bool value) {
260 m_isVerifiedHasBeenSet = true;
261 m_isVerified = value;
262 }
263 inline LibraryItemMember& WithIsVerified(bool value) {
264 SetIsVerified(value);
265 return *this;
266 }
268 private:
269 Aws::String m_libraryItemId;
270
271 Aws::String m_appId;
272
273 int m_appVersion{0};
274
275 Aws::Vector<Category> m_categories;
276
277 Aws::String m_status;
278
279 Aws::Utils::DateTime m_createdAt{};
280
281 Aws::String m_createdBy;
282
283 Aws::Utils::DateTime m_updatedAt{};
284
285 Aws::String m_updatedBy;
286
287 int m_ratingCount{0};
288
289 bool m_isRatedByUser{false};
290
291 int m_userCount{0};
292
293 bool m_isVerified{false};
294 bool m_libraryItemIdHasBeenSet = false;
295 bool m_appIdHasBeenSet = false;
296 bool m_appVersionHasBeenSet = false;
297 bool m_categoriesHasBeenSet = false;
298 bool m_statusHasBeenSet = false;
299 bool m_createdAtHasBeenSet = false;
300 bool m_createdByHasBeenSet = false;
301 bool m_updatedAtHasBeenSet = false;
302 bool m_updatedByHasBeenSet = false;
303 bool m_ratingCountHasBeenSet = false;
304 bool m_isRatedByUserHasBeenSet = false;
305 bool m_userCountHasBeenSet = false;
306 bool m_isVerifiedHasBeenSet = false;
307};
308
309} // namespace Model
310} // namespace QApps
311} // namespace Aws
LibraryItemMember & WithUpdatedBy(UpdatedByT &&value)
LibraryItemMember & WithCreatedBy(CreatedByT &&value)
AWS_QAPPS_API LibraryItemMember()=default
void SetLibraryItemId(LibraryItemIdT &&value)
AWS_QAPPS_API LibraryItemMember(Aws::Utils::Json::JsonView jsonValue)
LibraryItemMember & WithCategories(CategoriesT &&value)
LibraryItemMember & WithUserCount(int value)
LibraryItemMember & WithIsVerified(bool value)
LibraryItemMember & WithAppVersion(int value)
const Aws::String & GetAppId() const
LibraryItemMember & WithAppId(AppIdT &&value)
const Aws::String & GetCreatedBy() const
LibraryItemMember & WithUpdatedAt(UpdatedAtT &&value)
AWS_QAPPS_API LibraryItemMember & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetStatus() const
LibraryItemMember & WithStatus(StatusT &&value)
void SetCategories(CategoriesT &&value)
LibraryItemMember & WithRatingCount(int value)
AWS_QAPPS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetLibraryItemId() const
const Aws::String & GetUpdatedBy() const
LibraryItemMember & WithIsRatedByUser(bool value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Vector< Category > & GetCategories() const
LibraryItemMember & WithCreatedAt(CreatedAtT &&value)
LibraryItemMember & WithLibraryItemId(LibraryItemIdT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
LibraryItemMember & AddCategories(CategoriesT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue