AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GetIndexResult.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/qbusiness/QBusiness_EXPORTS.h>
12#include <aws/qbusiness/model/DocumentAttributeConfiguration.h>
13#include <aws/qbusiness/model/ErrorDetail.h>
14#include <aws/qbusiness/model/IndexCapacityConfiguration.h>
15#include <aws/qbusiness/model/IndexStatistics.h>
16#include <aws/qbusiness/model/IndexStatus.h>
17#include <aws/qbusiness/model/IndexType.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace QBusiness {
31namespace Model {
33 public:
34 AWS_QBUSINESS_API GetIndexResult() = default;
37
39
43 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
44 template <typename ApplicationIdT = Aws::String>
46 m_applicationIdHasBeenSet = true;
47 m_applicationId = std::forward<ApplicationIdT>(value);
48 }
49 template <typename ApplicationIdT = Aws::String>
51 SetApplicationId(std::forward<ApplicationIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetIndexId() const { return m_indexId; }
61 template <typename IndexIdT = Aws::String>
62 void SetIndexId(IndexIdT&& value) {
63 m_indexIdHasBeenSet = true;
64 m_indexId = std::forward<IndexIdT>(value);
65 }
66 template <typename IndexIdT = Aws::String>
68 SetIndexId(std::forward<IndexIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDisplayName() const { return m_displayName; }
78 template <typename DisplayNameT = Aws::String>
80 m_displayNameHasBeenSet = true;
81 m_displayName = std::forward<DisplayNameT>(value);
82 }
83 template <typename DisplayNameT = Aws::String>
85 SetDisplayName(std::forward<DisplayNameT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetIndexArn() const { return m_indexArn; }
95 template <typename IndexArnT = Aws::String>
96 void SetIndexArn(IndexArnT&& value) {
97 m_indexArnHasBeenSet = true;
98 m_indexArn = std::forward<IndexArnT>(value);
99 }
100 template <typename IndexArnT = Aws::String>
102 SetIndexArn(std::forward<IndexArnT>(value));
103 return *this;
104 }
106
108
114 inline IndexStatus GetStatus() const { return m_status; }
115 inline void SetStatus(IndexStatus value) {
116 m_statusHasBeenSet = true;
117 m_status = value;
118 }
120 SetStatus(value);
121 return *this;
122 }
124
126
129 inline IndexType GetType() const { return m_type; }
130 inline void SetType(IndexType value) {
131 m_typeHasBeenSet = true;
132 m_type = value;
133 }
135 SetType(value);
136 return *this;
137 }
139
141
144 inline const Aws::String& GetDescription() const { return m_description; }
145 template <typename DescriptionT = Aws::String>
147 m_descriptionHasBeenSet = true;
148 m_description = std::forward<DescriptionT>(value);
149 }
150 template <typename DescriptionT = Aws::String>
152 SetDescription(std::forward<DescriptionT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
162 template <typename CreatedAtT = Aws::Utils::DateTime>
163 void SetCreatedAt(CreatedAtT&& value) {
164 m_createdAtHasBeenSet = true;
165 m_createdAt = std::forward<CreatedAtT>(value);
166 }
167 template <typename CreatedAtT = Aws::Utils::DateTime>
169 SetCreatedAt(std::forward<CreatedAtT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
179 template <typename UpdatedAtT = Aws::Utils::DateTime>
180 void SetUpdatedAt(UpdatedAtT&& value) {
181 m_updatedAtHasBeenSet = true;
182 m_updatedAt = std::forward<UpdatedAtT>(value);
183 }
184 template <typename UpdatedAtT = Aws::Utils::DateTime>
186 SetUpdatedAt(std::forward<UpdatedAtT>(value));
187 return *this;
188 }
190
192
195 inline const IndexCapacityConfiguration& GetCapacityConfiguration() const { return m_capacityConfiguration; }
196 template <typename CapacityConfigurationT = IndexCapacityConfiguration>
198 m_capacityConfigurationHasBeenSet = true;
199 m_capacityConfiguration = std::forward<CapacityConfigurationT>(value);
200 }
201 template <typename CapacityConfigurationT = IndexCapacityConfiguration>
203 SetCapacityConfiguration(std::forward<CapacityConfigurationT>(value));
204 return *this;
205 }
207
209
217 return m_documentAttributeConfigurations;
218 }
219 template <typename DocumentAttributeConfigurationsT = Aws::Vector<DocumentAttributeConfiguration>>
221 m_documentAttributeConfigurationsHasBeenSet = true;
222 m_documentAttributeConfigurations = std::forward<DocumentAttributeConfigurationsT>(value);
223 }
224 template <typename DocumentAttributeConfigurationsT = Aws::Vector<DocumentAttributeConfiguration>>
226 SetDocumentAttributeConfigurations(std::forward<DocumentAttributeConfigurationsT>(value));
227 return *this;
228 }
229 template <typename DocumentAttributeConfigurationsT = DocumentAttributeConfiguration>
231 m_documentAttributeConfigurationsHasBeenSet = true;
232 m_documentAttributeConfigurations.emplace_back(std::forward<DocumentAttributeConfigurationsT>(value));
233 return *this;
234 }
236
238
242 inline const ErrorDetail& GetError() const { return m_error; }
243 template <typename ErrorT = ErrorDetail>
244 void SetError(ErrorT&& value) {
245 m_errorHasBeenSet = true;
246 m_error = std::forward<ErrorT>(value);
247 }
248 template <typename ErrorT = ErrorDetail>
250 SetError(std::forward<ErrorT>(value));
251 return *this;
252 }
254
256
259 inline const IndexStatistics& GetIndexStatistics() const { return m_indexStatistics; }
260 template <typename IndexStatisticsT = IndexStatistics>
262 m_indexStatisticsHasBeenSet = true;
263 m_indexStatistics = std::forward<IndexStatisticsT>(value);
264 }
265 template <typename IndexStatisticsT = IndexStatistics>
267 SetIndexStatistics(std::forward<IndexStatisticsT>(value));
268 return *this;
269 }
271
273
274 inline const Aws::String& GetRequestId() const { return m_requestId; }
275 template <typename RequestIdT = Aws::String>
276 void SetRequestId(RequestIdT&& value) {
277 m_requestIdHasBeenSet = true;
278 m_requestId = std::forward<RequestIdT>(value);
279 }
280 template <typename RequestIdT = Aws::String>
282 SetRequestId(std::forward<RequestIdT>(value));
283 return *this;
284 }
286 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
287
288 private:
289 Aws::String m_applicationId;
290
291 Aws::String m_indexId;
292
293 Aws::String m_displayName;
294
295 Aws::String m_indexArn;
296
298
300
301 Aws::String m_description;
302
303 Aws::Utils::DateTime m_createdAt{};
304
305 Aws::Utils::DateTime m_updatedAt{};
306
307 IndexCapacityConfiguration m_capacityConfiguration;
308
309 Aws::Vector<DocumentAttributeConfiguration> m_documentAttributeConfigurations;
310
311 ErrorDetail m_error;
312
313 IndexStatistics m_indexStatistics;
314
315 Aws::String m_requestId;
316 Aws::Http::HttpResponseCode m_HttpResponseCode;
317 bool m_applicationIdHasBeenSet = false;
318 bool m_indexIdHasBeenSet = false;
319 bool m_displayNameHasBeenSet = false;
320 bool m_indexArnHasBeenSet = false;
321 bool m_statusHasBeenSet = false;
322 bool m_typeHasBeenSet = false;
323 bool m_descriptionHasBeenSet = false;
324 bool m_createdAtHasBeenSet = false;
325 bool m_updatedAtHasBeenSet = false;
326 bool m_capacityConfigurationHasBeenSet = false;
327 bool m_documentAttributeConfigurationsHasBeenSet = false;
328 bool m_errorHasBeenSet = false;
329 bool m_indexStatisticsHasBeenSet = false;
330 bool m_requestIdHasBeenSet = false;
331};
332
333} // namespace Model
334} // namespace QBusiness
335} // namespace Aws
GetIndexResult & WithIndexId(IndexIdT &&value)
GetIndexResult & WithDisplayName(DisplayNameT &&value)
void SetDocumentAttributeConfigurations(DocumentAttributeConfigurationsT &&value)
AWS_QBUSINESS_API GetIndexResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetIndexResult & AddDocumentAttributeConfigurations(DocumentAttributeConfigurationsT &&value)
AWS_QBUSINESS_API GetIndexResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_QBUSINESS_API GetIndexResult()=default
const Aws::Vector< DocumentAttributeConfiguration > & GetDocumentAttributeConfigurations() const
GetIndexResult & WithUpdatedAt(UpdatedAtT &&value)
GetIndexResult & WithCreatedAt(CreatedAtT &&value)
void SetRequestId(RequestIdT &&value)
void SetIndexStatistics(IndexStatisticsT &&value)
GetIndexResult & WithDocumentAttributeConfigurations(DocumentAttributeConfigurationsT &&value)
GetIndexResult & WithCapacityConfiguration(CapacityConfigurationT &&value)
const IndexStatistics & GetIndexStatistics() const
const Aws::String & GetDescription() const
void SetCapacityConfiguration(CapacityConfigurationT &&value)
GetIndexResult & WithRequestId(RequestIdT &&value)
GetIndexResult & WithStatus(IndexStatus value)
const Aws::String & GetDisplayName() const
GetIndexResult & WithType(IndexType value)
GetIndexResult & WithError(ErrorT &&value)
GetIndexResult & WithDescription(DescriptionT &&value)
void SetDisplayName(DisplayNameT &&value)
void SetDescription(DescriptionT &&value)
void SetCreatedAt(CreatedAtT &&value)
GetIndexResult & WithIndexArn(IndexArnT &&value)
const IndexCapacityConfiguration & GetCapacityConfiguration() const
void SetApplicationId(ApplicationIdT &&value)
const Aws::String & GetIndexArn() const
GetIndexResult & WithApplicationId(ApplicationIdT &&value)
GetIndexResult & WithIndexStatistics(IndexStatisticsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetApplicationId() const
const Aws::String & GetIndexId() const
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetRequestId() const
void SetUpdatedAt(UpdatedAtT &&value)
void SetIndexArn(IndexArnT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
const ErrorDetail & GetError() const
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