AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DataSource.h
1
6#pragma once
7#include <aws/machinelearning/MachineLearning_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/machinelearning/model/EntityStatus.h>
11#include <aws/machinelearning/model/RedshiftMetadata.h>
12#include <aws/machinelearning/model/RDSMetadata.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace MachineLearning
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_MACHINELEARNING_API DataSource() = default;
41 AWS_MACHINELEARNING_API DataSource(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MACHINELEARNING_API DataSource& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_MACHINELEARNING_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
51 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
52 template<typename DataSourceIdT = Aws::String>
53 void SetDataSourceId(DataSourceIdT&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::forward<DataSourceIdT>(value); }
54 template<typename DataSourceIdT = Aws::String>
55 DataSource& WithDataSourceId(DataSourceIdT&& value) { SetDataSourceId(std::forward<DataSourceIdT>(value)); return *this;}
57
59
63 inline const Aws::String& GetDataLocationS3() const { return m_dataLocationS3; }
64 inline bool DataLocationS3HasBeenSet() const { return m_dataLocationS3HasBeenSet; }
65 template<typename DataLocationS3T = Aws::String>
66 void SetDataLocationS3(DataLocationS3T&& value) { m_dataLocationS3HasBeenSet = true; m_dataLocationS3 = std::forward<DataLocationS3T>(value); }
67 template<typename DataLocationS3T = Aws::String>
68 DataSource& WithDataLocationS3(DataLocationS3T&& value) { SetDataLocationS3(std::forward<DataLocationS3T>(value)); return *this;}
70
72
76 inline const Aws::String& GetDataRearrangement() const { return m_dataRearrangement; }
77 inline bool DataRearrangementHasBeenSet() const { return m_dataRearrangementHasBeenSet; }
78 template<typename DataRearrangementT = Aws::String>
79 void SetDataRearrangement(DataRearrangementT&& value) { m_dataRearrangementHasBeenSet = true; m_dataRearrangement = std::forward<DataRearrangementT>(value); }
80 template<typename DataRearrangementT = Aws::String>
81 DataSource& WithDataRearrangement(DataRearrangementT&& value) { SetDataRearrangement(std::forward<DataRearrangementT>(value)); return *this;}
83
85
90 inline const Aws::String& GetCreatedByIamUser() const { return m_createdByIamUser; }
91 inline bool CreatedByIamUserHasBeenSet() const { return m_createdByIamUserHasBeenSet; }
92 template<typename CreatedByIamUserT = Aws::String>
93 void SetCreatedByIamUser(CreatedByIamUserT&& value) { m_createdByIamUserHasBeenSet = true; m_createdByIamUser = std::forward<CreatedByIamUserT>(value); }
94 template<typename CreatedByIamUserT = Aws::String>
95 DataSource& WithCreatedByIamUser(CreatedByIamUserT&& value) { SetCreatedByIamUser(std::forward<CreatedByIamUserT>(value)); return *this;}
97
99
103 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
104 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
105 template<typename CreatedAtT = Aws::Utils::DateTime>
106 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
107 template<typename CreatedAtT = Aws::Utils::DateTime>
108 DataSource& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
110
112
116 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
117 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
118 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
119 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
120 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
121 DataSource& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
123
125
129 inline long long GetDataSizeInBytes() const { return m_dataSizeInBytes; }
130 inline bool DataSizeInBytesHasBeenSet() const { return m_dataSizeInBytesHasBeenSet; }
131 inline void SetDataSizeInBytes(long long value) { m_dataSizeInBytesHasBeenSet = true; m_dataSizeInBytes = value; }
132 inline DataSource& WithDataSizeInBytes(long long value) { SetDataSizeInBytes(value); return *this;}
134
136
139 inline long long GetNumberOfFiles() const { return m_numberOfFiles; }
140 inline bool NumberOfFilesHasBeenSet() const { return m_numberOfFilesHasBeenSet; }
141 inline void SetNumberOfFiles(long long value) { m_numberOfFilesHasBeenSet = true; m_numberOfFiles = value; }
142 inline DataSource& WithNumberOfFiles(long long value) { SetNumberOfFiles(value); return *this;}
144
146
149 inline const Aws::String& GetName() const { return m_name; }
150 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
151 template<typename NameT = Aws::String>
152 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
153 template<typename NameT = Aws::String>
154 DataSource& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
156
158
168 inline EntityStatus GetStatus() const { return m_status; }
169 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
170 inline void SetStatus(EntityStatus value) { m_statusHasBeenSet = true; m_status = value; }
171 inline DataSource& WithStatus(EntityStatus value) { SetStatus(value); return *this;}
173
175
179 inline const Aws::String& GetMessage() const { return m_message; }
180 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
181 template<typename MessageT = Aws::String>
182 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
183 template<typename MessageT = Aws::String>
184 DataSource& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
186
188
189 inline const RedshiftMetadata& GetRedshiftMetadata() const { return m_redshiftMetadata; }
190 inline bool RedshiftMetadataHasBeenSet() const { return m_redshiftMetadataHasBeenSet; }
191 template<typename RedshiftMetadataT = RedshiftMetadata>
192 void SetRedshiftMetadata(RedshiftMetadataT&& value) { m_redshiftMetadataHasBeenSet = true; m_redshiftMetadata = std::forward<RedshiftMetadataT>(value); }
193 template<typename RedshiftMetadataT = RedshiftMetadata>
194 DataSource& WithRedshiftMetadata(RedshiftMetadataT&& value) { SetRedshiftMetadata(std::forward<RedshiftMetadataT>(value)); return *this;}
196
198
199 inline const RDSMetadata& GetRDSMetadata() const { return m_rDSMetadata; }
200 inline bool RDSMetadataHasBeenSet() const { return m_rDSMetadataHasBeenSet; }
201 template<typename RDSMetadataT = RDSMetadata>
202 void SetRDSMetadata(RDSMetadataT&& value) { m_rDSMetadataHasBeenSet = true; m_rDSMetadata = std::forward<RDSMetadataT>(value); }
203 template<typename RDSMetadataT = RDSMetadata>
204 DataSource& WithRDSMetadata(RDSMetadataT&& value) { SetRDSMetadata(std::forward<RDSMetadataT>(value)); return *this;}
206
208
209 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
210 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
211 template<typename RoleARNT = Aws::String>
212 void SetRoleARN(RoleARNT&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::forward<RoleARNT>(value); }
213 template<typename RoleARNT = Aws::String>
214 DataSource& WithRoleARN(RoleARNT&& value) { SetRoleARN(std::forward<RoleARNT>(value)); return *this;}
216
218
222 inline bool GetComputeStatistics() const { return m_computeStatistics; }
223 inline bool ComputeStatisticsHasBeenSet() const { return m_computeStatisticsHasBeenSet; }
224 inline void SetComputeStatistics(bool value) { m_computeStatisticsHasBeenSet = true; m_computeStatistics = value; }
225 inline DataSource& WithComputeStatistics(bool value) { SetComputeStatistics(value); return *this;}
227
229
230 inline long long GetComputeTime() const { return m_computeTime; }
231 inline bool ComputeTimeHasBeenSet() const { return m_computeTimeHasBeenSet; }
232 inline void SetComputeTime(long long value) { m_computeTimeHasBeenSet = true; m_computeTime = value; }
233 inline DataSource& WithComputeTime(long long value) { SetComputeTime(value); return *this;}
235
237
238 inline const Aws::Utils::DateTime& GetFinishedAt() const { return m_finishedAt; }
239 inline bool FinishedAtHasBeenSet() const { return m_finishedAtHasBeenSet; }
240 template<typename FinishedAtT = Aws::Utils::DateTime>
241 void SetFinishedAt(FinishedAtT&& value) { m_finishedAtHasBeenSet = true; m_finishedAt = std::forward<FinishedAtT>(value); }
242 template<typename FinishedAtT = Aws::Utils::DateTime>
243 DataSource& WithFinishedAt(FinishedAtT&& value) { SetFinishedAt(std::forward<FinishedAtT>(value)); return *this;}
245
247
248 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
249 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
250 template<typename StartedAtT = Aws::Utils::DateTime>
251 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::forward<StartedAtT>(value); }
252 template<typename StartedAtT = Aws::Utils::DateTime>
253 DataSource& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
255 private:
256
257 Aws::String m_dataSourceId;
258 bool m_dataSourceIdHasBeenSet = false;
259
260 Aws::String m_dataLocationS3;
261 bool m_dataLocationS3HasBeenSet = false;
262
263 Aws::String m_dataRearrangement;
264 bool m_dataRearrangementHasBeenSet = false;
265
266 Aws::String m_createdByIamUser;
267 bool m_createdByIamUserHasBeenSet = false;
268
269 Aws::Utils::DateTime m_createdAt{};
270 bool m_createdAtHasBeenSet = false;
271
272 Aws::Utils::DateTime m_lastUpdatedAt{};
273 bool m_lastUpdatedAtHasBeenSet = false;
274
275 long long m_dataSizeInBytes{0};
276 bool m_dataSizeInBytesHasBeenSet = false;
277
278 long long m_numberOfFiles{0};
279 bool m_numberOfFilesHasBeenSet = false;
280
281 Aws::String m_name;
282 bool m_nameHasBeenSet = false;
283
285 bool m_statusHasBeenSet = false;
286
287 Aws::String m_message;
288 bool m_messageHasBeenSet = false;
289
290 RedshiftMetadata m_redshiftMetadata;
291 bool m_redshiftMetadataHasBeenSet = false;
292
293 RDSMetadata m_rDSMetadata;
294 bool m_rDSMetadataHasBeenSet = false;
295
296 Aws::String m_roleARN;
297 bool m_roleARNHasBeenSet = false;
298
299 bool m_computeStatistics{false};
300 bool m_computeStatisticsHasBeenSet = false;
301
302 long long m_computeTime{0};
303 bool m_computeTimeHasBeenSet = false;
304
305 Aws::Utils::DateTime m_finishedAt{};
306 bool m_finishedAtHasBeenSet = false;
307
308 Aws::Utils::DateTime m_startedAt{};
309 bool m_startedAtHasBeenSet = false;
310 };
311
312} // namespace Model
313} // namespace MachineLearning
314} // namespace Aws
DataSource & WithCreatedAt(CreatedAtT &&value)
Definition DataSource.h:108
const Aws::Utils::DateTime & GetFinishedAt() const
Definition DataSource.h:238
const Aws::Utils::DateTime & GetStartedAt() const
Definition DataSource.h:248
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition DataSource.h:116
AWS_MACHINELEARNING_API DataSource & operator=(Aws::Utils::Json::JsonView jsonValue)
DataSource & WithName(NameT &&value)
Definition DataSource.h:154
void SetStartedAt(StartedAtT &&value)
Definition DataSource.h:251
void SetDataSourceId(DataSourceIdT &&value)
Definition DataSource.h:53
const RedshiftMetadata & GetRedshiftMetadata() const
Definition DataSource.h:189
void SetRedshiftMetadata(RedshiftMetadataT &&value)
Definition DataSource.h:192
DataSource & WithMessage(MessageT &&value)
Definition DataSource.h:184
void SetFinishedAt(FinishedAtT &&value)
Definition DataSource.h:241
void SetDataRearrangement(DataRearrangementT &&value)
Definition DataSource.h:79
DataSource & WithDataSourceId(DataSourceIdT &&value)
Definition DataSource.h:55
void SetLastUpdatedAt(LastUpdatedAtT &&value)
Definition DataSource.h:119
void SetNumberOfFiles(long long value)
Definition DataSource.h:141
DataSource & WithRedshiftMetadata(RedshiftMetadataT &&value)
Definition DataSource.h:194
DataSource & WithComputeStatistics(bool value)
Definition DataSource.h:225
void SetDataLocationS3(DataLocationS3T &&value)
Definition DataSource.h:66
DataSource & WithDataLocationS3(DataLocationS3T &&value)
Definition DataSource.h:68
const Aws::Utils::DateTime & GetCreatedAt() const
Definition DataSource.h:103
const Aws::String & GetDataSourceId() const
Definition DataSource.h:50
DataSource & WithLastUpdatedAt(LastUpdatedAtT &&value)
Definition DataSource.h:121
DataSource & WithStatus(EntityStatus value)
Definition DataSource.h:171
DataSource & WithStartedAt(StartedAtT &&value)
Definition DataSource.h:253
DataSource & WithRoleARN(RoleARNT &&value)
Definition DataSource.h:214
const RDSMetadata & GetRDSMetadata() const
Definition DataSource.h:199
const Aws::String & GetName() const
Definition DataSource.h:149
DataSource & WithDataSizeInBytes(long long value)
Definition DataSource.h:132
const Aws::String & GetMessage() const
Definition DataSource.h:179
DataSource & WithFinishedAt(FinishedAtT &&value)
Definition DataSource.h:243
const Aws::String & GetDataLocationS3() const
Definition DataSource.h:63
DataSource & WithDataRearrangement(DataRearrangementT &&value)
Definition DataSource.h:81
void SetCreatedAt(CreatedAtT &&value)
Definition DataSource.h:106
const Aws::String & GetCreatedByIamUser() const
Definition DataSource.h:90
AWS_MACHINELEARNING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MACHINELEARNING_API DataSource(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDataRearrangement() const
Definition DataSource.h:76
const Aws::String & GetRoleARN() const
Definition DataSource.h:209
void SetCreatedByIamUser(CreatedByIamUserT &&value)
Definition DataSource.h:93
DataSource & WithComputeTime(long long value)
Definition DataSource.h:233
void SetStatus(EntityStatus value)
Definition DataSource.h:170
void SetDataSizeInBytes(long long value)
Definition DataSource.h:131
AWS_MACHINELEARNING_API DataSource()=default
DataSource & WithCreatedByIamUser(CreatedByIamUserT &&value)
Definition DataSource.h:95
void SetRDSMetadata(RDSMetadataT &&value)
Definition DataSource.h:202
DataSource & WithRDSMetadata(RDSMetadataT &&value)
Definition DataSource.h:204
DataSource & WithNumberOfFiles(long long value)
Definition DataSource.h:142
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue