AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
UpdateLibraryItemResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/qapps/QApps_EXPORTS.h>
12#include <aws/qapps/model/Category.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace QApps {
26namespace Model {
28 public:
29 AWS_QAPPS_API UpdateLibraryItemResult() = default;
32
34
37 inline const Aws::String& GetLibraryItemId() const { return m_libraryItemId; }
38 template <typename LibraryItemIdT = Aws::String>
40 m_libraryItemIdHasBeenSet = true;
41 m_libraryItemId = std::forward<LibraryItemIdT>(value);
42 }
43 template <typename LibraryItemIdT = Aws::String>
45 SetLibraryItemId(std::forward<LibraryItemIdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetAppId() const { return m_appId; }
55 template <typename AppIdT = Aws::String>
56 void SetAppId(AppIdT&& value) {
57 m_appIdHasBeenSet = true;
58 m_appId = std::forward<AppIdT>(value);
59 }
60 template <typename AppIdT = Aws::String>
62 SetAppId(std::forward<AppIdT>(value));
63 return *this;
64 }
66
68
71 inline int GetAppVersion() const { return m_appVersion; }
72 inline void SetAppVersion(int value) {
73 m_appVersionHasBeenSet = true;
74 m_appVersion = value;
75 }
77 SetAppVersion(value);
78 return *this;
79 }
81
83
86 inline const Aws::Vector<Category>& GetCategories() const { return m_categories; }
87 template <typename CategoriesT = Aws::Vector<Category>>
88 void SetCategories(CategoriesT&& value) {
89 m_categoriesHasBeenSet = true;
90 m_categories = std::forward<CategoriesT>(value);
91 }
92 template <typename CategoriesT = Aws::Vector<Category>>
94 SetCategories(std::forward<CategoriesT>(value));
95 return *this;
96 }
97 template <typename CategoriesT = Category>
99 m_categoriesHasBeenSet = true;
100 m_categories.emplace_back(std::forward<CategoriesT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetStatus() const { return m_status; }
110 template <typename StatusT = Aws::String>
111 void SetStatus(StatusT&& value) {
112 m_statusHasBeenSet = true;
113 m_status = std::forward<StatusT>(value);
114 }
115 template <typename StatusT = Aws::String>
117 SetStatus(std::forward<StatusT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
127 template <typename CreatedAtT = Aws::Utils::DateTime>
128 void SetCreatedAt(CreatedAtT&& value) {
129 m_createdAtHasBeenSet = true;
130 m_createdAt = std::forward<CreatedAtT>(value);
131 }
132 template <typename CreatedAtT = Aws::Utils::DateTime>
134 SetCreatedAt(std::forward<CreatedAtT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
144 template <typename CreatedByT = Aws::String>
145 void SetCreatedBy(CreatedByT&& value) {
146 m_createdByHasBeenSet = true;
147 m_createdBy = std::forward<CreatedByT>(value);
148 }
149 template <typename CreatedByT = Aws::String>
151 SetCreatedBy(std::forward<CreatedByT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
161 template <typename UpdatedAtT = Aws::Utils::DateTime>
162 void SetUpdatedAt(UpdatedAtT&& value) {
163 m_updatedAtHasBeenSet = true;
164 m_updatedAt = std::forward<UpdatedAtT>(value);
165 }
166 template <typename UpdatedAtT = Aws::Utils::DateTime>
168 SetUpdatedAt(std::forward<UpdatedAtT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
178 template <typename UpdatedByT = Aws::String>
179 void SetUpdatedBy(UpdatedByT&& value) {
180 m_updatedByHasBeenSet = true;
181 m_updatedBy = std::forward<UpdatedByT>(value);
182 }
183 template <typename UpdatedByT = Aws::String>
185 SetUpdatedBy(std::forward<UpdatedByT>(value));
186 return *this;
187 }
189
191
194 inline int GetRatingCount() const { return m_ratingCount; }
195 inline void SetRatingCount(int value) {
196 m_ratingCountHasBeenSet = true;
197 m_ratingCount = value;
198 }
200 SetRatingCount(value);
201 return *this;
202 }
204
206
209 inline bool GetIsRatedByUser() const { return m_isRatedByUser; }
210 inline void SetIsRatedByUser(bool value) {
211 m_isRatedByUserHasBeenSet = true;
212 m_isRatedByUser = value;
213 }
215 SetIsRatedByUser(value);
216 return *this;
217 }
219
221
224 inline int GetUserCount() const { return m_userCount; }
225 inline void SetUserCount(int value) {
226 m_userCountHasBeenSet = true;
227 m_userCount = value;
228 }
230 SetUserCount(value);
231 return *this;
232 }
234
236
239 inline bool GetIsVerified() const { return m_isVerified; }
240 inline void SetIsVerified(bool value) {
241 m_isVerifiedHasBeenSet = true;
242 m_isVerified = value;
243 }
245 SetIsVerified(value);
246 return *this;
247 }
249
251
252 inline const Aws::String& GetRequestId() const { return m_requestId; }
253 template <typename RequestIdT = Aws::String>
254 void SetRequestId(RequestIdT&& value) {
255 m_requestIdHasBeenSet = true;
256 m_requestId = std::forward<RequestIdT>(value);
257 }
258 template <typename RequestIdT = Aws::String>
260 SetRequestId(std::forward<RequestIdT>(value));
261 return *this;
262 }
264 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
265
266 private:
267 Aws::String m_libraryItemId;
268
269 Aws::String m_appId;
270
271 int m_appVersion{0};
272
273 Aws::Vector<Category> m_categories;
274
275 Aws::String m_status;
276
277 Aws::Utils::DateTime m_createdAt{};
278
279 Aws::String m_createdBy;
280
281 Aws::Utils::DateTime m_updatedAt{};
282
283 Aws::String m_updatedBy;
284
285 int m_ratingCount{0};
286
287 bool m_isRatedByUser{false};
288
289 int m_userCount{0};
290
291 bool m_isVerified{false};
292
293 Aws::String m_requestId;
294 Aws::Http::HttpResponseCode m_HttpResponseCode;
295 bool m_libraryItemIdHasBeenSet = false;
296 bool m_appIdHasBeenSet = false;
297 bool m_appVersionHasBeenSet = false;
298 bool m_categoriesHasBeenSet = false;
299 bool m_statusHasBeenSet = false;
300 bool m_createdAtHasBeenSet = false;
301 bool m_createdByHasBeenSet = false;
302 bool m_updatedAtHasBeenSet = false;
303 bool m_updatedByHasBeenSet = false;
304 bool m_ratingCountHasBeenSet = false;
305 bool m_isRatedByUserHasBeenSet = false;
306 bool m_userCountHasBeenSet = false;
307 bool m_isVerifiedHasBeenSet = false;
308 bool m_requestIdHasBeenSet = false;
309};
310
311} // namespace Model
312} // namespace QApps
313} // namespace Aws
UpdateLibraryItemResult & WithCreatedAt(CreatedAtT &&value)
UpdateLibraryItemResult & WithAppId(AppIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Utils::DateTime & GetCreatedAt() const
UpdateLibraryItemResult & WithStatus(StatusT &&value)
UpdateLibraryItemResult & WithUpdatedBy(UpdatedByT &&value)
UpdateLibraryItemResult & AddCategories(CategoriesT &&value)
AWS_QAPPS_API UpdateLibraryItemResult()=default
UpdateLibraryItemResult & WithLibraryItemId(LibraryItemIdT &&value)
UpdateLibraryItemResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< Category > & GetCategories() const
const Aws::Utils::DateTime & GetUpdatedAt() const
UpdateLibraryItemResult & WithUpdatedAt(UpdatedAtT &&value)
UpdateLibraryItemResult & WithUserCount(int value)
AWS_QAPPS_API UpdateLibraryItemResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_QAPPS_API UpdateLibraryItemResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateLibraryItemResult & WithAppVersion(int value)
UpdateLibraryItemResult & WithIsVerified(bool value)
UpdateLibraryItemResult & WithIsRatedByUser(bool value)
UpdateLibraryItemResult & WithCategories(CategoriesT &&value)
UpdateLibraryItemResult & WithCreatedBy(CreatedByT &&value)
UpdateLibraryItemResult & WithRatingCount(int 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