AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDataSourceId(const Aws::String& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = value; }
53 inline void SetDataSourceId(Aws::String&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::move(value); }
54 inline void SetDataSourceId(const char* value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId.assign(value); }
55 inline DataSource& WithDataSourceId(const Aws::String& value) { SetDataSourceId(value); return *this;}
56 inline DataSource& WithDataSourceId(Aws::String&& value) { SetDataSourceId(std::move(value)); return *this;}
57 inline DataSource& WithDataSourceId(const char* value) { SetDataSourceId(value); return *this;}
59
61
65 inline const Aws::String& GetDataLocationS3() const{ return m_dataLocationS3; }
66 inline bool DataLocationS3HasBeenSet() const { return m_dataLocationS3HasBeenSet; }
67 inline void SetDataLocationS3(const Aws::String& value) { m_dataLocationS3HasBeenSet = true; m_dataLocationS3 = value; }
68 inline void SetDataLocationS3(Aws::String&& value) { m_dataLocationS3HasBeenSet = true; m_dataLocationS3 = std::move(value); }
69 inline void SetDataLocationS3(const char* value) { m_dataLocationS3HasBeenSet = true; m_dataLocationS3.assign(value); }
70 inline DataSource& WithDataLocationS3(const Aws::String& value) { SetDataLocationS3(value); return *this;}
71 inline DataSource& WithDataLocationS3(Aws::String&& value) { SetDataLocationS3(std::move(value)); return *this;}
72 inline DataSource& WithDataLocationS3(const char* value) { SetDataLocationS3(value); return *this;}
74
76
80 inline const Aws::String& GetDataRearrangement() const{ return m_dataRearrangement; }
81 inline bool DataRearrangementHasBeenSet() const { return m_dataRearrangementHasBeenSet; }
82 inline void SetDataRearrangement(const Aws::String& value) { m_dataRearrangementHasBeenSet = true; m_dataRearrangement = value; }
83 inline void SetDataRearrangement(Aws::String&& value) { m_dataRearrangementHasBeenSet = true; m_dataRearrangement = std::move(value); }
84 inline void SetDataRearrangement(const char* value) { m_dataRearrangementHasBeenSet = true; m_dataRearrangement.assign(value); }
85 inline DataSource& WithDataRearrangement(const Aws::String& value) { SetDataRearrangement(value); return *this;}
86 inline DataSource& WithDataRearrangement(Aws::String&& value) { SetDataRearrangement(std::move(value)); return *this;}
87 inline DataSource& WithDataRearrangement(const char* value) { SetDataRearrangement(value); return *this;}
89
91
96 inline const Aws::String& GetCreatedByIamUser() const{ return m_createdByIamUser; }
97 inline bool CreatedByIamUserHasBeenSet() const { return m_createdByIamUserHasBeenSet; }
98 inline void SetCreatedByIamUser(const Aws::String& value) { m_createdByIamUserHasBeenSet = true; m_createdByIamUser = value; }
99 inline void SetCreatedByIamUser(Aws::String&& value) { m_createdByIamUserHasBeenSet = true; m_createdByIamUser = std::move(value); }
100 inline void SetCreatedByIamUser(const char* value) { m_createdByIamUserHasBeenSet = true; m_createdByIamUser.assign(value); }
101 inline DataSource& WithCreatedByIamUser(const Aws::String& value) { SetCreatedByIamUser(value); return *this;}
102 inline DataSource& WithCreatedByIamUser(Aws::String&& value) { SetCreatedByIamUser(std::move(value)); return *this;}
103 inline DataSource& WithCreatedByIamUser(const char* value) { SetCreatedByIamUser(value); return *this;}
105
107
111 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
112 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
113 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
114 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
115 inline DataSource& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
116 inline DataSource& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
118
120
124 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
125 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
126 inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
127 inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
128 inline DataSource& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
129 inline DataSource& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
131
133
137 inline long long GetDataSizeInBytes() const{ return m_dataSizeInBytes; }
138 inline bool DataSizeInBytesHasBeenSet() const { return m_dataSizeInBytesHasBeenSet; }
139 inline void SetDataSizeInBytes(long long value) { m_dataSizeInBytesHasBeenSet = true; m_dataSizeInBytes = value; }
140 inline DataSource& WithDataSizeInBytes(long long value) { SetDataSizeInBytes(value); return *this;}
142
144
147 inline long long GetNumberOfFiles() const{ return m_numberOfFiles; }
148 inline bool NumberOfFilesHasBeenSet() const { return m_numberOfFilesHasBeenSet; }
149 inline void SetNumberOfFiles(long long value) { m_numberOfFilesHasBeenSet = true; m_numberOfFiles = value; }
150 inline DataSource& WithNumberOfFiles(long long value) { SetNumberOfFiles(value); return *this;}
152
154
157 inline const Aws::String& GetName() const{ return m_name; }
158 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
159 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
160 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
161 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
162 inline DataSource& WithName(const Aws::String& value) { SetName(value); return *this;}
163 inline DataSource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
164 inline DataSource& WithName(const char* value) { SetName(value); return *this;}
166
168
178 inline const EntityStatus& GetStatus() const{ return m_status; }
179 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
180 inline void SetStatus(const EntityStatus& value) { m_statusHasBeenSet = true; m_status = value; }
181 inline void SetStatus(EntityStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
182 inline DataSource& WithStatus(const EntityStatus& value) { SetStatus(value); return *this;}
183 inline DataSource& WithStatus(EntityStatus&& value) { SetStatus(std::move(value)); return *this;}
185
187
191 inline const Aws::String& GetMessage() const{ return m_message; }
192 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
193 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
194 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
195 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
196 inline DataSource& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
197 inline DataSource& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
198 inline DataSource& WithMessage(const char* value) { SetMessage(value); return *this;}
200
202
203 inline const RedshiftMetadata& GetRedshiftMetadata() const{ return m_redshiftMetadata; }
204 inline bool RedshiftMetadataHasBeenSet() const { return m_redshiftMetadataHasBeenSet; }
205 inline void SetRedshiftMetadata(const RedshiftMetadata& value) { m_redshiftMetadataHasBeenSet = true; m_redshiftMetadata = value; }
206 inline void SetRedshiftMetadata(RedshiftMetadata&& value) { m_redshiftMetadataHasBeenSet = true; m_redshiftMetadata = std::move(value); }
207 inline DataSource& WithRedshiftMetadata(const RedshiftMetadata& value) { SetRedshiftMetadata(value); return *this;}
208 inline DataSource& WithRedshiftMetadata(RedshiftMetadata&& value) { SetRedshiftMetadata(std::move(value)); return *this;}
210
212
213 inline const RDSMetadata& GetRDSMetadata() const{ return m_rDSMetadata; }
214 inline bool RDSMetadataHasBeenSet() const { return m_rDSMetadataHasBeenSet; }
215 inline void SetRDSMetadata(const RDSMetadata& value) { m_rDSMetadataHasBeenSet = true; m_rDSMetadata = value; }
216 inline void SetRDSMetadata(RDSMetadata&& value) { m_rDSMetadataHasBeenSet = true; m_rDSMetadata = std::move(value); }
217 inline DataSource& WithRDSMetadata(const RDSMetadata& value) { SetRDSMetadata(value); return *this;}
218 inline DataSource& WithRDSMetadata(RDSMetadata&& value) { SetRDSMetadata(std::move(value)); return *this;}
220
222
223 inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
224 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
225 inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
226 inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::move(value); }
227 inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
228 inline DataSource& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
229 inline DataSource& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;}
230 inline DataSource& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
232
234
238 inline bool GetComputeStatistics() const{ return m_computeStatistics; }
239 inline bool ComputeStatisticsHasBeenSet() const { return m_computeStatisticsHasBeenSet; }
240 inline void SetComputeStatistics(bool value) { m_computeStatisticsHasBeenSet = true; m_computeStatistics = value; }
241 inline DataSource& WithComputeStatistics(bool value) { SetComputeStatistics(value); return *this;}
243
245
246 inline long long GetComputeTime() const{ return m_computeTime; }
247 inline bool ComputeTimeHasBeenSet() const { return m_computeTimeHasBeenSet; }
248 inline void SetComputeTime(long long value) { m_computeTimeHasBeenSet = true; m_computeTime = value; }
249 inline DataSource& WithComputeTime(long long value) { SetComputeTime(value); return *this;}
251
253
254 inline const Aws::Utils::DateTime& GetFinishedAt() const{ return m_finishedAt; }
255 inline bool FinishedAtHasBeenSet() const { return m_finishedAtHasBeenSet; }
256 inline void SetFinishedAt(const Aws::Utils::DateTime& value) { m_finishedAtHasBeenSet = true; m_finishedAt = value; }
257 inline void SetFinishedAt(Aws::Utils::DateTime&& value) { m_finishedAtHasBeenSet = true; m_finishedAt = std::move(value); }
258 inline DataSource& WithFinishedAt(const Aws::Utils::DateTime& value) { SetFinishedAt(value); return *this;}
259 inline DataSource& WithFinishedAt(Aws::Utils::DateTime&& value) { SetFinishedAt(std::move(value)); return *this;}
261
263
264 inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
265 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
266 inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
267 inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); }
268 inline DataSource& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
269 inline DataSource& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
271 private:
272
273 Aws::String m_dataSourceId;
274 bool m_dataSourceIdHasBeenSet = false;
275
276 Aws::String m_dataLocationS3;
277 bool m_dataLocationS3HasBeenSet = false;
278
279 Aws::String m_dataRearrangement;
280 bool m_dataRearrangementHasBeenSet = false;
281
282 Aws::String m_createdByIamUser;
283 bool m_createdByIamUserHasBeenSet = false;
284
285 Aws::Utils::DateTime m_createdAt;
286 bool m_createdAtHasBeenSet = false;
287
288 Aws::Utils::DateTime m_lastUpdatedAt;
289 bool m_lastUpdatedAtHasBeenSet = false;
290
291 long long m_dataSizeInBytes;
292 bool m_dataSizeInBytesHasBeenSet = false;
293
294 long long m_numberOfFiles;
295 bool m_numberOfFilesHasBeenSet = false;
296
297 Aws::String m_name;
298 bool m_nameHasBeenSet = false;
299
300 EntityStatus m_status;
301 bool m_statusHasBeenSet = false;
302
303 Aws::String m_message;
304 bool m_messageHasBeenSet = false;
305
306 RedshiftMetadata m_redshiftMetadata;
307 bool m_redshiftMetadataHasBeenSet = false;
308
309 RDSMetadata m_rDSMetadata;
310 bool m_rDSMetadataHasBeenSet = false;
311
312 Aws::String m_roleARN;
313 bool m_roleARNHasBeenSet = false;
314
315 bool m_computeStatistics;
316 bool m_computeStatisticsHasBeenSet = false;
317
318 long long m_computeTime;
319 bool m_computeTimeHasBeenSet = false;
320
321 Aws::Utils::DateTime m_finishedAt;
322 bool m_finishedAtHasBeenSet = false;
323
324 Aws::Utils::DateTime m_startedAt;
325 bool m_startedAtHasBeenSet = false;
326 };
327
328} // namespace Model
329} // namespace MachineLearning
330} // namespace Aws
DataSource & WithFinishedAt(Aws::Utils::DateTime &&value)
Definition DataSource.h:259
DataSource & WithMessage(Aws::String &&value)
Definition DataSource.h:197
DataSource & WithCreatedByIamUser(const char *value)
Definition DataSource.h:103
void SetDataRearrangement(Aws::String &&value)
Definition DataSource.h:83
void SetRDSMetadata(const RDSMetadata &value)
Definition DataSource.h:215
DataSource & WithCreatedByIamUser(const Aws::String &value)
Definition DataSource.h:101
void SetCreatedByIamUser(const Aws::String &value)
Definition DataSource.h:98
const Aws::Utils::DateTime & GetFinishedAt() const
Definition DataSource.h:254
const Aws::Utils::DateTime & GetStartedAt() const
Definition DataSource.h:264
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition DataSource.h:124
DataSource & WithRoleARN(Aws::String &&value)
Definition DataSource.h:229
void SetDataLocationS3(Aws::String &&value)
Definition DataSource.h:68
void SetStatus(const EntityStatus &value)
Definition DataSource.h:180
AWS_MACHINELEARNING_API DataSource & operator=(Aws::Utils::Json::JsonView jsonValue)
DataSource & WithDataLocationS3(const char *value)
Definition DataSource.h:72
void SetMessage(const Aws::String &value)
Definition DataSource.h:193
DataSource & WithDataRearrangement(Aws::String &&value)
Definition DataSource.h:86
void SetMessage(const char *value)
Definition DataSource.h:195
void SetDataSourceId(Aws::String &&value)
Definition DataSource.h:53
DataSource & WithStatus(const EntityStatus &value)
Definition DataSource.h:182
const EntityStatus & GetStatus() const
Definition DataSource.h:178
const RedshiftMetadata & GetRedshiftMetadata() const
Definition DataSource.h:203
DataSource & WithName(const Aws::String &value)
Definition DataSource.h:162
DataSource & WithName(const char *value)
Definition DataSource.h:164
DataSource & WithStartedAt(Aws::Utils::DateTime &&value)
Definition DataSource.h:269
void SetCreatedByIamUser(const char *value)
Definition DataSource.h:100
DataSource & WithCreatedByIamUser(Aws::String &&value)
Definition DataSource.h:102
DataSource & WithName(Aws::String &&value)
Definition DataSource.h:163
void SetName(Aws::String &&value)
Definition DataSource.h:160
void SetDataSourceId(const Aws::String &value)
Definition DataSource.h:52
void SetRoleARN(const Aws::String &value)
Definition DataSource.h:225
void SetNumberOfFiles(long long value)
Definition DataSource.h:149
DataSource & WithMessage(const Aws::String &value)
Definition DataSource.h:196
void SetMessage(Aws::String &&value)
Definition DataSource.h:194
AWS_MACHINELEARNING_API DataSource()
DataSource & WithComputeStatistics(bool value)
Definition DataSource.h:241
DataSource & WithDataLocationS3(const Aws::String &value)
Definition DataSource.h:70
DataSource & WithRoleARN(const char *value)
Definition DataSource.h:230
void SetDataSourceId(const char *value)
Definition DataSource.h:54
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition DataSource.h:113
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition DataSource.h:114
const Aws::Utils::DateTime & GetCreatedAt() const
Definition DataSource.h:111
void SetRedshiftMetadata(RedshiftMetadata &&value)
Definition DataSource.h:206
DataSource & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
Definition DataSource.h:129
const Aws::String & GetDataSourceId() const
Definition DataSource.h:50
void SetRoleARN(const char *value)
Definition DataSource.h:227
DataSource & WithDataSourceId(const char *value)
Definition DataSource.h:57
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
Definition DataSource.h:127
const RDSMetadata & GetRDSMetadata() const
Definition DataSource.h:213
void SetCreatedByIamUser(Aws::String &&value)
Definition DataSource.h:99
DataSource & WithRedshiftMetadata(RedshiftMetadata &&value)
Definition DataSource.h:208
const Aws::String & GetName() const
Definition DataSource.h:157
DataSource & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition DataSource.h:115
DataSource & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition DataSource.h:116
DataSource & WithDataLocationS3(Aws::String &&value)
Definition DataSource.h:71
DataSource & WithDataSizeInBytes(long long value)
Definition DataSource.h:140
void SetDataLocationS3(const char *value)
Definition DataSource.h:69
DataSource & WithDataSourceId(const Aws::String &value)
Definition DataSource.h:55
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
Definition DataSource.h:126
const Aws::String & GetMessage() const
Definition DataSource.h:191
DataSource & WithMessage(const char *value)
Definition DataSource.h:198
void SetDataRearrangement(const Aws::String &value)
Definition DataSource.h:82
DataSource & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
Definition DataSource.h:128
const Aws::String & GetDataLocationS3() const
Definition DataSource.h:65
DataSource & WithDataRearrangement(const char *value)
Definition DataSource.h:87
DataSource & WithDataRearrangement(const Aws::String &value)
Definition DataSource.h:85
void SetStartedAt(const Aws::Utils::DateTime &value)
Definition DataSource.h:266
void SetStartedAt(Aws::Utils::DateTime &&value)
Definition DataSource.h:267
DataSource & WithRedshiftMetadata(const RedshiftMetadata &value)
Definition DataSource.h:207
const Aws::String & GetCreatedByIamUser() const
Definition DataSource.h:96
AWS_MACHINELEARNING_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(EntityStatus &&value)
Definition DataSource.h:181
AWS_MACHINELEARNING_API DataSource(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDataRearrangement() const
Definition DataSource.h:80
DataSource & WithStatus(EntityStatus &&value)
Definition DataSource.h:183
void SetDataLocationS3(const Aws::String &value)
Definition DataSource.h:67
void SetRedshiftMetadata(const RedshiftMetadata &value)
Definition DataSource.h:205
void SetName(const Aws::String &value)
Definition DataSource.h:159
const Aws::String & GetRoleARN() const
Definition DataSource.h:223
DataSource & WithDataSourceId(Aws::String &&value)
Definition DataSource.h:56
void SetFinishedAt(Aws::Utils::DateTime &&value)
Definition DataSource.h:257
void SetRoleARN(Aws::String &&value)
Definition DataSource.h:226
DataSource & WithComputeTime(long long value)
Definition DataSource.h:249
void SetFinishedAt(const Aws::Utils::DateTime &value)
Definition DataSource.h:256
void SetRDSMetadata(RDSMetadata &&value)
Definition DataSource.h:216
DataSource & WithRDSMetadata(const RDSMetadata &value)
Definition DataSource.h:217
void SetDataSizeInBytes(long long value)
Definition DataSource.h:139
DataSource & WithRoleARN(const Aws::String &value)
Definition DataSource.h:228
DataSource & WithRDSMetadata(RDSMetadata &&value)
Definition DataSource.h:218
DataSource & WithFinishedAt(const Aws::Utils::DateTime &value)
Definition DataSource.h:258
void SetDataRearrangement(const char *value)
Definition DataSource.h:84
DataSource & WithNumberOfFiles(long long value)
Definition DataSource.h:150
DataSource & WithStartedAt(const Aws::Utils::DateTime &value)
Definition DataSource.h:268
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue