AWS SDK for C++

AWS SDK for C++ Version 1.11.792

Loading...
Searching...
No Matches
GetDataSourceResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/Document.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/qbusiness/QBusiness_EXPORTS.h>
12#include <aws/qbusiness/model/DataSourceStatus.h>
13#include <aws/qbusiness/model/DataSourceVpcConfiguration.h>
14#include <aws/qbusiness/model/DocumentEnrichmentConfiguration.h>
15#include <aws/qbusiness/model/ErrorDetail.h>
16#include <aws/qbusiness/model/MediaExtractionConfiguration.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 GetDataSourceResult() = default;
36
38
41 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
42 template <typename ApplicationIdT = Aws::String>
44 m_applicationIdHasBeenSet = true;
45 m_applicationId = std::forward<ApplicationIdT>(value);
46 }
47 template <typename ApplicationIdT = Aws::String>
49 SetApplicationId(std::forward<ApplicationIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetIndexId() const { return m_indexId; }
59 template <typename IndexIdT = Aws::String>
60 void SetIndexId(IndexIdT&& value) {
61 m_indexIdHasBeenSet = true;
62 m_indexId = std::forward<IndexIdT>(value);
63 }
64 template <typename IndexIdT = Aws::String>
66 SetIndexId(std::forward<IndexIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
76 template <typename DataSourceIdT = Aws::String>
78 m_dataSourceIdHasBeenSet = true;
79 m_dataSourceId = std::forward<DataSourceIdT>(value);
80 }
81 template <typename DataSourceIdT = Aws::String>
83 SetDataSourceId(std::forward<DataSourceIdT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetDataSourceArn() const { return m_dataSourceArn; }
93 template <typename DataSourceArnT = Aws::String>
95 m_dataSourceArnHasBeenSet = true;
96 m_dataSourceArn = std::forward<DataSourceArnT>(value);
97 }
98 template <typename DataSourceArnT = Aws::String>
100 SetDataSourceArn(std::forward<DataSourceArnT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetDisplayName() const { return m_displayName; }
110 template <typename DisplayNameT = Aws::String>
112 m_displayNameHasBeenSet = true;
113 m_displayName = std::forward<DisplayNameT>(value);
114 }
115 template <typename DisplayNameT = Aws::String>
117 SetDisplayName(std::forward<DisplayNameT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetType() const { return m_type; }
127 template <typename TypeT = Aws::String>
128 void SetType(TypeT&& value) {
129 m_typeHasBeenSet = true;
130 m_type = std::forward<TypeT>(value);
131 }
132 template <typename TypeT = Aws::String>
134 SetType(std::forward<TypeT>(value));
135 return *this;
136 }
138
140
143 inline Aws::Utils::DocumentView GetConfiguration() const { return m_configuration; }
144 template <typename ConfigurationT = Aws::Utils::Document>
146 m_configurationHasBeenSet = true;
147 m_configuration = std::forward<ConfigurationT>(value);
148 }
149 template <typename ConfigurationT = Aws::Utils::Document>
151 SetConfiguration(std::forward<ConfigurationT>(value));
152 return *this;
153 }
155
157
161 inline const DataSourceVpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
162 template <typename VpcConfigurationT = DataSourceVpcConfiguration>
164 m_vpcConfigurationHasBeenSet = true;
165 m_vpcConfiguration = std::forward<VpcConfigurationT>(value);
166 }
167 template <typename VpcConfigurationT = DataSourceVpcConfiguration>
169 SetVpcConfiguration(std::forward<VpcConfigurationT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
179 template <typename CreatedAtT = Aws::Utils::DateTime>
180 void SetCreatedAt(CreatedAtT&& value) {
181 m_createdAtHasBeenSet = true;
182 m_createdAt = std::forward<CreatedAtT>(value);
183 }
184 template <typename CreatedAtT = Aws::Utils::DateTime>
186 SetCreatedAt(std::forward<CreatedAtT>(value));
187 return *this;
188 }
190
192
195 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
196 template <typename UpdatedAtT = Aws::Utils::DateTime>
197 void SetUpdatedAt(UpdatedAtT&& value) {
198 m_updatedAtHasBeenSet = true;
199 m_updatedAt = std::forward<UpdatedAtT>(value);
200 }
201 template <typename UpdatedAtT = Aws::Utils::DateTime>
203 SetUpdatedAt(std::forward<UpdatedAtT>(value));
204 return *this;
205 }
207
209
212 inline const Aws::String& GetDescription() const { return m_description; }
213 template <typename DescriptionT = Aws::String>
215 m_descriptionHasBeenSet = true;
216 m_description = std::forward<DescriptionT>(value);
217 }
218 template <typename DescriptionT = Aws::String>
220 SetDescription(std::forward<DescriptionT>(value));
221 return *this;
222 }
224
226
231 inline DataSourceStatus GetStatus() const { return m_status; }
232 inline void SetStatus(DataSourceStatus value) {
233 m_statusHasBeenSet = true;
234 m_status = value;
235 }
237 SetStatus(value);
238 return *this;
239 }
241
243
246 inline const Aws::String& GetSyncSchedule() const { return m_syncSchedule; }
247 template <typename SyncScheduleT = Aws::String>
249 m_syncScheduleHasBeenSet = true;
250 m_syncSchedule = std::forward<SyncScheduleT>(value);
251 }
252 template <typename SyncScheduleT = Aws::String>
254 SetSyncSchedule(std::forward<SyncScheduleT>(value));
255 return *this;
256 }
258
260
264 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
265 template <typename RoleArnT = Aws::String>
266 void SetRoleArn(RoleArnT&& value) {
267 m_roleArnHasBeenSet = true;
268 m_roleArn = std::forward<RoleArnT>(value);
269 }
270 template <typename RoleArnT = Aws::String>
272 SetRoleArn(std::forward<RoleArnT>(value));
273 return *this;
274 }
276
278
283 inline const ErrorDetail& GetError() const { return m_error; }
284 template <typename ErrorT = ErrorDetail>
285 void SetError(ErrorT&& value) {
286 m_errorHasBeenSet = true;
287 m_error = std::forward<ErrorT>(value);
288 }
289 template <typename ErrorT = ErrorDetail>
291 SetError(std::forward<ErrorT>(value));
292 return *this;
293 }
295
297
298 inline const DocumentEnrichmentConfiguration& GetDocumentEnrichmentConfiguration() const { return m_documentEnrichmentConfiguration; }
299 template <typename DocumentEnrichmentConfigurationT = DocumentEnrichmentConfiguration>
301 m_documentEnrichmentConfigurationHasBeenSet = true;
302 m_documentEnrichmentConfiguration = std::forward<DocumentEnrichmentConfigurationT>(value);
303 }
304 template <typename DocumentEnrichmentConfigurationT = DocumentEnrichmentConfiguration>
306 SetDocumentEnrichmentConfiguration(std::forward<DocumentEnrichmentConfigurationT>(value));
307 return *this;
308 }
310
312
316 inline const MediaExtractionConfiguration& GetMediaExtractionConfiguration() const { return m_mediaExtractionConfiguration; }
317 template <typename MediaExtractionConfigurationT = MediaExtractionConfiguration>
319 m_mediaExtractionConfigurationHasBeenSet = true;
320 m_mediaExtractionConfiguration = std::forward<MediaExtractionConfigurationT>(value);
321 }
322 template <typename MediaExtractionConfigurationT = MediaExtractionConfiguration>
324 SetMediaExtractionConfiguration(std::forward<MediaExtractionConfigurationT>(value));
325 return *this;
326 }
328
330
331 inline const Aws::String& GetRequestId() const { return m_requestId; }
332 template <typename RequestIdT = Aws::String>
333 void SetRequestId(RequestIdT&& value) {
334 m_requestIdHasBeenSet = true;
335 m_requestId = std::forward<RequestIdT>(value);
336 }
337 template <typename RequestIdT = Aws::String>
339 SetRequestId(std::forward<RequestIdT>(value));
340 return *this;
341 }
343 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
344
345 private:
346 Aws::String m_applicationId;
347
348 Aws::String m_indexId;
349
350 Aws::String m_dataSourceId;
351
352 Aws::String m_dataSourceArn;
353
354 Aws::String m_displayName;
355
356 Aws::String m_type;
357
358 Aws::Utils::Document m_configuration;
359
360 DataSourceVpcConfiguration m_vpcConfiguration;
361
362 Aws::Utils::DateTime m_createdAt{};
363
364 Aws::Utils::DateTime m_updatedAt{};
365
366 Aws::String m_description;
367
369
370 Aws::String m_syncSchedule;
371
372 Aws::String m_roleArn;
373
374 ErrorDetail m_error;
375
376 DocumentEnrichmentConfiguration m_documentEnrichmentConfiguration;
377
378 MediaExtractionConfiguration m_mediaExtractionConfiguration;
379
380 Aws::String m_requestId;
381 Aws::Http::HttpResponseCode m_HttpResponseCode;
382 bool m_applicationIdHasBeenSet = false;
383 bool m_indexIdHasBeenSet = false;
384 bool m_dataSourceIdHasBeenSet = false;
385 bool m_dataSourceArnHasBeenSet = false;
386 bool m_displayNameHasBeenSet = false;
387 bool m_typeHasBeenSet = false;
388 bool m_configurationHasBeenSet = false;
389 bool m_vpcConfigurationHasBeenSet = false;
390 bool m_createdAtHasBeenSet = false;
391 bool m_updatedAtHasBeenSet = false;
392 bool m_descriptionHasBeenSet = false;
393 bool m_statusHasBeenSet = false;
394 bool m_syncScheduleHasBeenSet = false;
395 bool m_roleArnHasBeenSet = false;
396 bool m_errorHasBeenSet = false;
397 bool m_documentEnrichmentConfigurationHasBeenSet = false;
398 bool m_mediaExtractionConfigurationHasBeenSet = false;
399 bool m_requestIdHasBeenSet = false;
400};
401
402} // namespace Model
403} // namespace QBusiness
404} // namespace Aws
GetDataSourceResult & WithApplicationId(ApplicationIdT &&value)
AWS_QBUSINESS_API GetDataSourceResult()=default
AWS_QBUSINESS_API GetDataSourceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDataSourceResult & WithVpcConfiguration(VpcConfigurationT &&value)
GetDataSourceResult & WithType(TypeT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetDataSourceResult & WithDisplayName(DisplayNameT &&value)
const MediaExtractionConfiguration & GetMediaExtractionConfiguration() const
GetDataSourceResult & WithMediaExtractionConfiguration(MediaExtractionConfigurationT &&value)
void SetVpcConfiguration(VpcConfigurationT &&value)
void SetApplicationId(ApplicationIdT &&value)
GetDataSourceResult & WithRoleArn(RoleArnT &&value)
void SetMediaExtractionConfiguration(MediaExtractionConfigurationT &&value)
const DataSourceVpcConfiguration & GetVpcConfiguration() const
GetDataSourceResult & WithUpdatedAt(UpdatedAtT &&value)
void SetDataSourceArn(DataSourceArnT &&value)
AWS_QBUSINESS_API GetDataSourceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDataSourceResult & WithError(ErrorT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
GetDataSourceResult & WithStatus(DataSourceStatus value)
const DocumentEnrichmentConfiguration & GetDocumentEnrichmentConfiguration() const
GetDataSourceResult & WithDescription(DescriptionT &&value)
GetDataSourceResult & WithIndexId(IndexIdT &&value)
GetDataSourceResult & WithDataSourceArn(DataSourceArnT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
GetDataSourceResult & WithDocumentEnrichmentConfiguration(DocumentEnrichmentConfigurationT &&value)
GetDataSourceResult & WithConfiguration(ConfigurationT &&value)
GetDataSourceResult & WithRequestId(RequestIdT &&value)
GetDataSourceResult & WithSyncSchedule(SyncScheduleT &&value)
Aws::Utils::DocumentView GetConfiguration() const
GetDataSourceResult & WithDataSourceId(DataSourceIdT &&value)
void SetDocumentEnrichmentConfiguration(DocumentEnrichmentConfigurationT &&value)
GetDataSourceResult & WithCreatedAt(CreatedAtT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue