AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
GetIndexResult.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/qbusiness/QBusiness_EXPORTS.h>
11#include <aws/qbusiness/model/DocumentAttributeConfiguration.h>
12#include <aws/qbusiness/model/ErrorDetail.h>
13#include <aws/qbusiness/model/IndexCapacityConfiguration.h>
14#include <aws/qbusiness/model/IndexStatistics.h>
15#include <aws/qbusiness/model/IndexStatus.h>
16#include <aws/qbusiness/model/IndexType.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace QBusiness {
30namespace Model {
32 public:
33 AWS_QBUSINESS_API GetIndexResult() = default;
36
38
42 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
43 template <typename ApplicationIdT = Aws::String>
45 m_applicationIdHasBeenSet = true;
46 m_applicationId = std::forward<ApplicationIdT>(value);
47 }
48 template <typename ApplicationIdT = Aws::String>
50 SetApplicationId(std::forward<ApplicationIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetIndexId() const { return m_indexId; }
60 template <typename IndexIdT = Aws::String>
61 void SetIndexId(IndexIdT&& value) {
62 m_indexIdHasBeenSet = true;
63 m_indexId = std::forward<IndexIdT>(value);
64 }
65 template <typename IndexIdT = Aws::String>
67 SetIndexId(std::forward<IndexIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDisplayName() const { return m_displayName; }
77 template <typename DisplayNameT = Aws::String>
79 m_displayNameHasBeenSet = true;
80 m_displayName = std::forward<DisplayNameT>(value);
81 }
82 template <typename DisplayNameT = Aws::String>
84 SetDisplayName(std::forward<DisplayNameT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetIndexArn() const { return m_indexArn; }
94 template <typename IndexArnT = Aws::String>
95 void SetIndexArn(IndexArnT&& value) {
96 m_indexArnHasBeenSet = true;
97 m_indexArn = std::forward<IndexArnT>(value);
98 }
99 template <typename IndexArnT = Aws::String>
101 SetIndexArn(std::forward<IndexArnT>(value));
102 return *this;
103 }
105
107
113 inline IndexStatus GetStatus() const { return m_status; }
114 inline void SetStatus(IndexStatus value) {
115 m_statusHasBeenSet = true;
116 m_status = value;
117 }
119 SetStatus(value);
120 return *this;
121 }
123
125
128 inline IndexType GetType() const { return m_type; }
129 inline void SetType(IndexType value) {
130 m_typeHasBeenSet = true;
131 m_type = value;
132 }
134 SetType(value);
135 return *this;
136 }
138
140
143 inline const Aws::String& GetDescription() const { return m_description; }
144 template <typename DescriptionT = Aws::String>
146 m_descriptionHasBeenSet = true;
147 m_description = std::forward<DescriptionT>(value);
148 }
149 template <typename DescriptionT = Aws::String>
151 SetDescription(std::forward<DescriptionT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
161 template <typename CreatedAtT = Aws::Utils::DateTime>
162 void SetCreatedAt(CreatedAtT&& value) {
163 m_createdAtHasBeenSet = true;
164 m_createdAt = std::forward<CreatedAtT>(value);
165 }
166 template <typename CreatedAtT = Aws::Utils::DateTime>
168 SetCreatedAt(std::forward<CreatedAtT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
178 template <typename UpdatedAtT = Aws::Utils::DateTime>
179 void SetUpdatedAt(UpdatedAtT&& value) {
180 m_updatedAtHasBeenSet = true;
181 m_updatedAt = std::forward<UpdatedAtT>(value);
182 }
183 template <typename UpdatedAtT = Aws::Utils::DateTime>
185 SetUpdatedAt(std::forward<UpdatedAtT>(value));
186 return *this;
187 }
189
191
194 inline const IndexCapacityConfiguration& GetCapacityConfiguration() const { return m_capacityConfiguration; }
195 template <typename CapacityConfigurationT = IndexCapacityConfiguration>
197 m_capacityConfigurationHasBeenSet = true;
198 m_capacityConfiguration = std::forward<CapacityConfigurationT>(value);
199 }
200 template <typename CapacityConfigurationT = IndexCapacityConfiguration>
202 SetCapacityConfiguration(std::forward<CapacityConfigurationT>(value));
203 return *this;
204 }
206
208
216 return m_documentAttributeConfigurations;
217 }
218 template <typename DocumentAttributeConfigurationsT = Aws::Vector<DocumentAttributeConfiguration>>
220 m_documentAttributeConfigurationsHasBeenSet = true;
221 m_documentAttributeConfigurations = std::forward<DocumentAttributeConfigurationsT>(value);
222 }
223 template <typename DocumentAttributeConfigurationsT = Aws::Vector<DocumentAttributeConfiguration>>
225 SetDocumentAttributeConfigurations(std::forward<DocumentAttributeConfigurationsT>(value));
226 return *this;
227 }
228 template <typename DocumentAttributeConfigurationsT = DocumentAttributeConfiguration>
230 m_documentAttributeConfigurationsHasBeenSet = true;
231 m_documentAttributeConfigurations.emplace_back(std::forward<DocumentAttributeConfigurationsT>(value));
232 return *this;
233 }
235
237
241 inline const ErrorDetail& GetError() const { return m_error; }
242 template <typename ErrorT = ErrorDetail>
243 void SetError(ErrorT&& value) {
244 m_errorHasBeenSet = true;
245 m_error = std::forward<ErrorT>(value);
246 }
247 template <typename ErrorT = ErrorDetail>
249 SetError(std::forward<ErrorT>(value));
250 return *this;
251 }
253
255
258 inline const IndexStatistics& GetIndexStatistics() const { return m_indexStatistics; }
259 template <typename IndexStatisticsT = IndexStatistics>
261 m_indexStatisticsHasBeenSet = true;
262 m_indexStatistics = std::forward<IndexStatisticsT>(value);
263 }
264 template <typename IndexStatisticsT = IndexStatistics>
266 SetIndexStatistics(std::forward<IndexStatisticsT>(value));
267 return *this;
268 }
270
272
273 inline const Aws::String& GetRequestId() const { return m_requestId; }
274 template <typename RequestIdT = Aws::String>
275 void SetRequestId(RequestIdT&& value) {
276 m_requestIdHasBeenSet = true;
277 m_requestId = std::forward<RequestIdT>(value);
278 }
279 template <typename RequestIdT = Aws::String>
281 SetRequestId(std::forward<RequestIdT>(value));
282 return *this;
283 }
285 private:
286 Aws::String m_applicationId;
287 bool m_applicationIdHasBeenSet = false;
288
289 Aws::String m_indexId;
290 bool m_indexIdHasBeenSet = false;
291
292 Aws::String m_displayName;
293 bool m_displayNameHasBeenSet = false;
294
295 Aws::String m_indexArn;
296 bool m_indexArnHasBeenSet = false;
297
299 bool m_statusHasBeenSet = false;
300
302 bool m_typeHasBeenSet = false;
303
304 Aws::String m_description;
305 bool m_descriptionHasBeenSet = false;
306
307 Aws::Utils::DateTime m_createdAt{};
308 bool m_createdAtHasBeenSet = false;
309
310 Aws::Utils::DateTime m_updatedAt{};
311 bool m_updatedAtHasBeenSet = false;
312
313 IndexCapacityConfiguration m_capacityConfiguration;
314 bool m_capacityConfigurationHasBeenSet = false;
315
316 Aws::Vector<DocumentAttributeConfiguration> m_documentAttributeConfigurations;
317 bool m_documentAttributeConfigurationsHasBeenSet = false;
318
319 ErrorDetail m_error;
320 bool m_errorHasBeenSet = false;
321
322 IndexStatistics m_indexStatistics;
323 bool m_indexStatisticsHasBeenSet = false;
324
325 Aws::String m_requestId;
326 bool m_requestIdHasBeenSet = false;
327};
328
329} // namespace Model
330} // namespace QBusiness
331} // 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)
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