AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
DescribeDataSourceResult.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kendra/model/DataSourceType.h>
10#include <aws/kendra/model/DataSourceConfiguration.h>
11#include <aws/kendra/model/DataSourceVpcConfiguration.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/kendra/model/DataSourceStatus.h>
14#include <aws/kendra/model/CustomDocumentEnrichmentConfiguration.h>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace kendra
30{
31namespace Model
32{
34 {
35 public:
36 AWS_KENDRA_API DescribeDataSourceResult() = default;
39
40
42
45 inline const Aws::String& GetId() const { return m_id; }
46 template<typename IdT = Aws::String>
47 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
48 template<typename IdT = Aws::String>
49 DescribeDataSourceResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
51
53
56 inline const Aws::String& GetIndexId() const { return m_indexId; }
57 template<typename IndexIdT = Aws::String>
58 void SetIndexId(IndexIdT&& value) { m_indexIdHasBeenSet = true; m_indexId = std::forward<IndexIdT>(value); }
59 template<typename IndexIdT = Aws::String>
60 DescribeDataSourceResult& WithIndexId(IndexIdT&& value) { SetIndexId(std::forward<IndexIdT>(value)); return *this;}
62
64
67 inline const Aws::String& GetName() const { return m_name; }
68 template<typename NameT = Aws::String>
69 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
70 template<typename NameT = Aws::String>
71 DescribeDataSourceResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
73
75
78 inline DataSourceType GetType() const { return m_type; }
79 inline void SetType(DataSourceType value) { m_typeHasBeenSet = true; m_type = value; }
80 inline DescribeDataSourceResult& WithType(DataSourceType value) { SetType(value); return *this;}
82
84
89 inline const DataSourceConfiguration& GetConfiguration() const { return m_configuration; }
90 template<typename ConfigurationT = DataSourceConfiguration>
91 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
92 template<typename ConfigurationT = DataSourceConfiguration>
93 DescribeDataSourceResult& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
95
97
103 inline const DataSourceVpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
104 template<typename VpcConfigurationT = DataSourceVpcConfiguration>
105 void SetVpcConfiguration(VpcConfigurationT&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::forward<VpcConfigurationT>(value); }
106 template<typename VpcConfigurationT = DataSourceVpcConfiguration>
107 DescribeDataSourceResult& WithVpcConfiguration(VpcConfigurationT&& value) { SetVpcConfiguration(std::forward<VpcConfigurationT>(value)); return *this;}
109
111
114 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
115 template<typename CreatedAtT = Aws::Utils::DateTime>
116 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
117 template<typename CreatedAtT = Aws::Utils::DateTime>
118 DescribeDataSourceResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
120
122
125 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
126 template<typename UpdatedAtT = Aws::Utils::DateTime>
127 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
128 template<typename UpdatedAtT = Aws::Utils::DateTime>
129 DescribeDataSourceResult& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
131
133
136 inline const Aws::String& GetDescription() const { return m_description; }
137 template<typename DescriptionT = Aws::String>
138 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
139 template<typename DescriptionT = Aws::String>
140 DescribeDataSourceResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
142
144
150 inline DataSourceStatus GetStatus() const { return m_status; }
151 inline void SetStatus(DataSourceStatus value) { m_statusHasBeenSet = true; m_status = value; }
152 inline DescribeDataSourceResult& WithStatus(DataSourceStatus value) { SetStatus(value); return *this;}
154
156
159 inline const Aws::String& GetSchedule() const { return m_schedule; }
160 template<typename ScheduleT = Aws::String>
161 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
162 template<typename ScheduleT = Aws::String>
163 DescribeDataSourceResult& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
165
167
171 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
172 template<typename RoleArnT = Aws::String>
173 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
174 template<typename RoleArnT = Aws::String>
175 DescribeDataSourceResult& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
177
179
184 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
185 template<typename ErrorMessageT = Aws::String>
186 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
187 template<typename ErrorMessageT = Aws::String>
188 DescribeDataSourceResult& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
190
192
199 inline const Aws::String& GetLanguageCode() const { return m_languageCode; }
200 template<typename LanguageCodeT = Aws::String>
201 void SetLanguageCode(LanguageCodeT&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::forward<LanguageCodeT>(value); }
202 template<typename LanguageCodeT = Aws::String>
203 DescribeDataSourceResult& WithLanguageCode(LanguageCodeT&& value) { SetLanguageCode(std::forward<LanguageCodeT>(value)); return *this;}
205
207
215 inline const CustomDocumentEnrichmentConfiguration& GetCustomDocumentEnrichmentConfiguration() const { return m_customDocumentEnrichmentConfiguration; }
216 template<typename CustomDocumentEnrichmentConfigurationT = CustomDocumentEnrichmentConfiguration>
217 void SetCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfigurationT&& value) { m_customDocumentEnrichmentConfigurationHasBeenSet = true; m_customDocumentEnrichmentConfiguration = std::forward<CustomDocumentEnrichmentConfigurationT>(value); }
218 template<typename CustomDocumentEnrichmentConfigurationT = CustomDocumentEnrichmentConfiguration>
219 DescribeDataSourceResult& WithCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfigurationT&& value) { SetCustomDocumentEnrichmentConfiguration(std::forward<CustomDocumentEnrichmentConfigurationT>(value)); return *this;}
221
223
224 inline const Aws::String& GetRequestId() const { return m_requestId; }
225 template<typename RequestIdT = Aws::String>
226 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
227 template<typename RequestIdT = Aws::String>
228 DescribeDataSourceResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
230 private:
231
232 Aws::String m_id;
233 bool m_idHasBeenSet = false;
234
235 Aws::String m_indexId;
236 bool m_indexIdHasBeenSet = false;
237
238 Aws::String m_name;
239 bool m_nameHasBeenSet = false;
240
242 bool m_typeHasBeenSet = false;
243
244 DataSourceConfiguration m_configuration;
245 bool m_configurationHasBeenSet = false;
246
247 DataSourceVpcConfiguration m_vpcConfiguration;
248 bool m_vpcConfigurationHasBeenSet = false;
249
250 Aws::Utils::DateTime m_createdAt{};
251 bool m_createdAtHasBeenSet = false;
252
253 Aws::Utils::DateTime m_updatedAt{};
254 bool m_updatedAtHasBeenSet = false;
255
256 Aws::String m_description;
257 bool m_descriptionHasBeenSet = false;
258
260 bool m_statusHasBeenSet = false;
261
262 Aws::String m_schedule;
263 bool m_scheduleHasBeenSet = false;
264
265 Aws::String m_roleArn;
266 bool m_roleArnHasBeenSet = false;
267
268 Aws::String m_errorMessage;
269 bool m_errorMessageHasBeenSet = false;
270
271 Aws::String m_languageCode;
272 bool m_languageCodeHasBeenSet = false;
273
274 CustomDocumentEnrichmentConfiguration m_customDocumentEnrichmentConfiguration;
275 bool m_customDocumentEnrichmentConfigurationHasBeenSet = false;
276
277 Aws::String m_requestId;
278 bool m_requestIdHasBeenSet = false;
279 };
280
281} // namespace Model
282} // namespace kendra
283} // 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