AWS SDK for C++

AWS SDK for C++ Version 1.11.787

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/memory/stl/AWSString.h>
10#include <aws/machinelearning/MachineLearning_EXPORTS.h>
11#include <aws/machinelearning/model/EntityStatus.h>
12#include <aws/machinelearning/model/RDSMetadata.h>
13#include <aws/machinelearning/model/RedshiftMetadata.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace MachineLearning {
27namespace Model {
35 public:
36 AWS_MACHINELEARNING_API GetDataSourceResult() = default;
39
41
45 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
46 template <typename DataSourceIdT = Aws::String>
47 void SetDataSourceId(DataSourceIdT&& value) {
48 m_dataSourceIdHasBeenSet = true;
49 m_dataSourceId = std::forward<DataSourceIdT>(value);
50 }
51 template <typename DataSourceIdT = Aws::String>
52 GetDataSourceResult& WithDataSourceId(DataSourceIdT&& value) {
53 SetDataSourceId(std::forward<DataSourceIdT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetDataLocationS3() const { return m_dataLocationS3; }
64 template <typename DataLocationS3T = Aws::String>
65 void SetDataLocationS3(DataLocationS3T&& value) {
66 m_dataLocationS3HasBeenSet = true;
67 m_dataLocationS3 = std::forward<DataLocationS3T>(value);
68 }
69 template <typename DataLocationS3T = Aws::String>
70 GetDataSourceResult& WithDataLocationS3(DataLocationS3T&& value) {
71 SetDataLocationS3(std::forward<DataLocationS3T>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetDataRearrangement() const { return m_dataRearrangement; }
82 template <typename DataRearrangementT = Aws::String>
83 void SetDataRearrangement(DataRearrangementT&& value) {
84 m_dataRearrangementHasBeenSet = true;
85 m_dataRearrangement = std::forward<DataRearrangementT>(value);
86 }
87 template <typename DataRearrangementT = Aws::String>
88 GetDataSourceResult& WithDataRearrangement(DataRearrangementT&& value) {
89 SetDataRearrangement(std::forward<DataRearrangementT>(value));
90 return *this;
91 }
93
95
100 inline const Aws::String& GetCreatedByIamUser() const { return m_createdByIamUser; }
101 template <typename CreatedByIamUserT = Aws::String>
102 void SetCreatedByIamUser(CreatedByIamUserT&& value) {
103 m_createdByIamUserHasBeenSet = true;
104 m_createdByIamUser = std::forward<CreatedByIamUserT>(value);
105 }
106 template <typename CreatedByIamUserT = Aws::String>
107 GetDataSourceResult& WithCreatedByIamUser(CreatedByIamUserT&& value) {
108 SetCreatedByIamUser(std::forward<CreatedByIamUserT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
119 template <typename CreatedAtT = Aws::Utils::DateTime>
120 void SetCreatedAt(CreatedAtT&& value) {
121 m_createdAtHasBeenSet = true;
122 m_createdAt = std::forward<CreatedAtT>(value);
123 }
124 template <typename CreatedAtT = Aws::Utils::DateTime>
125 GetDataSourceResult& WithCreatedAt(CreatedAtT&& value) {
126 SetCreatedAt(std::forward<CreatedAtT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
137 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
138 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
139 m_lastUpdatedAtHasBeenSet = true;
140 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
141 }
142 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
143 GetDataSourceResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
144 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
145 return *this;
146 }
148
150
153 inline long long GetDataSizeInBytes() const { return m_dataSizeInBytes; }
154 inline void SetDataSizeInBytes(long long value) {
155 m_dataSizeInBytesHasBeenSet = true;
156 m_dataSizeInBytes = value;
157 }
158 inline GetDataSourceResult& WithDataSizeInBytes(long long value) {
159 SetDataSizeInBytes(value);
160 return *this;
161 }
163
165
168 inline long long GetNumberOfFiles() const { return m_numberOfFiles; }
169 inline void SetNumberOfFiles(long long value) {
170 m_numberOfFilesHasBeenSet = true;
171 m_numberOfFiles = value;
172 }
173 inline GetDataSourceResult& WithNumberOfFiles(long long value) {
174 SetNumberOfFiles(value);
175 return *this;
176 }
178
180
183 inline const Aws::String& GetName() const { return m_name; }
184 template <typename NameT = Aws::String>
185 void SetName(NameT&& value) {
186 m_nameHasBeenSet = true;
187 m_name = std::forward<NameT>(value);
188 }
189 template <typename NameT = Aws::String>
191 SetName(std::forward<NameT>(value));
192 return *this;
193 }
195
197
208 inline EntityStatus GetStatus() const { return m_status; }
209 inline void SetStatus(EntityStatus value) {
210 m_statusHasBeenSet = true;
211 m_status = value;
212 }
214 SetStatus(value);
215 return *this;
216 }
218
220
224 inline const Aws::String& GetLogUri() const { return m_logUri; }
225 template <typename LogUriT = Aws::String>
226 void SetLogUri(LogUriT&& value) {
227 m_logUriHasBeenSet = true;
228 m_logUri = std::forward<LogUriT>(value);
229 }
230 template <typename LogUriT = Aws::String>
231 GetDataSourceResult& WithLogUri(LogUriT&& value) {
232 SetLogUri(std::forward<LogUriT>(value));
233 return *this;
234 }
236
238
242 inline const Aws::String& GetMessage() const { return m_message; }
243 template <typename MessageT = Aws::String>
244 void SetMessage(MessageT&& value) {
245 m_messageHasBeenSet = true;
246 m_message = std::forward<MessageT>(value);
247 }
248 template <typename MessageT = Aws::String>
249 GetDataSourceResult& WithMessage(MessageT&& value) {
250 SetMessage(std::forward<MessageT>(value));
251 return *this;
252 }
254
256
257 inline const RedshiftMetadata& GetRedshiftMetadata() const { return m_redshiftMetadata; }
258 template <typename RedshiftMetadataT = RedshiftMetadata>
259 void SetRedshiftMetadata(RedshiftMetadataT&& value) {
260 m_redshiftMetadataHasBeenSet = true;
261 m_redshiftMetadata = std::forward<RedshiftMetadataT>(value);
262 }
263 template <typename RedshiftMetadataT = RedshiftMetadata>
264 GetDataSourceResult& WithRedshiftMetadata(RedshiftMetadataT&& value) {
265 SetRedshiftMetadata(std::forward<RedshiftMetadataT>(value));
266 return *this;
267 }
269
271
272 inline const RDSMetadata& GetRDSMetadata() const { return m_rDSMetadata; }
273 template <typename RDSMetadataT = RDSMetadata>
274 void SetRDSMetadata(RDSMetadataT&& value) {
275 m_rDSMetadataHasBeenSet = true;
276 m_rDSMetadata = std::forward<RDSMetadataT>(value);
277 }
278 template <typename RDSMetadataT = RDSMetadata>
279 GetDataSourceResult& WithRDSMetadata(RDSMetadataT&& value) {
280 SetRDSMetadata(std::forward<RDSMetadataT>(value));
281 return *this;
282 }
284
286
287 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
288 template <typename RoleARNT = Aws::String>
289 void SetRoleARN(RoleARNT&& value) {
290 m_roleARNHasBeenSet = true;
291 m_roleARN = std::forward<RoleARNT>(value);
292 }
293 template <typename RoleARNT = Aws::String>
294 GetDataSourceResult& WithRoleARN(RoleARNT&& value) {
295 SetRoleARN(std::forward<RoleARNT>(value));
296 return *this;
297 }
299
301
305 inline bool GetComputeStatistics() const { return m_computeStatistics; }
306 inline void SetComputeStatistics(bool value) {
307 m_computeStatisticsHasBeenSet = true;
308 m_computeStatistics = value;
309 }
312 return *this;
313 }
315
317
324 inline long long GetComputeTime() const { return m_computeTime; }
325 inline void SetComputeTime(long long value) {
326 m_computeTimeHasBeenSet = true;
327 m_computeTime = value;
328 }
329 inline GetDataSourceResult& WithComputeTime(long long value) {
330 SetComputeTime(value);
331 return *this;
332 }
334
336
342 inline const Aws::Utils::DateTime& GetFinishedAt() const { return m_finishedAt; }
343 template <typename FinishedAtT = Aws::Utils::DateTime>
344 void SetFinishedAt(FinishedAtT&& value) {
345 m_finishedAtHasBeenSet = true;
346 m_finishedAt = std::forward<FinishedAtT>(value);
347 }
348 template <typename FinishedAtT = Aws::Utils::DateTime>
349 GetDataSourceResult& WithFinishedAt(FinishedAtT&& value) {
350 SetFinishedAt(std::forward<FinishedAtT>(value));
351 return *this;
352 }
354
356
362 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
363 template <typename StartedAtT = Aws::Utils::DateTime>
364 void SetStartedAt(StartedAtT&& value) {
365 m_startedAtHasBeenSet = true;
366 m_startedAt = std::forward<StartedAtT>(value);
367 }
368 template <typename StartedAtT = Aws::Utils::DateTime>
369 GetDataSourceResult& WithStartedAt(StartedAtT&& value) {
370 SetStartedAt(std::forward<StartedAtT>(value));
371 return *this;
372 }
374
376
380 inline const Aws::String& GetDataSourceSchema() const { return m_dataSourceSchema; }
381 template <typename DataSourceSchemaT = Aws::String>
382 void SetDataSourceSchema(DataSourceSchemaT&& value) {
383 m_dataSourceSchemaHasBeenSet = true;
384 m_dataSourceSchema = std::forward<DataSourceSchemaT>(value);
385 }
386 template <typename DataSourceSchemaT = Aws::String>
387 GetDataSourceResult& WithDataSourceSchema(DataSourceSchemaT&& value) {
388 SetDataSourceSchema(std::forward<DataSourceSchemaT>(value));
389 return *this;
390 }
392
394
395 inline const Aws::String& GetRequestId() const { return m_requestId; }
396 template <typename RequestIdT = Aws::String>
397 void SetRequestId(RequestIdT&& value) {
398 m_requestIdHasBeenSet = true;
399 m_requestId = std::forward<RequestIdT>(value);
400 }
401 template <typename RequestIdT = Aws::String>
402 GetDataSourceResult& WithRequestId(RequestIdT&& value) {
403 SetRequestId(std::forward<RequestIdT>(value));
404 return *this;
405 }
407 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
408
409 private:
410 Aws::String m_dataSourceId;
411
412 Aws::String m_dataLocationS3;
413
414 Aws::String m_dataRearrangement;
415
416 Aws::String m_createdByIamUser;
417
418 Aws::Utils::DateTime m_createdAt{};
419
420 Aws::Utils::DateTime m_lastUpdatedAt{};
421
422 long long m_dataSizeInBytes{0};
423
424 long long m_numberOfFiles{0};
425
426 Aws::String m_name;
427
429
430 Aws::String m_logUri;
431
432 Aws::String m_message;
433
434 RedshiftMetadata m_redshiftMetadata;
435
436 RDSMetadata m_rDSMetadata;
437
438 Aws::String m_roleARN;
439
440 bool m_computeStatistics{false};
441
442 long long m_computeTime{0};
443
444 Aws::Utils::DateTime m_finishedAt{};
445
446 Aws::Utils::DateTime m_startedAt{};
447
448 Aws::String m_dataSourceSchema;
449
450 Aws::String m_requestId;
451 Aws::Http::HttpResponseCode m_HttpResponseCode;
452 bool m_dataSourceIdHasBeenSet = false;
453 bool m_dataLocationS3HasBeenSet = false;
454 bool m_dataRearrangementHasBeenSet = false;
455 bool m_createdByIamUserHasBeenSet = false;
456 bool m_createdAtHasBeenSet = false;
457 bool m_lastUpdatedAtHasBeenSet = false;
458 bool m_dataSizeInBytesHasBeenSet = false;
459 bool m_numberOfFilesHasBeenSet = false;
460 bool m_nameHasBeenSet = false;
461 bool m_statusHasBeenSet = false;
462 bool m_logUriHasBeenSet = false;
463 bool m_messageHasBeenSet = false;
464 bool m_redshiftMetadataHasBeenSet = false;
465 bool m_rDSMetadataHasBeenSet = false;
466 bool m_roleARNHasBeenSet = false;
467 bool m_computeStatisticsHasBeenSet = false;
468 bool m_computeTimeHasBeenSet = false;
469 bool m_finishedAtHasBeenSet = false;
470 bool m_startedAtHasBeenSet = false;
471 bool m_dataSourceSchemaHasBeenSet = false;
472 bool m_requestIdHasBeenSet = false;
473};
474
475} // namespace Model
476} // namespace MachineLearning
477} // namespace Aws
GetDataSourceResult & WithComputeTime(long long value)
AWS_MACHINELEARNING_API GetDataSourceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDataSourceResult & WithCreatedAt(CreatedAtT &&value)
GetDataSourceResult & WithRDSMetadata(RDSMetadataT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
const Aws::Utils::DateTime & GetCreatedAt() const
GetDataSourceResult & WithCreatedByIamUser(CreatedByIamUserT &&value)
GetDataSourceResult & WithMessage(MessageT &&value)
GetDataSourceResult & WithDataRearrangement(DataRearrangementT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetDataSourceResult & WithDataSourceSchema(DataSourceSchemaT &&value)
const Aws::Utils::DateTime & GetFinishedAt() const
const Aws::Utils::DateTime & GetLastUpdatedAt() const
GetDataSourceResult & WithNumberOfFiles(long long value)
GetDataSourceResult & WithDataLocationS3(DataLocationS3T &&value)
GetDataSourceResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
AWS_MACHINELEARNING_API GetDataSourceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDataSourceResult & WithFinishedAt(FinishedAtT &&value)
AWS_MACHINELEARNING_API GetDataSourceResult()=default
GetDataSourceResult & WithStartedAt(StartedAtT &&value)
GetDataSourceResult & WithRedshiftMetadata(RedshiftMetadataT &&value)
GetDataSourceResult & WithDataSourceId(DataSourceIdT &&value)
GetDataSourceResult & WithRoleARN(RoleARNT &&value)
const RedshiftMetadata & GetRedshiftMetadata() const
GetDataSourceResult & WithDataSizeInBytes(long long value)
GetDataSourceResult & WithLogUri(LogUriT &&value)
void SetDataRearrangement(DataRearrangementT &&value)
GetDataSourceResult & WithName(NameT &&value)
GetDataSourceResult & WithComputeStatistics(bool value)
GetDataSourceResult & WithStatus(EntityStatus value)
GetDataSourceResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue