AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LibraryItemMember.h
1
6#pragma once
7#include <aws/qapps/QApps_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/qapps/model/Category.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace QApps
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_QAPPS_API LibraryItemMember();
42 AWS_QAPPS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetLibraryItemId() const{ return m_libraryItemId; }
50 inline bool LibraryItemIdHasBeenSet() const { return m_libraryItemIdHasBeenSet; }
51 inline void SetLibraryItemId(const Aws::String& value) { m_libraryItemIdHasBeenSet = true; m_libraryItemId = value; }
52 inline void SetLibraryItemId(Aws::String&& value) { m_libraryItemIdHasBeenSet = true; m_libraryItemId = std::move(value); }
53 inline void SetLibraryItemId(const char* value) { m_libraryItemIdHasBeenSet = true; m_libraryItemId.assign(value); }
54 inline LibraryItemMember& WithLibraryItemId(const Aws::String& value) { SetLibraryItemId(value); return *this;}
55 inline LibraryItemMember& WithLibraryItemId(Aws::String&& value) { SetLibraryItemId(std::move(value)); return *this;}
56 inline LibraryItemMember& WithLibraryItemId(const char* value) { SetLibraryItemId(value); return *this;}
58
60
63 inline const Aws::String& GetAppId() const{ return m_appId; }
64 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
65 inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
66 inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
67 inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
68 inline LibraryItemMember& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
69 inline LibraryItemMember& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
70 inline LibraryItemMember& WithAppId(const char* value) { SetAppId(value); return *this;}
72
74
77 inline int GetAppVersion() const{ return m_appVersion; }
78 inline bool AppVersionHasBeenSet() const { return m_appVersionHasBeenSet; }
79 inline void SetAppVersion(int value) { m_appVersionHasBeenSet = true; m_appVersion = value; }
80 inline LibraryItemMember& WithAppVersion(int value) { SetAppVersion(value); return *this;}
82
84
87 inline const Aws::Vector<Category>& GetCategories() const{ return m_categories; }
88 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
89 inline void SetCategories(const Aws::Vector<Category>& value) { m_categoriesHasBeenSet = true; m_categories = value; }
90 inline void SetCategories(Aws::Vector<Category>&& value) { m_categoriesHasBeenSet = true; m_categories = std::move(value); }
91 inline LibraryItemMember& WithCategories(const Aws::Vector<Category>& value) { SetCategories(value); return *this;}
92 inline LibraryItemMember& WithCategories(Aws::Vector<Category>&& value) { SetCategories(std::move(value)); return *this;}
93 inline LibraryItemMember& AddCategories(const Category& value) { m_categoriesHasBeenSet = true; m_categories.push_back(value); return *this; }
94 inline LibraryItemMember& AddCategories(Category&& value) { m_categoriesHasBeenSet = true; m_categories.push_back(std::move(value)); return *this; }
96
98
101 inline const Aws::String& GetStatus() const{ return m_status; }
102 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
103 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
104 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
105 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
106 inline LibraryItemMember& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
107 inline LibraryItemMember& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
108 inline LibraryItemMember& WithStatus(const char* value) { SetStatus(value); return *this;}
110
112
115 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
116 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
117 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
118 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
119 inline LibraryItemMember& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
120 inline LibraryItemMember& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
122
124
127 inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
128 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
129 inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; }
130 inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); }
131 inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); }
132 inline LibraryItemMember& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
133 inline LibraryItemMember& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
134 inline LibraryItemMember& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
136
138
141 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
142 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
143 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
144 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
145 inline LibraryItemMember& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
146 inline LibraryItemMember& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
148
150
153 inline const Aws::String& GetUpdatedBy() const{ return m_updatedBy; }
154 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
155 inline void SetUpdatedBy(const Aws::String& value) { m_updatedByHasBeenSet = true; m_updatedBy = value; }
156 inline void SetUpdatedBy(Aws::String&& value) { m_updatedByHasBeenSet = true; m_updatedBy = std::move(value); }
157 inline void SetUpdatedBy(const char* value) { m_updatedByHasBeenSet = true; m_updatedBy.assign(value); }
158 inline LibraryItemMember& WithUpdatedBy(const Aws::String& value) { SetUpdatedBy(value); return *this;}
159 inline LibraryItemMember& WithUpdatedBy(Aws::String&& value) { SetUpdatedBy(std::move(value)); return *this;}
160 inline LibraryItemMember& WithUpdatedBy(const char* value) { SetUpdatedBy(value); return *this;}
162
164
167 inline int GetRatingCount() const{ return m_ratingCount; }
168 inline bool RatingCountHasBeenSet() const { return m_ratingCountHasBeenSet; }
169 inline void SetRatingCount(int value) { m_ratingCountHasBeenSet = true; m_ratingCount = value; }
170 inline LibraryItemMember& WithRatingCount(int value) { SetRatingCount(value); return *this;}
172
174
177 inline bool GetIsRatedByUser() const{ return m_isRatedByUser; }
178 inline bool IsRatedByUserHasBeenSet() const { return m_isRatedByUserHasBeenSet; }
179 inline void SetIsRatedByUser(bool value) { m_isRatedByUserHasBeenSet = true; m_isRatedByUser = value; }
180 inline LibraryItemMember& WithIsRatedByUser(bool value) { SetIsRatedByUser(value); return *this;}
182
184
187 inline int GetUserCount() const{ return m_userCount; }
188 inline bool UserCountHasBeenSet() const { return m_userCountHasBeenSet; }
189 inline void SetUserCount(int value) { m_userCountHasBeenSet = true; m_userCount = value; }
190 inline LibraryItemMember& WithUserCount(int value) { SetUserCount(value); return *this;}
192
194
197 inline bool GetIsVerified() const{ return m_isVerified; }
198 inline bool IsVerifiedHasBeenSet() const { return m_isVerifiedHasBeenSet; }
199 inline void SetIsVerified(bool value) { m_isVerifiedHasBeenSet = true; m_isVerified = value; }
200 inline LibraryItemMember& WithIsVerified(bool value) { SetIsVerified(value); return *this;}
202 private:
203
204 Aws::String m_libraryItemId;
205 bool m_libraryItemIdHasBeenSet = false;
206
207 Aws::String m_appId;
208 bool m_appIdHasBeenSet = false;
209
210 int m_appVersion;
211 bool m_appVersionHasBeenSet = false;
212
213 Aws::Vector<Category> m_categories;
214 bool m_categoriesHasBeenSet = false;
215
216 Aws::String m_status;
217 bool m_statusHasBeenSet = false;
218
219 Aws::Utils::DateTime m_createdAt;
220 bool m_createdAtHasBeenSet = false;
221
222 Aws::String m_createdBy;
223 bool m_createdByHasBeenSet = false;
224
225 Aws::Utils::DateTime m_updatedAt;
226 bool m_updatedAtHasBeenSet = false;
227
228 Aws::String m_updatedBy;
229 bool m_updatedByHasBeenSet = false;
230
231 int m_ratingCount;
232 bool m_ratingCountHasBeenSet = false;
233
234 bool m_isRatedByUser;
235 bool m_isRatedByUserHasBeenSet = false;
236
237 int m_userCount;
238 bool m_userCountHasBeenSet = false;
239
240 bool m_isVerified;
241 bool m_isVerifiedHasBeenSet = false;
242 };
243
244} // namespace Model
245} // namespace QApps
246} // namespace Aws
void SetCategories(const Aws::Vector< Category > &value)
void SetLibraryItemId(const Aws::String &value)
LibraryItemMember & WithAppId(Aws::String &&value)
AWS_QAPPS_API LibraryItemMember(Aws::Utils::Json::JsonView jsonValue)
LibraryItemMember & WithCreatedBy(const char *value)
LibraryItemMember & WithUserCount(int value)
LibraryItemMember & AddCategories(const Category &value)
LibraryItemMember & WithLibraryItemId(Aws::String &&value)
void SetCategories(Aws::Vector< Category > &&value)
LibraryItemMember & WithIsVerified(bool value)
LibraryItemMember & WithAppVersion(int value)
void SetLibraryItemId(const char *value)
const Aws::String & GetAppId() const
LibraryItemMember & AddCategories(Category &&value)
LibraryItemMember & WithUpdatedAt(const Aws::Utils::DateTime &value)
LibraryItemMember & WithUpdatedBy(const Aws::String &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
const Aws::String & GetCreatedBy() const
LibraryItemMember & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
void SetCreatedBy(Aws::String &&value)
AWS_QAPPS_API LibraryItemMember & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetStatus() const
void SetLibraryItemId(Aws::String &&value)
LibraryItemMember & WithUpdatedBy(Aws::String &&value)
LibraryItemMember & WithCreatedAt(const Aws::Utils::DateTime &value)
LibraryItemMember & WithRatingCount(int value)
LibraryItemMember & WithUpdatedBy(const char *value)
void SetUpdatedBy(Aws::String &&value)
LibraryItemMember & WithLibraryItemId(const char *value)
AWS_QAPPS_API Aws::Utils::Json::JsonValue Jsonize() const
LibraryItemMember & WithAppId(const Aws::String &value)
LibraryItemMember & WithStatus(const Aws::String &value)
LibraryItemMember & WithCreatedBy(Aws::String &&value)
LibraryItemMember & WithCreatedBy(const Aws::String &value)
LibraryItemMember & WithStatus(const char *value)
void SetStatus(const Aws::String &value)
LibraryItemMember & WithStatus(Aws::String &&value)
LibraryItemMember & WithAppId(const char *value)
void SetCreatedBy(const Aws::String &value)
LibraryItemMember & WithCategories(const Aws::Vector< Category > &value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
const Aws::String & GetLibraryItemId() const
LibraryItemMember & WithCategories(Aws::Vector< Category > &&value)
const Aws::String & GetUpdatedBy() const
LibraryItemMember & WithIsRatedByUser(bool value)
void SetUpdatedBy(const Aws::String &value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Vector< Category > & GetCategories() const
const Aws::Utils::DateTime & GetUpdatedAt() const
LibraryItemMember & WithUpdatedAt(Aws::Utils::DateTime &&value)
void SetAppId(const Aws::String &value)
LibraryItemMember & WithLibraryItemId(const Aws::String &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue