AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
DescribeDataSourceResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kendra/Kendra_EXPORTS.h>
10#include <aws/kendra/model/CustomDocumentEnrichmentConfiguration.h>
11#include <aws/kendra/model/DataSourceConfiguration.h>
12#include <aws/kendra/model/DataSourceStatus.h>
13#include <aws/kendra/model/DataSourceType.h>
14#include <aws/kendra/model/DataSourceVpcConfiguration.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace kendra {
28namespace Model {
30 public:
31 AWS_KENDRA_API DescribeDataSourceResult() = default;
34
36
39 inline const Aws::String& GetId() const { return m_id; }
40 template <typename IdT = Aws::String>
41 void SetId(IdT&& value) {
42 m_idHasBeenSet = true;
43 m_id = std::forward<IdT>(value);
44 }
45 template <typename IdT = Aws::String>
47 SetId(std::forward<IdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetIndexId() const { return m_indexId; }
57 template <typename IndexIdT = Aws::String>
58 void SetIndexId(IndexIdT&& value) {
59 m_indexIdHasBeenSet = true;
60 m_indexId = std::forward<IndexIdT>(value);
61 }
62 template <typename IndexIdT = Aws::String>
64 SetIndexId(std::forward<IndexIdT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetName() const { return m_name; }
74 template <typename NameT = Aws::String>
75 void SetName(NameT&& value) {
76 m_nameHasBeenSet = true;
77 m_name = std::forward<NameT>(value);
78 }
79 template <typename NameT = Aws::String>
81 SetName(std::forward<NameT>(value));
82 return *this;
83 }
85
87
90 inline DataSourceType GetType() const { return m_type; }
91 inline void SetType(DataSourceType value) {
92 m_typeHasBeenSet = true;
93 m_type = value;
94 }
96 SetType(value);
97 return *this;
98 }
100
102
107 inline const DataSourceConfiguration& GetConfiguration() const { return m_configuration; }
108 template <typename ConfigurationT = DataSourceConfiguration>
109 void SetConfiguration(ConfigurationT&& value) {
110 m_configurationHasBeenSet = true;
111 m_configuration = std::forward<ConfigurationT>(value);
112 }
113 template <typename ConfigurationT = DataSourceConfiguration>
115 SetConfiguration(std::forward<ConfigurationT>(value));
116 return *this;
117 }
119
121
127 inline const DataSourceVpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
128 template <typename VpcConfigurationT = DataSourceVpcConfiguration>
129 void SetVpcConfiguration(VpcConfigurationT&& value) {
130 m_vpcConfigurationHasBeenSet = true;
131 m_vpcConfiguration = std::forward<VpcConfigurationT>(value);
132 }
133 template <typename VpcConfigurationT = DataSourceVpcConfiguration>
134 DescribeDataSourceResult& WithVpcConfiguration(VpcConfigurationT&& value) {
135 SetVpcConfiguration(std::forward<VpcConfigurationT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
145 template <typename CreatedAtT = Aws::Utils::DateTime>
146 void SetCreatedAt(CreatedAtT&& value) {
147 m_createdAtHasBeenSet = true;
148 m_createdAt = std::forward<CreatedAtT>(value);
149 }
150 template <typename CreatedAtT = Aws::Utils::DateTime>
152 SetCreatedAt(std::forward<CreatedAtT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
162 template <typename UpdatedAtT = Aws::Utils::DateTime>
163 void SetUpdatedAt(UpdatedAtT&& value) {
164 m_updatedAtHasBeenSet = true;
165 m_updatedAt = std::forward<UpdatedAtT>(value);
166 }
167 template <typename UpdatedAtT = Aws::Utils::DateTime>
169 SetUpdatedAt(std::forward<UpdatedAtT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::String& GetDescription() const { return m_description; }
179 template <typename DescriptionT = Aws::String>
180 void SetDescription(DescriptionT&& value) {
181 m_descriptionHasBeenSet = true;
182 m_description = std::forward<DescriptionT>(value);
183 }
184 template <typename DescriptionT = Aws::String>
186 SetDescription(std::forward<DescriptionT>(value));
187 return *this;
188 }
190
192
198 inline DataSourceStatus GetStatus() const { return m_status; }
199 inline void SetStatus(DataSourceStatus value) {
200 m_statusHasBeenSet = true;
201 m_status = value;
202 }
204 SetStatus(value);
205 return *this;
206 }
208
210
213 inline const Aws::String& GetSchedule() const { return m_schedule; }
214 template <typename ScheduleT = Aws::String>
215 void SetSchedule(ScheduleT&& value) {
216 m_scheduleHasBeenSet = true;
217 m_schedule = std::forward<ScheduleT>(value);
218 }
219 template <typename ScheduleT = Aws::String>
221 SetSchedule(std::forward<ScheduleT>(value));
222 return *this;
223 }
225
227
231 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
232 template <typename RoleArnT = Aws::String>
233 void SetRoleArn(RoleArnT&& value) {
234 m_roleArnHasBeenSet = true;
235 m_roleArn = std::forward<RoleArnT>(value);
236 }
237 template <typename RoleArnT = Aws::String>
239 SetRoleArn(std::forward<RoleArnT>(value));
240 return *this;
241 }
243
245
250 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
251 template <typename ErrorMessageT = Aws::String>
252 void SetErrorMessage(ErrorMessageT&& value) {
253 m_errorMessageHasBeenSet = true;
254 m_errorMessage = std::forward<ErrorMessageT>(value);
255 }
256 template <typename ErrorMessageT = Aws::String>
258 SetErrorMessage(std::forward<ErrorMessageT>(value));
259 return *this;
260 }
262
264
271 inline const Aws::String& GetLanguageCode() const { return m_languageCode; }
272 template <typename LanguageCodeT = Aws::String>
273 void SetLanguageCode(LanguageCodeT&& value) {
274 m_languageCodeHasBeenSet = true;
275 m_languageCode = std::forward<LanguageCodeT>(value);
276 }
277 template <typename LanguageCodeT = Aws::String>
279 SetLanguageCode(std::forward<LanguageCodeT>(value));
280 return *this;
281 }
283
285
294 return m_customDocumentEnrichmentConfiguration;
295 }
296 template <typename CustomDocumentEnrichmentConfigurationT = CustomDocumentEnrichmentConfiguration>
297 void SetCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfigurationT&& value) {
298 m_customDocumentEnrichmentConfigurationHasBeenSet = true;
299 m_customDocumentEnrichmentConfiguration = std::forward<CustomDocumentEnrichmentConfigurationT>(value);
300 }
301 template <typename CustomDocumentEnrichmentConfigurationT = CustomDocumentEnrichmentConfiguration>
302 DescribeDataSourceResult& WithCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfigurationT&& value) {
303 SetCustomDocumentEnrichmentConfiguration(std::forward<CustomDocumentEnrichmentConfigurationT>(value));
304 return *this;
305 }
307
309
310 inline const Aws::String& GetRequestId() const { return m_requestId; }
311 template <typename RequestIdT = Aws::String>
312 void SetRequestId(RequestIdT&& value) {
313 m_requestIdHasBeenSet = true;
314 m_requestId = std::forward<RequestIdT>(value);
315 }
316 template <typename RequestIdT = Aws::String>
318 SetRequestId(std::forward<RequestIdT>(value));
319 return *this;
320 }
322 private:
323 Aws::String m_id;
324
325 Aws::String m_indexId;
326
327 Aws::String m_name;
328
330
331 DataSourceConfiguration m_configuration;
332
333 DataSourceVpcConfiguration m_vpcConfiguration;
334
335 Aws::Utils::DateTime m_createdAt{};
336
337 Aws::Utils::DateTime m_updatedAt{};
338
339 Aws::String m_description;
340
342
343 Aws::String m_schedule;
344
345 Aws::String m_roleArn;
346
347 Aws::String m_errorMessage;
348
349 Aws::String m_languageCode;
350
351 CustomDocumentEnrichmentConfiguration m_customDocumentEnrichmentConfiguration;
352
353 Aws::String m_requestId;
354 bool m_idHasBeenSet = false;
355 bool m_indexIdHasBeenSet = false;
356 bool m_nameHasBeenSet = false;
357 bool m_typeHasBeenSet = false;
358 bool m_configurationHasBeenSet = false;
359 bool m_vpcConfigurationHasBeenSet = false;
360 bool m_createdAtHasBeenSet = false;
361 bool m_updatedAtHasBeenSet = false;
362 bool m_descriptionHasBeenSet = false;
363 bool m_statusHasBeenSet = false;
364 bool m_scheduleHasBeenSet = false;
365 bool m_roleArnHasBeenSet = false;
366 bool m_errorMessageHasBeenSet = false;
367 bool m_languageCodeHasBeenSet = false;
368 bool m_customDocumentEnrichmentConfigurationHasBeenSet = false;
369 bool m_requestIdHasBeenSet = false;
370};
371
372} // namespace Model
373} // namespace kendra
374} // 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_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