AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetLibraryItemResult.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{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace QApps
27{
28namespace Model
29{
31 {
32 public:
33 AWS_QAPPS_API GetLibraryItemResult() = default;
36
37
39
42 inline const Aws::String& GetLibraryItemId() const { return m_libraryItemId; }
43 template<typename LibraryItemIdT = Aws::String>
44 void SetLibraryItemId(LibraryItemIdT&& value) { m_libraryItemIdHasBeenSet = true; m_libraryItemId = std::forward<LibraryItemIdT>(value); }
45 template<typename LibraryItemIdT = Aws::String>
46 GetLibraryItemResult& WithLibraryItemId(LibraryItemIdT&& value) { SetLibraryItemId(std::forward<LibraryItemIdT>(value)); return *this;}
48
50
53 inline const Aws::String& GetAppId() const { return m_appId; }
54 template<typename AppIdT = Aws::String>
55 void SetAppId(AppIdT&& value) { m_appIdHasBeenSet = true; m_appId = std::forward<AppIdT>(value); }
56 template<typename AppIdT = Aws::String>
57 GetLibraryItemResult& WithAppId(AppIdT&& value) { SetAppId(std::forward<AppIdT>(value)); return *this;}
59
61
64 inline int GetAppVersion() const { return m_appVersion; }
65 inline void SetAppVersion(int value) { m_appVersionHasBeenSet = true; m_appVersion = value; }
66 inline GetLibraryItemResult& WithAppVersion(int value) { SetAppVersion(value); return *this;}
68
70
73 inline const Aws::Vector<Category>& GetCategories() const { return m_categories; }
74 template<typename CategoriesT = Aws::Vector<Category>>
75 void SetCategories(CategoriesT&& value) { m_categoriesHasBeenSet = true; m_categories = std::forward<CategoriesT>(value); }
76 template<typename CategoriesT = Aws::Vector<Category>>
77 GetLibraryItemResult& WithCategories(CategoriesT&& value) { SetCategories(std::forward<CategoriesT>(value)); return *this;}
78 template<typename CategoriesT = Category>
79 GetLibraryItemResult& AddCategories(CategoriesT&& value) { m_categoriesHasBeenSet = true; m_categories.emplace_back(std::forward<CategoriesT>(value)); return *this; }
81
83
86 inline const Aws::String& GetStatus() const { return m_status; }
87 template<typename StatusT = Aws::String>
88 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
89 template<typename StatusT = Aws::String>
90 GetLibraryItemResult& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
92
94
97 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
98 template<typename CreatedAtT = Aws::Utils::DateTime>
99 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
100 template<typename CreatedAtT = Aws::Utils::DateTime>
101 GetLibraryItemResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
103
105
108 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
109 template<typename CreatedByT = Aws::String>
110 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
111 template<typename CreatedByT = Aws::String>
112 GetLibraryItemResult& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
114
116
119 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
120 template<typename UpdatedAtT = Aws::Utils::DateTime>
121 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
122 template<typename UpdatedAtT = Aws::Utils::DateTime>
123 GetLibraryItemResult& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
125
127
130 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
131 template<typename UpdatedByT = Aws::String>
132 void SetUpdatedBy(UpdatedByT&& value) { m_updatedByHasBeenSet = true; m_updatedBy = std::forward<UpdatedByT>(value); }
133 template<typename UpdatedByT = Aws::String>
134 GetLibraryItemResult& WithUpdatedBy(UpdatedByT&& value) { SetUpdatedBy(std::forward<UpdatedByT>(value)); return *this;}
136
138
141 inline int GetRatingCount() const { return m_ratingCount; }
142 inline void SetRatingCount(int value) { m_ratingCountHasBeenSet = true; m_ratingCount = value; }
143 inline GetLibraryItemResult& WithRatingCount(int value) { SetRatingCount(value); return *this;}
145
147
150 inline bool GetIsRatedByUser() const { return m_isRatedByUser; }
151 inline void SetIsRatedByUser(bool value) { m_isRatedByUserHasBeenSet = true; m_isRatedByUser = value; }
152 inline GetLibraryItemResult& WithIsRatedByUser(bool value) { SetIsRatedByUser(value); return *this;}
154
156
159 inline int GetUserCount() const { return m_userCount; }
160 inline void SetUserCount(int value) { m_userCountHasBeenSet = true; m_userCount = value; }
161 inline GetLibraryItemResult& WithUserCount(int value) { SetUserCount(value); return *this;}
163
165
168 inline bool GetIsVerified() const { return m_isVerified; }
169 inline void SetIsVerified(bool value) { m_isVerifiedHasBeenSet = true; m_isVerified = value; }
170 inline GetLibraryItemResult& WithIsVerified(bool value) { SetIsVerified(value); return *this;}
172
174
175 inline const Aws::String& GetRequestId() const { return m_requestId; }
176 template<typename RequestIdT = Aws::String>
177 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
178 template<typename RequestIdT = Aws::String>
179 GetLibraryItemResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
181 private:
182
183 Aws::String m_libraryItemId;
184 bool m_libraryItemIdHasBeenSet = false;
185
186 Aws::String m_appId;
187 bool m_appIdHasBeenSet = false;
188
189 int m_appVersion{0};
190 bool m_appVersionHasBeenSet = false;
191
192 Aws::Vector<Category> m_categories;
193 bool m_categoriesHasBeenSet = false;
194
195 Aws::String m_status;
196 bool m_statusHasBeenSet = false;
197
198 Aws::Utils::DateTime m_createdAt{};
199 bool m_createdAtHasBeenSet = false;
200
201 Aws::String m_createdBy;
202 bool m_createdByHasBeenSet = false;
203
204 Aws::Utils::DateTime m_updatedAt{};
205 bool m_updatedAtHasBeenSet = false;
206
207 Aws::String m_updatedBy;
208 bool m_updatedByHasBeenSet = false;
209
210 int m_ratingCount{0};
211 bool m_ratingCountHasBeenSet = false;
212
213 bool m_isRatedByUser{false};
214 bool m_isRatedByUserHasBeenSet = false;
215
216 int m_userCount{0};
217 bool m_userCountHasBeenSet = false;
218
219 bool m_isVerified{false};
220 bool m_isVerifiedHasBeenSet = false;
221
222 Aws::String m_requestId;
223 bool m_requestIdHasBeenSet = false;
224 };
225
226} // namespace Model
227} // namespace QApps
228} // namespace Aws
GetLibraryItemResult & WithUpdatedBy(UpdatedByT &&value)
GetLibraryItemResult & WithCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Vector< Category > & GetCategories() const
AWS_QAPPS_API GetLibraryItemResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetLibraryItemResult & WithUpdatedAt(UpdatedAtT &&value)
GetLibraryItemResult & WithRatingCount(int value)
GetLibraryItemResult & WithRequestId(RequestIdT &&value)
void SetLibraryItemId(LibraryItemIdT &&value)
GetLibraryItemResult & WithAppId(AppIdT &&value)
const Aws::String & GetLibraryItemId() const
AWS_QAPPS_API GetLibraryItemResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetLibraryItemResult & WithIsRatedByUser(bool value)
GetLibraryItemResult & WithStatus(StatusT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
GetLibraryItemResult & AddCategories(CategoriesT &&value)
GetLibraryItemResult & WithCreatedBy(CreatedByT &&value)
GetLibraryItemResult & WithIsVerified(bool value)
GetLibraryItemResult & WithUserCount(int value)
AWS_QAPPS_API GetLibraryItemResult()=default
GetLibraryItemResult & WithAppVersion(int value)
GetLibraryItemResult & WithLibraryItemId(LibraryItemIdT &&value)
GetLibraryItemResult & WithCategories(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