AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetDataSourceResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/machinelearning/MachineLearning_EXPORTS.h>
10#include <aws/machinelearning/model/EntityStatus.h>
11#include <aws/machinelearning/model/RDSMetadata.h>
12#include <aws/machinelearning/model/RedshiftMetadata.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace MachineLearning {
26namespace Model {
34 public:
35 AWS_MACHINELEARNING_API GetDataSourceResult() = default;
38
40
44 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
45 template <typename DataSourceIdT = Aws::String>
46 void SetDataSourceId(DataSourceIdT&& value) {
47 m_dataSourceIdHasBeenSet = true;
48 m_dataSourceId = std::forward<DataSourceIdT>(value);
49 }
50 template <typename DataSourceIdT = Aws::String>
51 GetDataSourceResult& WithDataSourceId(DataSourceIdT&& value) {
52 SetDataSourceId(std::forward<DataSourceIdT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetDataLocationS3() const { return m_dataLocationS3; }
63 template <typename DataLocationS3T = Aws::String>
64 void SetDataLocationS3(DataLocationS3T&& value) {
65 m_dataLocationS3HasBeenSet = true;
66 m_dataLocationS3 = std::forward<DataLocationS3T>(value);
67 }
68 template <typename DataLocationS3T = Aws::String>
69 GetDataSourceResult& WithDataLocationS3(DataLocationS3T&& value) {
70 SetDataLocationS3(std::forward<DataLocationS3T>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetDataRearrangement() const { return m_dataRearrangement; }
81 template <typename DataRearrangementT = Aws::String>
82 void SetDataRearrangement(DataRearrangementT&& value) {
83 m_dataRearrangementHasBeenSet = true;
84 m_dataRearrangement = std::forward<DataRearrangementT>(value);
85 }
86 template <typename DataRearrangementT = Aws::String>
87 GetDataSourceResult& WithDataRearrangement(DataRearrangementT&& value) {
88 SetDataRearrangement(std::forward<DataRearrangementT>(value));
89 return *this;
90 }
92
94
99 inline const Aws::String& GetCreatedByIamUser() const { return m_createdByIamUser; }
100 template <typename CreatedByIamUserT = Aws::String>
101 void SetCreatedByIamUser(CreatedByIamUserT&& value) {
102 m_createdByIamUserHasBeenSet = true;
103 m_createdByIamUser = std::forward<CreatedByIamUserT>(value);
104 }
105 template <typename CreatedByIamUserT = Aws::String>
106 GetDataSourceResult& WithCreatedByIamUser(CreatedByIamUserT&& value) {
107 SetCreatedByIamUser(std::forward<CreatedByIamUserT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
118 template <typename CreatedAtT = Aws::Utils::DateTime>
119 void SetCreatedAt(CreatedAtT&& value) {
120 m_createdAtHasBeenSet = true;
121 m_createdAt = std::forward<CreatedAtT>(value);
122 }
123 template <typename CreatedAtT = Aws::Utils::DateTime>
124 GetDataSourceResult& WithCreatedAt(CreatedAtT&& value) {
125 SetCreatedAt(std::forward<CreatedAtT>(value));
126 return *this;
127 }
129
131
135 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
136 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
137 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
138 m_lastUpdatedAtHasBeenSet = true;
139 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
140 }
141 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
142 GetDataSourceResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
143 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
144 return *this;
145 }
147
149
152 inline long long GetDataSizeInBytes() const { return m_dataSizeInBytes; }
153 inline void SetDataSizeInBytes(long long value) {
154 m_dataSizeInBytesHasBeenSet = true;
155 m_dataSizeInBytes = value;
156 }
157 inline GetDataSourceResult& WithDataSizeInBytes(long long value) {
158 SetDataSizeInBytes(value);
159 return *this;
160 }
162
164
167 inline long long GetNumberOfFiles() const { return m_numberOfFiles; }
168 inline void SetNumberOfFiles(long long value) {
169 m_numberOfFilesHasBeenSet = true;
170 m_numberOfFiles = value;
171 }
172 inline GetDataSourceResult& WithNumberOfFiles(long long value) {
173 SetNumberOfFiles(value);
174 return *this;
175 }
177
179
182 inline const Aws::String& GetName() const { return m_name; }
183 template <typename NameT = Aws::String>
184 void SetName(NameT&& value) {
185 m_nameHasBeenSet = true;
186 m_name = std::forward<NameT>(value);
187 }
188 template <typename NameT = Aws::String>
190 SetName(std::forward<NameT>(value));
191 return *this;
192 }
194
196
207 inline EntityStatus GetStatus() const { return m_status; }
208 inline void SetStatus(EntityStatus value) {
209 m_statusHasBeenSet = true;
210 m_status = value;
211 }
213 SetStatus(value);
214 return *this;
215 }
217
219
223 inline const Aws::String& GetLogUri() const { return m_logUri; }
224 template <typename LogUriT = Aws::String>
225 void SetLogUri(LogUriT&& value) {
226 m_logUriHasBeenSet = true;
227 m_logUri = std::forward<LogUriT>(value);
228 }
229 template <typename LogUriT = Aws::String>
230 GetDataSourceResult& WithLogUri(LogUriT&& value) {
231 SetLogUri(std::forward<LogUriT>(value));
232 return *this;
233 }
235
237
241 inline const Aws::String& GetMessage() const { return m_message; }
242 template <typename MessageT = Aws::String>
243 void SetMessage(MessageT&& value) {
244 m_messageHasBeenSet = true;
245 m_message = std::forward<MessageT>(value);
246 }
247 template <typename MessageT = Aws::String>
248 GetDataSourceResult& WithMessage(MessageT&& value) {
249 SetMessage(std::forward<MessageT>(value));
250 return *this;
251 }
253
255
256 inline const RedshiftMetadata& GetRedshiftMetadata() const { return m_redshiftMetadata; }
257 template <typename RedshiftMetadataT = RedshiftMetadata>
258 void SetRedshiftMetadata(RedshiftMetadataT&& value) {
259 m_redshiftMetadataHasBeenSet = true;
260 m_redshiftMetadata = std::forward<RedshiftMetadataT>(value);
261 }
262 template <typename RedshiftMetadataT = RedshiftMetadata>
263 GetDataSourceResult& WithRedshiftMetadata(RedshiftMetadataT&& value) {
264 SetRedshiftMetadata(std::forward<RedshiftMetadataT>(value));
265 return *this;
266 }
268
270
271 inline const RDSMetadata& GetRDSMetadata() const { return m_rDSMetadata; }
272 template <typename RDSMetadataT = RDSMetadata>
273 void SetRDSMetadata(RDSMetadataT&& value) {
274 m_rDSMetadataHasBeenSet = true;
275 m_rDSMetadata = std::forward<RDSMetadataT>(value);
276 }
277 template <typename RDSMetadataT = RDSMetadata>
278 GetDataSourceResult& WithRDSMetadata(RDSMetadataT&& value) {
279 SetRDSMetadata(std::forward<RDSMetadataT>(value));
280 return *this;
281 }
283
285
286 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
287 template <typename RoleARNT = Aws::String>
288 void SetRoleARN(RoleARNT&& value) {
289 m_roleARNHasBeenSet = true;
290 m_roleARN = std::forward<RoleARNT>(value);
291 }
292 template <typename RoleARNT = Aws::String>
293 GetDataSourceResult& WithRoleARN(RoleARNT&& value) {
294 SetRoleARN(std::forward<RoleARNT>(value));
295 return *this;
296 }
298
300
304 inline bool GetComputeStatistics() const { return m_computeStatistics; }
305 inline void SetComputeStatistics(bool value) {
306 m_computeStatisticsHasBeenSet = true;
307 m_computeStatistics = value;
308 }
311 return *this;
312 }
314
316
323 inline long long GetComputeTime() const { return m_computeTime; }
324 inline void SetComputeTime(long long value) {
325 m_computeTimeHasBeenSet = true;
326 m_computeTime = value;
327 }
328 inline GetDataSourceResult& WithComputeTime(long long value) {
329 SetComputeTime(value);
330 return *this;
331 }
333
335
341 inline const Aws::Utils::DateTime& GetFinishedAt() const { return m_finishedAt; }
342 template <typename FinishedAtT = Aws::Utils::DateTime>
343 void SetFinishedAt(FinishedAtT&& value) {
344 m_finishedAtHasBeenSet = true;
345 m_finishedAt = std::forward<FinishedAtT>(value);
346 }
347 template <typename FinishedAtT = Aws::Utils::DateTime>
348 GetDataSourceResult& WithFinishedAt(FinishedAtT&& value) {
349 SetFinishedAt(std::forward<FinishedAtT>(value));
350 return *this;
351 }
353
355
361 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
362 template <typename StartedAtT = Aws::Utils::DateTime>
363 void SetStartedAt(StartedAtT&& value) {
364 m_startedAtHasBeenSet = true;
365 m_startedAt = std::forward<StartedAtT>(value);
366 }
367 template <typename StartedAtT = Aws::Utils::DateTime>
368 GetDataSourceResult& WithStartedAt(StartedAtT&& value) {
369 SetStartedAt(std::forward<StartedAtT>(value));
370 return *this;
371 }
373
375
379 inline const Aws::String& GetDataSourceSchema() const { return m_dataSourceSchema; }
380 template <typename DataSourceSchemaT = Aws::String>
381 void SetDataSourceSchema(DataSourceSchemaT&& value) {
382 m_dataSourceSchemaHasBeenSet = true;
383 m_dataSourceSchema = std::forward<DataSourceSchemaT>(value);
384 }
385 template <typename DataSourceSchemaT = Aws::String>
386 GetDataSourceResult& WithDataSourceSchema(DataSourceSchemaT&& value) {
387 SetDataSourceSchema(std::forward<DataSourceSchemaT>(value));
388 return *this;
389 }
391
393
394 inline const Aws::String& GetRequestId() const { return m_requestId; }
395 template <typename RequestIdT = Aws::String>
396 void SetRequestId(RequestIdT&& value) {
397 m_requestIdHasBeenSet = true;
398 m_requestId = std::forward<RequestIdT>(value);
399 }
400 template <typename RequestIdT = Aws::String>
401 GetDataSourceResult& WithRequestId(RequestIdT&& value) {
402 SetRequestId(std::forward<RequestIdT>(value));
403 return *this;
404 }
406 private:
407 Aws::String m_dataSourceId;
408
409 Aws::String m_dataLocationS3;
410
411 Aws::String m_dataRearrangement;
412
413 Aws::String m_createdByIamUser;
414
415 Aws::Utils::DateTime m_createdAt{};
416
417 Aws::Utils::DateTime m_lastUpdatedAt{};
418
419 long long m_dataSizeInBytes{0};
420
421 long long m_numberOfFiles{0};
422
423 Aws::String m_name;
424
426
427 Aws::String m_logUri;
428
429 Aws::String m_message;
430
431 RedshiftMetadata m_redshiftMetadata;
432
433 RDSMetadata m_rDSMetadata;
434
435 Aws::String m_roleARN;
436
437 bool m_computeStatistics{false};
438
439 long long m_computeTime{0};
440
441 Aws::Utils::DateTime m_finishedAt{};
442
443 Aws::Utils::DateTime m_startedAt{};
444
445 Aws::String m_dataSourceSchema;
446
447 Aws::String m_requestId;
448 bool m_dataSourceIdHasBeenSet = false;
449 bool m_dataLocationS3HasBeenSet = false;
450 bool m_dataRearrangementHasBeenSet = false;
451 bool m_createdByIamUserHasBeenSet = false;
452 bool m_createdAtHasBeenSet = false;
453 bool m_lastUpdatedAtHasBeenSet = false;
454 bool m_dataSizeInBytesHasBeenSet = false;
455 bool m_numberOfFilesHasBeenSet = false;
456 bool m_nameHasBeenSet = false;
457 bool m_statusHasBeenSet = false;
458 bool m_logUriHasBeenSet = false;
459 bool m_messageHasBeenSet = false;
460 bool m_redshiftMetadataHasBeenSet = false;
461 bool m_rDSMetadataHasBeenSet = false;
462 bool m_roleARNHasBeenSet = false;
463 bool m_computeStatisticsHasBeenSet = false;
464 bool m_computeTimeHasBeenSet = false;
465 bool m_finishedAtHasBeenSet = false;
466 bool m_startedAtHasBeenSet = false;
467 bool m_dataSourceSchemaHasBeenSet = false;
468 bool m_requestIdHasBeenSet = false;
469};
470
471} // namespace Model
472} // namespace MachineLearning
473} // 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)
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