AWS SDK for C++

AWS SDK for C++ Version 1.11.780

Loading...
Searching...
No Matches
DescribeDataSourceResult.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/kendra/Kendra_EXPORTS.h>
11#include <aws/kendra/model/CustomDocumentEnrichmentConfiguration.h>
12#include <aws/kendra/model/DataSourceConfiguration.h>
13#include <aws/kendra/model/DataSourceStatus.h>
14#include <aws/kendra/model/DataSourceType.h>
15#include <aws/kendra/model/DataSourceVpcConfiguration.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace kendra {
29namespace Model {
31 public:
32 AWS_KENDRA_API DescribeDataSourceResult() = default;
35
37
40 inline const Aws::String& GetId() const { return m_id; }
41 template <typename IdT = Aws::String>
42 void SetId(IdT&& value) {
43 m_idHasBeenSet = true;
44 m_id = std::forward<IdT>(value);
45 }
46 template <typename IdT = Aws::String>
48 SetId(std::forward<IdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetIndexId() const { return m_indexId; }
58 template <typename IndexIdT = Aws::String>
59 void SetIndexId(IndexIdT&& value) {
60 m_indexIdHasBeenSet = true;
61 m_indexId = std::forward<IndexIdT>(value);
62 }
63 template <typename IndexIdT = Aws::String>
65 SetIndexId(std::forward<IndexIdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetName() const { return m_name; }
75 template <typename NameT = Aws::String>
76 void SetName(NameT&& value) {
77 m_nameHasBeenSet = true;
78 m_name = std::forward<NameT>(value);
79 }
80 template <typename NameT = Aws::String>
82 SetName(std::forward<NameT>(value));
83 return *this;
84 }
86
88
91 inline DataSourceType GetType() const { return m_type; }
92 inline void SetType(DataSourceType value) {
93 m_typeHasBeenSet = true;
94 m_type = value;
95 }
97 SetType(value);
98 return *this;
99 }
101
103
108 inline const DataSourceConfiguration& GetConfiguration() const { return m_configuration; }
109 template <typename ConfigurationT = DataSourceConfiguration>
110 void SetConfiguration(ConfigurationT&& value) {
111 m_configurationHasBeenSet = true;
112 m_configuration = std::forward<ConfigurationT>(value);
113 }
114 template <typename ConfigurationT = DataSourceConfiguration>
116 SetConfiguration(std::forward<ConfigurationT>(value));
117 return *this;
118 }
120
122
128 inline const DataSourceVpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
129 template <typename VpcConfigurationT = DataSourceVpcConfiguration>
130 void SetVpcConfiguration(VpcConfigurationT&& value) {
131 m_vpcConfigurationHasBeenSet = true;
132 m_vpcConfiguration = std::forward<VpcConfigurationT>(value);
133 }
134 template <typename VpcConfigurationT = DataSourceVpcConfiguration>
135 DescribeDataSourceResult& WithVpcConfiguration(VpcConfigurationT&& value) {
136 SetVpcConfiguration(std::forward<VpcConfigurationT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
146 template <typename CreatedAtT = Aws::Utils::DateTime>
147 void SetCreatedAt(CreatedAtT&& value) {
148 m_createdAtHasBeenSet = true;
149 m_createdAt = std::forward<CreatedAtT>(value);
150 }
151 template <typename CreatedAtT = Aws::Utils::DateTime>
153 SetCreatedAt(std::forward<CreatedAtT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
163 template <typename UpdatedAtT = Aws::Utils::DateTime>
164 void SetUpdatedAt(UpdatedAtT&& value) {
165 m_updatedAtHasBeenSet = true;
166 m_updatedAt = std::forward<UpdatedAtT>(value);
167 }
168 template <typename UpdatedAtT = Aws::Utils::DateTime>
170 SetUpdatedAt(std::forward<UpdatedAtT>(value));
171 return *this;
172 }
174
176
179 inline const Aws::String& GetDescription() const { return m_description; }
180 template <typename DescriptionT = Aws::String>
181 void SetDescription(DescriptionT&& value) {
182 m_descriptionHasBeenSet = true;
183 m_description = std::forward<DescriptionT>(value);
184 }
185 template <typename DescriptionT = Aws::String>
187 SetDescription(std::forward<DescriptionT>(value));
188 return *this;
189 }
191
193
199 inline DataSourceStatus GetStatus() const { return m_status; }
200 inline void SetStatus(DataSourceStatus value) {
201 m_statusHasBeenSet = true;
202 m_status = value;
203 }
205 SetStatus(value);
206 return *this;
207 }
209
211
214 inline const Aws::String& GetSchedule() const { return m_schedule; }
215 template <typename ScheduleT = Aws::String>
216 void SetSchedule(ScheduleT&& value) {
217 m_scheduleHasBeenSet = true;
218 m_schedule = std::forward<ScheduleT>(value);
219 }
220 template <typename ScheduleT = Aws::String>
222 SetSchedule(std::forward<ScheduleT>(value));
223 return *this;
224 }
226
228
232 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
233 template <typename RoleArnT = Aws::String>
234 void SetRoleArn(RoleArnT&& value) {
235 m_roleArnHasBeenSet = true;
236 m_roleArn = std::forward<RoleArnT>(value);
237 }
238 template <typename RoleArnT = Aws::String>
240 SetRoleArn(std::forward<RoleArnT>(value));
241 return *this;
242 }
244
246
251 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
252 template <typename ErrorMessageT = Aws::String>
253 void SetErrorMessage(ErrorMessageT&& value) {
254 m_errorMessageHasBeenSet = true;
255 m_errorMessage = std::forward<ErrorMessageT>(value);
256 }
257 template <typename ErrorMessageT = Aws::String>
259 SetErrorMessage(std::forward<ErrorMessageT>(value));
260 return *this;
261 }
263
265
272 inline const Aws::String& GetLanguageCode() const { return m_languageCode; }
273 template <typename LanguageCodeT = Aws::String>
274 void SetLanguageCode(LanguageCodeT&& value) {
275 m_languageCodeHasBeenSet = true;
276 m_languageCode = std::forward<LanguageCodeT>(value);
277 }
278 template <typename LanguageCodeT = Aws::String>
280 SetLanguageCode(std::forward<LanguageCodeT>(value));
281 return *this;
282 }
284
286
295 return m_customDocumentEnrichmentConfiguration;
296 }
297 template <typename CustomDocumentEnrichmentConfigurationT = CustomDocumentEnrichmentConfiguration>
298 void SetCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfigurationT&& value) {
299 m_customDocumentEnrichmentConfigurationHasBeenSet = true;
300 m_customDocumentEnrichmentConfiguration = std::forward<CustomDocumentEnrichmentConfigurationT>(value);
301 }
302 template <typename CustomDocumentEnrichmentConfigurationT = CustomDocumentEnrichmentConfiguration>
303 DescribeDataSourceResult& WithCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfigurationT&& value) {
304 SetCustomDocumentEnrichmentConfiguration(std::forward<CustomDocumentEnrichmentConfigurationT>(value));
305 return *this;
306 }
308
310
311 inline const Aws::String& GetRequestId() const { return m_requestId; }
312 template <typename RequestIdT = Aws::String>
313 void SetRequestId(RequestIdT&& value) {
314 m_requestIdHasBeenSet = true;
315 m_requestId = std::forward<RequestIdT>(value);
316 }
317 template <typename RequestIdT = Aws::String>
319 SetRequestId(std::forward<RequestIdT>(value));
320 return *this;
321 }
323 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
324
325 private:
326 Aws::String m_id;
327
328 Aws::String m_indexId;
329
330 Aws::String m_name;
331
333
334 DataSourceConfiguration m_configuration;
335
336 DataSourceVpcConfiguration m_vpcConfiguration;
337
338 Aws::Utils::DateTime m_createdAt{};
339
340 Aws::Utils::DateTime m_updatedAt{};
341
342 Aws::String m_description;
343
345
346 Aws::String m_schedule;
347
348 Aws::String m_roleArn;
349
350 Aws::String m_errorMessage;
351
352 Aws::String m_languageCode;
353
354 CustomDocumentEnrichmentConfiguration m_customDocumentEnrichmentConfiguration;
355
356 Aws::String m_requestId;
357 Aws::Http::HttpResponseCode m_HttpResponseCode;
358 bool m_idHasBeenSet = false;
359 bool m_indexIdHasBeenSet = false;
360 bool m_nameHasBeenSet = false;
361 bool m_typeHasBeenSet = false;
362 bool m_configurationHasBeenSet = false;
363 bool m_vpcConfigurationHasBeenSet = false;
364 bool m_createdAtHasBeenSet = false;
365 bool m_updatedAtHasBeenSet = false;
366 bool m_descriptionHasBeenSet = false;
367 bool m_statusHasBeenSet = false;
368 bool m_scheduleHasBeenSet = false;
369 bool m_roleArnHasBeenSet = false;
370 bool m_errorMessageHasBeenSet = false;
371 bool m_languageCodeHasBeenSet = false;
372 bool m_customDocumentEnrichmentConfigurationHasBeenSet = false;
373 bool m_requestIdHasBeenSet = false;
374};
375
376} // namespace Model
377} // namespace kendra
378} // namespace Aws
const DataSourceConfiguration & GetConfiguration() const
DescribeDataSourceResult & WithStatus(DataSourceStatus value)
DescribeDataSourceResult & WithLanguageCode(LanguageCodeT &&value)
DescribeDataSourceResult & WithName(NameT &&value)
DescribeDataSourceResult & WithUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
DescribeDataSourceResult & WithConfiguration(ConfigurationT &&value)
DescribeDataSourceResult & WithSchedule(ScheduleT &&value)
DescribeDataSourceResult & WithErrorMessage(ErrorMessageT &&value)
const CustomDocumentEnrichmentConfiguration & GetCustomDocumentEnrichmentConfiguration() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_KENDRA_API DescribeDataSourceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeDataSourceResult & WithIndexId(IndexIdT &&value)
DescribeDataSourceResult & WithRoleArn(RoleArnT &&value)
DescribeDataSourceResult & WithVpcConfiguration(VpcConfigurationT &&value)
DescribeDataSourceResult & WithType(DataSourceType value)
AWS_KENDRA_API DescribeDataSourceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfigurationT &&value)
DescribeDataSourceResult & WithId(IdT &&value)
DescribeDataSourceResult & WithRequestId(RequestIdT &&value)
DescribeDataSourceResult & WithCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfigurationT &&value)
DescribeDataSourceResult & WithDescription(DescriptionT &&value)
AWS_KENDRA_API DescribeDataSourceResult()=default
const Aws::Utils::DateTime & GetUpdatedAt() const
DescribeDataSourceResult & WithCreatedAt(CreatedAtT &&value)
const DataSourceVpcConfiguration & GetVpcConfiguration() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue