AWS SDK for C++  0.14.3
AWS SDK for C++
DataSource.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
22 
23 namespace Aws
24 {
25 namespace Utils
26 {
27 namespace Json
28 {
29  class JsonValue;
30 } // namespace Json
31 } // namespace Utils
32 namespace MachineLearning
33 {
34 namespace Model
35 {
36 
43  {
44  public:
45  DataSource();
46  DataSource(const Aws::Utils::Json::JsonValue& jsonValue);
47  DataSource& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
48  Aws::Utils::Json::JsonValue Jsonize() const;
49 
53  inline const Aws::String& GetDataSourceId() const{ return m_dataSourceId; }
54 
58  inline void SetDataSourceId(const Aws::String& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = value; }
59 
63  inline void SetDataSourceId(Aws::String&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = value; }
64 
68  inline void SetDataSourceId(const char* value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId.assign(value); }
69 
73  inline DataSource& WithDataSourceId(const Aws::String& value) { SetDataSourceId(value); return *this;}
74 
78  inline DataSource& WithDataSourceId(Aws::String&& value) { SetDataSourceId(value); return *this;}
79 
83  inline DataSource& WithDataSourceId(const char* value) { SetDataSourceId(value); return *this;}
84 
89  inline const Aws::String& GetDataLocationS3() const{ return m_dataLocationS3; }
90 
95  inline void SetDataLocationS3(const Aws::String& value) { m_dataLocationS3HasBeenSet = true; m_dataLocationS3 = value; }
96 
101  inline void SetDataLocationS3(Aws::String&& value) { m_dataLocationS3HasBeenSet = true; m_dataLocationS3 = value; }
102 
107  inline void SetDataLocationS3(const char* value) { m_dataLocationS3HasBeenSet = true; m_dataLocationS3.assign(value); }
108 
113  inline DataSource& WithDataLocationS3(const Aws::String& value) { SetDataLocationS3(value); return *this;}
114 
119  inline DataSource& WithDataLocationS3(Aws::String&& value) { SetDataLocationS3(value); return *this;}
120 
125  inline DataSource& WithDataLocationS3(const char* value) { SetDataLocationS3(value); return *this;}
126 
131  inline const Aws::String& GetDataRearrangement() const{ return m_dataRearrangement; }
132 
137  inline void SetDataRearrangement(const Aws::String& value) { m_dataRearrangementHasBeenSet = true; m_dataRearrangement = value; }
138 
143  inline void SetDataRearrangement(Aws::String&& value) { m_dataRearrangementHasBeenSet = true; m_dataRearrangement = value; }
144 
149  inline void SetDataRearrangement(const char* value) { m_dataRearrangementHasBeenSet = true; m_dataRearrangement.assign(value); }
150 
155  inline DataSource& WithDataRearrangement(const Aws::String& value) { SetDataRearrangement(value); return *this;}
156 
161  inline DataSource& WithDataRearrangement(Aws::String&& value) { SetDataRearrangement(value); return *this;}
162 
167  inline DataSource& WithDataRearrangement(const char* value) { SetDataRearrangement(value); return *this;}
168 
174  inline const Aws::String& GetCreatedByIamUser() const{ return m_createdByIamUser; }
175 
181  inline void SetCreatedByIamUser(const Aws::String& value) { m_createdByIamUserHasBeenSet = true; m_createdByIamUser = value; }
182 
188  inline void SetCreatedByIamUser(Aws::String&& value) { m_createdByIamUserHasBeenSet = true; m_createdByIamUser = value; }
189 
195  inline void SetCreatedByIamUser(const char* value) { m_createdByIamUserHasBeenSet = true; m_createdByIamUser.assign(value); }
196 
202  inline DataSource& WithCreatedByIamUser(const Aws::String& value) { SetCreatedByIamUser(value); return *this;}
203 
209  inline DataSource& WithCreatedByIamUser(Aws::String&& value) { SetCreatedByIamUser(value); return *this;}
210 
216  inline DataSource& WithCreatedByIamUser(const char* value) { SetCreatedByIamUser(value); return *this;}
217 
222  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
223 
228  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
229 
234  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
235 
240  inline DataSource& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
241 
246  inline DataSource& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(value); return *this;}
247 
252  inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
253 
258  inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
259 
264  inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
265 
270  inline DataSource& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
271 
276  inline DataSource& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(value); return *this;}
277 
282  inline long long GetDataSizeInBytes() const{ return m_dataSizeInBytes; }
283 
288  inline void SetDataSizeInBytes(long long value) { m_dataSizeInBytesHasBeenSet = true; m_dataSizeInBytes = value; }
289 
294  inline DataSource& WithDataSizeInBytes(long long value) { SetDataSizeInBytes(value); return *this;}
295 
299  inline long long GetNumberOfFiles() const{ return m_numberOfFiles; }
300 
304  inline void SetNumberOfFiles(long long value) { m_numberOfFilesHasBeenSet = true; m_numberOfFiles = value; }
305 
309  inline DataSource& WithNumberOfFiles(long long value) { SetNumberOfFiles(value); return *this;}
310 
314  inline const Aws::String& GetName() const{ return m_name; }
315 
319  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
320 
324  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
325 
329  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
330 
334  inline DataSource& WithName(const Aws::String& value) { SetName(value); return *this;}
335 
339  inline DataSource& WithName(Aws::String&& value) { SetName(value); return *this;}
340 
344  inline DataSource& WithName(const char* value) { SetName(value); return *this;}
345 
355  inline const EntityStatus& GetStatus() const{ return m_status; }
356 
366  inline void SetStatus(const EntityStatus& value) { m_statusHasBeenSet = true; m_status = value; }
367 
377  inline void SetStatus(EntityStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
378 
388  inline DataSource& WithStatus(const EntityStatus& value) { SetStatus(value); return *this;}
389 
399  inline DataSource& WithStatus(EntityStatus&& value) { SetStatus(value); return *this;}
400 
405  inline const Aws::String& GetMessage() const{ return m_message; }
406 
411  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
412 
417  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = value; }
418 
423  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
424 
429  inline DataSource& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
430 
435  inline DataSource& WithMessage(Aws::String&& value) { SetMessage(value); return *this;}
436 
441  inline DataSource& WithMessage(const char* value) { SetMessage(value); return *this;}
442 
443 
444  inline const RedshiftMetadata& GetRedshiftMetadata() const{ return m_redshiftMetadata; }
445 
446 
447  inline void SetRedshiftMetadata(const RedshiftMetadata& value) { m_redshiftMetadataHasBeenSet = true; m_redshiftMetadata = value; }
448 
449 
450  inline void SetRedshiftMetadata(RedshiftMetadata&& value) { m_redshiftMetadataHasBeenSet = true; m_redshiftMetadata = value; }
451 
452 
453  inline DataSource& WithRedshiftMetadata(const RedshiftMetadata& value) { SetRedshiftMetadata(value); return *this;}
454 
455 
456  inline DataSource& WithRedshiftMetadata(RedshiftMetadata&& value) { SetRedshiftMetadata(value); return *this;}
457 
458 
459  inline const RDSMetadata& GetRDSMetadata() const{ return m_rDSMetadata; }
460 
461 
462  inline void SetRDSMetadata(const RDSMetadata& value) { m_rDSMetadataHasBeenSet = true; m_rDSMetadata = value; }
463 
464 
465  inline void SetRDSMetadata(RDSMetadata&& value) { m_rDSMetadataHasBeenSet = true; m_rDSMetadata = value; }
466 
467 
468  inline DataSource& WithRDSMetadata(const RDSMetadata& value) { SetRDSMetadata(value); return *this;}
469 
470 
471  inline DataSource& WithRDSMetadata(RDSMetadata&& value) { SetRDSMetadata(value); return *this;}
472 
473 
474  inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
475 
476 
477  inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
478 
479 
480  inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
481 
482 
483  inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
484 
485 
486  inline DataSource& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
487 
488 
489  inline DataSource& WithRoleARN(Aws::String&& value) { SetRoleARN(value); return *this;}
490 
491 
492  inline DataSource& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
493 
498  inline bool GetComputeStatistics() const{ return m_computeStatistics; }
499 
504  inline void SetComputeStatistics(bool value) { m_computeStatisticsHasBeenSet = true; m_computeStatistics = value; }
505 
510  inline DataSource& WithComputeStatistics(bool value) { SetComputeStatistics(value); return *this;}
511 
512 
513  inline long long GetComputeTime() const{ return m_computeTime; }
514 
515 
516  inline void SetComputeTime(long long value) { m_computeTimeHasBeenSet = true; m_computeTime = value; }
517 
518 
519  inline DataSource& WithComputeTime(long long value) { SetComputeTime(value); return *this;}
520 
521 
522  inline const Aws::Utils::DateTime& GetFinishedAt() const{ return m_finishedAt; }
523 
524 
525  inline void SetFinishedAt(const Aws::Utils::DateTime& value) { m_finishedAtHasBeenSet = true; m_finishedAt = value; }
526 
527 
528  inline void SetFinishedAt(Aws::Utils::DateTime&& value) { m_finishedAtHasBeenSet = true; m_finishedAt = value; }
529 
530 
531  inline DataSource& WithFinishedAt(const Aws::Utils::DateTime& value) { SetFinishedAt(value); return *this;}
532 
533 
534  inline DataSource& WithFinishedAt(Aws::Utils::DateTime&& value) { SetFinishedAt(value); return *this;}
535 
536 
537  inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
538 
539 
540  inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
541 
542 
543  inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
544 
545 
546  inline DataSource& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
547 
548 
549  inline DataSource& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(value); return *this;}
550 
551  private:
552  Aws::String m_dataSourceId;
553  bool m_dataSourceIdHasBeenSet;
554  Aws::String m_dataLocationS3;
555  bool m_dataLocationS3HasBeenSet;
556  Aws::String m_dataRearrangement;
557  bool m_dataRearrangementHasBeenSet;
558  Aws::String m_createdByIamUser;
559  bool m_createdByIamUserHasBeenSet;
560  Aws::Utils::DateTime m_createdAt;
561  bool m_createdAtHasBeenSet;
562  Aws::Utils::DateTime m_lastUpdatedAt;
563  bool m_lastUpdatedAtHasBeenSet;
564  long long m_dataSizeInBytes;
565  bool m_dataSizeInBytesHasBeenSet;
566  long long m_numberOfFiles;
567  bool m_numberOfFilesHasBeenSet;
568  Aws::String m_name;
569  bool m_nameHasBeenSet;
570  EntityStatus m_status;
571  bool m_statusHasBeenSet;
572  Aws::String m_message;
573  bool m_messageHasBeenSet;
574  RedshiftMetadata m_redshiftMetadata;
575  bool m_redshiftMetadataHasBeenSet;
576  RDSMetadata m_rDSMetadata;
577  bool m_rDSMetadataHasBeenSet;
578  Aws::String m_roleARN;
579  bool m_roleARNHasBeenSet;
580  bool m_computeStatistics;
581  bool m_computeStatisticsHasBeenSet;
582  long long m_computeTime;
583  bool m_computeTimeHasBeenSet;
584  Aws::Utils::DateTime m_finishedAt;
585  bool m_finishedAtHasBeenSet;
586  Aws::Utils::DateTime m_startedAt;
587  bool m_startedAtHasBeenSet;
588  };
589 
590 } // namespace Model
591 } // namespace MachineLearning
592 } // namespace Aws
void SetDataLocationS3(Aws::String &&value)
Definition: DataSource.h:101
const Aws::String & GetCreatedByIamUser() const
Definition: DataSource.h:174
void SetFinishedAt(const Aws::Utils::DateTime &value)
Definition: DataSource.h:525
void SetRedshiftMetadata(const RedshiftMetadata &value)
Definition: DataSource.h:447
DataSource & WithRedshiftMetadata(const RedshiftMetadata &value)
Definition: DataSource.h:453
DataSource & WithRoleARN(const char *value)
Definition: DataSource.h:492
DataSource & WithDataSizeInBytes(long long value)
Definition: DataSource.h:294
void SetDataSourceId(const Aws::String &value)
Definition: DataSource.h:58
void SetFinishedAt(Aws::Utils::DateTime &&value)
Definition: DataSource.h:528
DataSource & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: DataSource.h:240
void SetDataLocationS3(const char *value)
Definition: DataSource.h:107
DataSource & WithComputeTime(long long value)
Definition: DataSource.h:519
DataSource & WithCreatedByIamUser(const Aws::String &value)
Definition: DataSource.h:202
void SetMessage(Aws::String &&value)
Definition: DataSource.h:417
DataSource & WithCreatedByIamUser(Aws::String &&value)
Definition: DataSource.h:209
const Aws::String & GetMessage() const
Definition: DataSource.h:405
void SetName(const char *value)
Definition: DataSource.h:329
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
Definition: DataSource.h:264
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: DataSource.h:228
void SetCreatedByIamUser(Aws::String &&value)
Definition: DataSource.h:188
DataSource & WithDataLocationS3(const Aws::String &value)
Definition: DataSource.h:113
void SetDataSourceId(Aws::String &&value)
Definition: DataSource.h:63
DataSource & WithDataRearrangement(const char *value)
Definition: DataSource.h:167
DataSource & WithStartedAt(Aws::Utils::DateTime &&value)
Definition: DataSource.h:549
void SetDataRearrangement(const char *value)
Definition: DataSource.h:149
DataSource & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
Definition: DataSource.h:276
DataSource & WithName(Aws::String &&value)
Definition: DataSource.h:339
void SetName(Aws::String &&value)
Definition: DataSource.h:324
void SetMessage(const char *value)
Definition: DataSource.h:423
DataSource & WithStatus(EntityStatus &&value)
Definition: DataSource.h:399
void SetStatus(const EntityStatus &value)
Definition: DataSource.h:366
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: DataSource.h:234
void SetNumberOfFiles(long long value)
Definition: DataSource.h:304
DataSource & WithMessage(const Aws::String &value)
Definition: DataSource.h:429
DataSource & WithStartedAt(const Aws::Utils::DateTime &value)
Definition: DataSource.h:546
DataSource & WithStatus(const EntityStatus &value)
Definition: DataSource.h:388
DataSource & WithDataSourceId(Aws::String &&value)
Definition: DataSource.h:78
DataSource & WithCreatedByIamUser(const char *value)
Definition: DataSource.h:216
DataSource & WithRDSMetadata(RDSMetadata &&value)
Definition: DataSource.h:471
DataSource & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: DataSource.h:246
const Aws::String & GetDataLocationS3() const
Definition: DataSource.h:89
DataSource & WithFinishedAt(Aws::Utils::DateTime &&value)
Definition: DataSource.h:534
void SetRDSMetadata(RDSMetadata &&value)
Definition: DataSource.h:465
DataSource & WithMessage(const char *value)
Definition: DataSource.h:441
DataSource & WithMessage(Aws::String &&value)
Definition: DataSource.h:435
void SetMessage(const Aws::String &value)
Definition: DataSource.h:411
DataSource & WithRoleARN(Aws::String &&value)
Definition: DataSource.h:489
DataSource & WithNumberOfFiles(long long value)
Definition: DataSource.h:309
DataSource & WithComputeStatistics(bool value)
Definition: DataSource.h:510
const Aws::Utils::DateTime & GetStartedAt() const
Definition: DataSource.h:537
void SetStartedAt(Aws::Utils::DateTime &&value)
Definition: DataSource.h:543
const RedshiftMetadata & GetRedshiftMetadata() const
Definition: DataSource.h:444
DataSource & WithFinishedAt(const Aws::Utils::DateTime &value)
Definition: DataSource.h:531
void SetRoleARN(Aws::String &&value)
Definition: DataSource.h:480
DataSource & WithDataLocationS3(Aws::String &&value)
Definition: DataSource.h:119
DataSource & WithDataRearrangement(const Aws::String &value)
Definition: DataSource.h:155
void SetDataLocationS3(const Aws::String &value)
Definition: DataSource.h:95
const Aws::String & GetDataSourceId() const
Definition: DataSource.h:53
void SetRoleARN(const char *value)
Definition: DataSource.h:483
void SetDataRearrangement(const Aws::String &value)
Definition: DataSource.h:137
DataSource & WithDataSourceId(const char *value)
Definition: DataSource.h:83
const Aws::String & GetRoleARN() const
Definition: DataSource.h:474
void SetDataRearrangement(Aws::String &&value)
Definition: DataSource.h:143
void SetCreatedByIamUser(const char *value)
Definition: DataSource.h:195
const RDSMetadata & GetRDSMetadata() const
Definition: DataSource.h:459
void SetDataSizeInBytes(long long value)
Definition: DataSource.h:288
DataSource & WithDataSourceId(const Aws::String &value)
Definition: DataSource.h:73
DataSource & WithRoleARN(const Aws::String &value)
Definition: DataSource.h:486
void SetRoleARN(const Aws::String &value)
Definition: DataSource.h:477
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetStartedAt(const Aws::Utils::DateTime &value)
Definition: DataSource.h:540
DataSource & WithDataRearrangement(Aws::String &&value)
Definition: DataSource.h:161
void SetComputeTime(long long value)
Definition: DataSource.h:516
const Aws::String & GetName() const
Definition: DataSource.h:314
void SetDataSourceId(const char *value)
Definition: DataSource.h:68
void SetCreatedByIamUser(const Aws::String &value)
Definition: DataSource.h:181
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: DataSource.h:222
DataSource & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
Definition: DataSource.h:270
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition: DataSource.h:252
const Aws::String & GetDataRearrangement() const
Definition: DataSource.h:131
void SetName(const Aws::String &value)
Definition: DataSource.h:319
void SetStatus(EntityStatus &&value)
Definition: DataSource.h:377
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
Definition: DataSource.h:258
const EntityStatus & GetStatus() const
Definition: DataSource.h:355
DataSource & WithRedshiftMetadata(RedshiftMetadata &&value)
Definition: DataSource.h:456
const Aws::Utils::DateTime & GetFinishedAt() const
Definition: DataSource.h:522
DataSource & WithDataLocationS3(const char *value)
Definition: DataSource.h:125
void SetRedshiftMetadata(RedshiftMetadata &&value)
Definition: DataSource.h:450
DataSource & WithName(const Aws::String &value)
Definition: DataSource.h:334
DataSource & WithName(const char *value)
Definition: DataSource.h:344
#define AWS_MACHINELEARNING_API
void SetRDSMetadata(const RDSMetadata &value)
Definition: DataSource.h:462
DataSource & WithRDSMetadata(const RDSMetadata &value)
Definition: DataSource.h:468
JSON (JavaScript Object Notation).