AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetIndexResult.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qbusiness/model/IndexStatus.h>
10#include <aws/qbusiness/model/IndexType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/qbusiness/model/IndexCapacityConfiguration.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/qbusiness/model/ErrorDetail.h>
15#include <aws/qbusiness/model/IndexStatistics.h>
16#include <aws/qbusiness/model/DocumentAttributeConfiguration.h>
17#include <utility>
18
19namespace Aws
20{
21template<typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils
25{
26namespace Json
27{
28 class JsonValue;
29} // namespace Json
30} // namespace Utils
31namespace QBusiness
32{
33namespace Model
34{
36 {
37 public:
38 AWS_QBUSINESS_API GetIndexResult() = default;
41
42
44
48 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
49 template<typename ApplicationIdT = Aws::String>
50 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
51 template<typename ApplicationIdT = Aws::String>
52 GetIndexResult& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetIndexId() const { return m_indexId; }
60 template<typename IndexIdT = Aws::String>
61 void SetIndexId(IndexIdT&& value) { m_indexIdHasBeenSet = true; m_indexId = std::forward<IndexIdT>(value); }
62 template<typename IndexIdT = Aws::String>
63 GetIndexResult& WithIndexId(IndexIdT&& value) { SetIndexId(std::forward<IndexIdT>(value)); return *this;}
65
67
70 inline const Aws::String& GetDisplayName() const { return m_displayName; }
71 template<typename DisplayNameT = Aws::String>
72 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
73 template<typename DisplayNameT = Aws::String>
74 GetIndexResult& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
76
78
81 inline const Aws::String& GetIndexArn() const { return m_indexArn; }
82 template<typename IndexArnT = Aws::String>
83 void SetIndexArn(IndexArnT&& value) { m_indexArnHasBeenSet = true; m_indexArn = std::forward<IndexArnT>(value); }
84 template<typename IndexArnT = Aws::String>
85 GetIndexResult& WithIndexArn(IndexArnT&& value) { SetIndexArn(std::forward<IndexArnT>(value)); return *this;}
87
89
95 inline IndexStatus GetStatus() const { return m_status; }
96 inline void SetStatus(IndexStatus value) { m_statusHasBeenSet = true; m_status = value; }
97 inline GetIndexResult& WithStatus(IndexStatus value) { SetStatus(value); return *this;}
99
101
104 inline IndexType GetType() const { return m_type; }
105 inline void SetType(IndexType value) { m_typeHasBeenSet = true; m_type = value; }
106 inline GetIndexResult& WithType(IndexType value) { SetType(value); return *this;}
108
110
113 inline const Aws::String& GetDescription() const { return m_description; }
114 template<typename DescriptionT = Aws::String>
115 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
116 template<typename DescriptionT = Aws::String>
117 GetIndexResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
119
121
124 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
125 template<typename CreatedAtT = Aws::Utils::DateTime>
126 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
127 template<typename CreatedAtT = Aws::Utils::DateTime>
128 GetIndexResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
130
132
135 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
136 template<typename UpdatedAtT = Aws::Utils::DateTime>
137 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
138 template<typename UpdatedAtT = Aws::Utils::DateTime>
139 GetIndexResult& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
141
143
146 inline const IndexCapacityConfiguration& GetCapacityConfiguration() const { return m_capacityConfiguration; }
147 template<typename CapacityConfigurationT = IndexCapacityConfiguration>
148 void SetCapacityConfiguration(CapacityConfigurationT&& value) { m_capacityConfigurationHasBeenSet = true; m_capacityConfiguration = std::forward<CapacityConfigurationT>(value); }
149 template<typename CapacityConfigurationT = IndexCapacityConfiguration>
150 GetIndexResult& WithCapacityConfiguration(CapacityConfigurationT&& value) { SetCapacityConfiguration(std::forward<CapacityConfigurationT>(value)); return *this;}
152
154
161 inline const Aws::Vector<DocumentAttributeConfiguration>& GetDocumentAttributeConfigurations() const { return m_documentAttributeConfigurations; }
162 template<typename DocumentAttributeConfigurationsT = Aws::Vector<DocumentAttributeConfiguration>>
163 void SetDocumentAttributeConfigurations(DocumentAttributeConfigurationsT&& value) { m_documentAttributeConfigurationsHasBeenSet = true; m_documentAttributeConfigurations = std::forward<DocumentAttributeConfigurationsT>(value); }
164 template<typename DocumentAttributeConfigurationsT = Aws::Vector<DocumentAttributeConfiguration>>
165 GetIndexResult& WithDocumentAttributeConfigurations(DocumentAttributeConfigurationsT&& value) { SetDocumentAttributeConfigurations(std::forward<DocumentAttributeConfigurationsT>(value)); return *this;}
166 template<typename DocumentAttributeConfigurationsT = DocumentAttributeConfiguration>
167 GetIndexResult& AddDocumentAttributeConfigurations(DocumentAttributeConfigurationsT&& value) { m_documentAttributeConfigurationsHasBeenSet = true; m_documentAttributeConfigurations.emplace_back(std::forward<DocumentAttributeConfigurationsT>(value)); return *this; }
169
171
175 inline const ErrorDetail& GetError() const { return m_error; }
176 template<typename ErrorT = ErrorDetail>
177 void SetError(ErrorT&& value) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
178 template<typename ErrorT = ErrorDetail>
179 GetIndexResult& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
181
183
186 inline const IndexStatistics& GetIndexStatistics() const { return m_indexStatistics; }
187 template<typename IndexStatisticsT = IndexStatistics>
188 void SetIndexStatistics(IndexStatisticsT&& value) { m_indexStatisticsHasBeenSet = true; m_indexStatistics = std::forward<IndexStatisticsT>(value); }
189 template<typename IndexStatisticsT = IndexStatistics>
190 GetIndexResult& WithIndexStatistics(IndexStatisticsT&& value) { SetIndexStatistics(std::forward<IndexStatisticsT>(value)); return *this;}
192
194
195 inline const Aws::String& GetRequestId() const { return m_requestId; }
196 template<typename RequestIdT = Aws::String>
197 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
198 template<typename RequestIdT = Aws::String>
199 GetIndexResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
201 private:
202
203 Aws::String m_applicationId;
204 bool m_applicationIdHasBeenSet = false;
205
206 Aws::String m_indexId;
207 bool m_indexIdHasBeenSet = false;
208
209 Aws::String m_displayName;
210 bool m_displayNameHasBeenSet = false;
211
212 Aws::String m_indexArn;
213 bool m_indexArnHasBeenSet = false;
214
216 bool m_statusHasBeenSet = false;
217
219 bool m_typeHasBeenSet = false;
220
221 Aws::String m_description;
222 bool m_descriptionHasBeenSet = false;
223
224 Aws::Utils::DateTime m_createdAt{};
225 bool m_createdAtHasBeenSet = false;
226
227 Aws::Utils::DateTime m_updatedAt{};
228 bool m_updatedAtHasBeenSet = false;
229
230 IndexCapacityConfiguration m_capacityConfiguration;
231 bool m_capacityConfigurationHasBeenSet = false;
232
233 Aws::Vector<DocumentAttributeConfiguration> m_documentAttributeConfigurations;
234 bool m_documentAttributeConfigurationsHasBeenSet = false;
235
236 ErrorDetail m_error;
237 bool m_errorHasBeenSet = false;
238
239 IndexStatistics m_indexStatistics;
240 bool m_indexStatisticsHasBeenSet = false;
241
242 Aws::String m_requestId;
243 bool m_requestIdHasBeenSet = false;
244 };
245
246} // namespace Model
247} // namespace QBusiness
248} // 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