/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace MachineLearning { namespace Model { /** *

Represents the output of the GetDataSource operation.

* The content consists of the detailed metadata and data file information and the * current status of the DataSource.

See Also:

AWS * API Reference

*/ class DataSource { public: AWS_MACHINELEARNING_API DataSource(); AWS_MACHINELEARNING_API DataSource(Aws::Utils::Json::JsonView jsonValue); AWS_MACHINELEARNING_API DataSource& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MACHINELEARNING_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ID that is assigned to the DataSource during creation.

*/ inline const Aws::String& GetDataSourceId() const{ return m_dataSourceId; } /** *

The ID that is assigned to the DataSource during creation.

*/ inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; } /** *

The ID that is assigned to the DataSource during creation.

*/ inline void SetDataSourceId(const Aws::String& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = value; } /** *

The ID that is assigned to the DataSource during creation.

*/ inline void SetDataSourceId(Aws::String&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::move(value); } /** *

The ID that is assigned to the DataSource during creation.

*/ inline void SetDataSourceId(const char* value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId.assign(value); } /** *

The ID that is assigned to the DataSource during creation.

*/ inline DataSource& WithDataSourceId(const Aws::String& value) { SetDataSourceId(value); return *this;} /** *

The ID that is assigned to the DataSource during creation.

*/ inline DataSource& WithDataSourceId(Aws::String&& value) { SetDataSourceId(std::move(value)); return *this;} /** *

The ID that is assigned to the DataSource during creation.

*/ inline DataSource& WithDataSourceId(const char* value) { SetDataSourceId(value); return *this;} /** *

The location and name of the data in Amazon Simple Storage Service (Amazon * S3) that is used by a DataSource.

*/ inline const Aws::String& GetDataLocationS3() const{ return m_dataLocationS3; } /** *

The location and name of the data in Amazon Simple Storage Service (Amazon * S3) that is used by a DataSource.

*/ inline bool DataLocationS3HasBeenSet() const { return m_dataLocationS3HasBeenSet; } /** *

The location and name of the data in Amazon Simple Storage Service (Amazon * S3) that is used by a DataSource.

*/ inline void SetDataLocationS3(const Aws::String& value) { m_dataLocationS3HasBeenSet = true; m_dataLocationS3 = value; } /** *

The location and name of the data in Amazon Simple Storage Service (Amazon * S3) that is used by a DataSource.

*/ inline void SetDataLocationS3(Aws::String&& value) { m_dataLocationS3HasBeenSet = true; m_dataLocationS3 = std::move(value); } /** *

The location and name of the data in Amazon Simple Storage Service (Amazon * S3) that is used by a DataSource.

*/ inline void SetDataLocationS3(const char* value) { m_dataLocationS3HasBeenSet = true; m_dataLocationS3.assign(value); } /** *

The location and name of the data in Amazon Simple Storage Service (Amazon * S3) that is used by a DataSource.

*/ inline DataSource& WithDataLocationS3(const Aws::String& value) { SetDataLocationS3(value); return *this;} /** *

The location and name of the data in Amazon Simple Storage Service (Amazon * S3) that is used by a DataSource.

*/ inline DataSource& WithDataLocationS3(Aws::String&& value) { SetDataLocationS3(std::move(value)); return *this;} /** *

The location and name of the data in Amazon Simple Storage Service (Amazon * S3) that is used by a DataSource.

*/ inline DataSource& WithDataLocationS3(const char* value) { SetDataLocationS3(value); return *this;} /** *

A JSON string that represents the splitting and rearrangement requirement * used when this DataSource was created.

*/ inline const Aws::String& GetDataRearrangement() const{ return m_dataRearrangement; } /** *

A JSON string that represents the splitting and rearrangement requirement * used when this DataSource was created.

*/ inline bool DataRearrangementHasBeenSet() const { return m_dataRearrangementHasBeenSet; } /** *

A JSON string that represents the splitting and rearrangement requirement * used when this DataSource was created.

*/ inline void SetDataRearrangement(const Aws::String& value) { m_dataRearrangementHasBeenSet = true; m_dataRearrangement = value; } /** *

A JSON string that represents the splitting and rearrangement requirement * used when this DataSource was created.

*/ inline void SetDataRearrangement(Aws::String&& value) { m_dataRearrangementHasBeenSet = true; m_dataRearrangement = std::move(value); } /** *

A JSON string that represents the splitting and rearrangement requirement * used when this DataSource was created.

*/ inline void SetDataRearrangement(const char* value) { m_dataRearrangementHasBeenSet = true; m_dataRearrangement.assign(value); } /** *

A JSON string that represents the splitting and rearrangement requirement * used when this DataSource was created.

*/ inline DataSource& WithDataRearrangement(const Aws::String& value) { SetDataRearrangement(value); return *this;} /** *

A JSON string that represents the splitting and rearrangement requirement * used when this DataSource was created.

*/ inline DataSource& WithDataRearrangement(Aws::String&& value) { SetDataRearrangement(std::move(value)); return *this;} /** *

A JSON string that represents the splitting and rearrangement requirement * used when this DataSource was created.

*/ inline DataSource& WithDataRearrangement(const char* value) { SetDataRearrangement(value); return *this;} /** *

The AWS user account from which the DataSource was created. The * account type can be either an AWS root account or an AWS Identity and Access * Management (IAM) user account.

*/ inline const Aws::String& GetCreatedByIamUser() const{ return m_createdByIamUser; } /** *

The AWS user account from which the DataSource was created. The * account type can be either an AWS root account or an AWS Identity and Access * Management (IAM) user account.

*/ inline bool CreatedByIamUserHasBeenSet() const { return m_createdByIamUserHasBeenSet; } /** *

The AWS user account from which the DataSource was created. The * account type can be either an AWS root account or an AWS Identity and Access * Management (IAM) user account.

*/ inline void SetCreatedByIamUser(const Aws::String& value) { m_createdByIamUserHasBeenSet = true; m_createdByIamUser = value; } /** *

The AWS user account from which the DataSource was created. The * account type can be either an AWS root account or an AWS Identity and Access * Management (IAM) user account.

*/ inline void SetCreatedByIamUser(Aws::String&& value) { m_createdByIamUserHasBeenSet = true; m_createdByIamUser = std::move(value); } /** *

The AWS user account from which the DataSource was created. The * account type can be either an AWS root account or an AWS Identity and Access * Management (IAM) user account.

*/ inline void SetCreatedByIamUser(const char* value) { m_createdByIamUserHasBeenSet = true; m_createdByIamUser.assign(value); } /** *

The AWS user account from which the DataSource was created. The * account type can be either an AWS root account or an AWS Identity and Access * Management (IAM) user account.

*/ inline DataSource& WithCreatedByIamUser(const Aws::String& value) { SetCreatedByIamUser(value); return *this;} /** *

The AWS user account from which the DataSource was created. The * account type can be either an AWS root account or an AWS Identity and Access * Management (IAM) user account.

*/ inline DataSource& WithCreatedByIamUser(Aws::String&& value) { SetCreatedByIamUser(std::move(value)); return *this;} /** *

The AWS user account from which the DataSource was created. The * account type can be either an AWS root account or an AWS Identity and Access * Management (IAM) user account.

*/ inline DataSource& WithCreatedByIamUser(const char* value) { SetCreatedByIamUser(value); return *this;} /** *

The time that the DataSource was created. The time is expressed * in epoch time.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The time that the DataSource was created. The time is expressed * in epoch time.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The time that the DataSource was created. The time is expressed * in epoch time.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The time that the DataSource was created. The time is expressed * in epoch time.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The time that the DataSource was created. The time is expressed * in epoch time.

*/ inline DataSource& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The time that the DataSource was created. The time is expressed * in epoch time.

*/ inline DataSource& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The time of the most recent edit to the BatchPrediction. The * time is expressed in epoch time.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; } /** *

The time of the most recent edit to the BatchPrediction. The * time is expressed in epoch time.

*/ inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; } /** *

The time of the most recent edit to the BatchPrediction. The * time is expressed in epoch time.

*/ inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; } /** *

The time of the most recent edit to the BatchPrediction. The * time is expressed in epoch time.

*/ inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); } /** *

The time of the most recent edit to the BatchPrediction. The * time is expressed in epoch time.

*/ inline DataSource& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;} /** *

The time of the most recent edit to the BatchPrediction. The * time is expressed in epoch time.

*/ inline DataSource& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;} /** *

The total number of observations contained in the data files that the * DataSource references.

*/ inline long long GetDataSizeInBytes() const{ return m_dataSizeInBytes; } /** *

The total number of observations contained in the data files that the * DataSource references.

*/ inline bool DataSizeInBytesHasBeenSet() const { return m_dataSizeInBytesHasBeenSet; } /** *

The total number of observations contained in the data files that the * DataSource references.

*/ inline void SetDataSizeInBytes(long long value) { m_dataSizeInBytesHasBeenSet = true; m_dataSizeInBytes = value; } /** *

The total number of observations contained in the data files that the * DataSource references.

*/ inline DataSource& WithDataSizeInBytes(long long value) { SetDataSizeInBytes(value); return *this;} /** *

The number of data files referenced by the DataSource.

*/ inline long long GetNumberOfFiles() const{ return m_numberOfFiles; } /** *

The number of data files referenced by the DataSource.

*/ inline bool NumberOfFilesHasBeenSet() const { return m_numberOfFilesHasBeenSet; } /** *

The number of data files referenced by the DataSource.

*/ inline void SetNumberOfFiles(long long value) { m_numberOfFilesHasBeenSet = true; m_numberOfFiles = value; } /** *

The number of data files referenced by the DataSource.

*/ inline DataSource& WithNumberOfFiles(long long value) { SetNumberOfFiles(value); return *this;} /** *

A user-supplied name or description of the DataSource.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

A user-supplied name or description of the DataSource.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

A user-supplied name or description of the DataSource.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

A user-supplied name or description of the DataSource.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

A user-supplied name or description of the DataSource.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

A user-supplied name or description of the DataSource.

*/ inline DataSource& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

A user-supplied name or description of the DataSource.

*/ inline DataSource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

A user-supplied name or description of the DataSource.

*/ inline DataSource& WithName(const char* value) { SetName(value); return *this;} /** *

The current status of the DataSource. This element can have one * of the following values:

  • PENDING - Amazon Machine Learning * (Amazon ML) submitted a request to create a DataSource.

  • *
  • INPROGRESS - The creation process is underway.

  • FAILED * - The request to create a DataSource did not run to completion. It * is not usable.

  • COMPLETED - The creation process completed * successfully.

  • DELETED - The DataSource is marked * as deleted. It is not usable.

*/ inline const EntityStatus& GetStatus() const{ return m_status; } /** *

The current status of the DataSource. This element can have one * of the following values:

  • PENDING - Amazon Machine Learning * (Amazon ML) submitted a request to create a DataSource.

  • *
  • INPROGRESS - The creation process is underway.

  • FAILED * - The request to create a DataSource did not run to completion. It * is not usable.

  • COMPLETED - The creation process completed * successfully.

  • DELETED - The DataSource is marked * as deleted. It is not usable.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The current status of the DataSource. This element can have one * of the following values:

  • PENDING - Amazon Machine Learning * (Amazon ML) submitted a request to create a DataSource.

  • *
  • INPROGRESS - The creation process is underway.

  • FAILED * - The request to create a DataSource did not run to completion. It * is not usable.

  • COMPLETED - The creation process completed * successfully.

  • DELETED - The DataSource is marked * as deleted. It is not usable.

*/ inline void SetStatus(const EntityStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The current status of the DataSource. This element can have one * of the following values:

  • PENDING - Amazon Machine Learning * (Amazon ML) submitted a request to create a DataSource.

  • *
  • INPROGRESS - The creation process is underway.

  • FAILED * - The request to create a DataSource did not run to completion. It * is not usable.

  • COMPLETED - The creation process completed * successfully.

  • DELETED - The DataSource is marked * as deleted. It is not usable.

*/ inline void SetStatus(EntityStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The current status of the DataSource. This element can have one * of the following values:

  • PENDING - Amazon Machine Learning * (Amazon ML) submitted a request to create a DataSource.

  • *
  • INPROGRESS - The creation process is underway.

  • FAILED * - The request to create a DataSource did not run to completion. It * is not usable.

  • COMPLETED - The creation process completed * successfully.

  • DELETED - The DataSource is marked * as deleted. It is not usable.

*/ inline DataSource& WithStatus(const EntityStatus& value) { SetStatus(value); return *this;} /** *

The current status of the DataSource. This element can have one * of the following values:

  • PENDING - Amazon Machine Learning * (Amazon ML) submitted a request to create a DataSource.

  • *
  • INPROGRESS - The creation process is underway.

  • FAILED * - The request to create a DataSource did not run to completion. It * is not usable.

  • COMPLETED - The creation process completed * successfully.

  • DELETED - The DataSource is marked * as deleted. It is not usable.

*/ inline DataSource& WithStatus(EntityStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

A description of the most recent details about creating the * DataSource.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

A description of the most recent details about creating the * DataSource.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

A description of the most recent details about creating the * DataSource.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

A description of the most recent details about creating the * DataSource.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

A description of the most recent details about creating the * DataSource.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

A description of the most recent details about creating the * DataSource.

*/ inline DataSource& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

A description of the most recent details about creating the * DataSource.

*/ inline DataSource& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

A description of the most recent details about creating the * DataSource.

*/ inline DataSource& WithMessage(const char* value) { SetMessage(value); return *this;} inline const RedshiftMetadata& GetRedshiftMetadata() const{ return m_redshiftMetadata; } inline bool RedshiftMetadataHasBeenSet() const { return m_redshiftMetadataHasBeenSet; } inline void SetRedshiftMetadata(const RedshiftMetadata& value) { m_redshiftMetadataHasBeenSet = true; m_redshiftMetadata = value; } inline void SetRedshiftMetadata(RedshiftMetadata&& value) { m_redshiftMetadataHasBeenSet = true; m_redshiftMetadata = std::move(value); } inline DataSource& WithRedshiftMetadata(const RedshiftMetadata& value) { SetRedshiftMetadata(value); return *this;} inline DataSource& WithRedshiftMetadata(RedshiftMetadata&& value) { SetRedshiftMetadata(std::move(value)); return *this;} inline const RDSMetadata& GetRDSMetadata() const{ return m_rDSMetadata; } inline bool RDSMetadataHasBeenSet() const { return m_rDSMetadataHasBeenSet; } inline void SetRDSMetadata(const RDSMetadata& value) { m_rDSMetadataHasBeenSet = true; m_rDSMetadata = value; } inline void SetRDSMetadata(RDSMetadata&& value) { m_rDSMetadataHasBeenSet = true; m_rDSMetadata = std::move(value); } inline DataSource& WithRDSMetadata(const RDSMetadata& value) { SetRDSMetadata(value); return *this;} inline DataSource& WithRDSMetadata(RDSMetadata&& value) { SetRDSMetadata(std::move(value)); return *this;} inline const Aws::String& GetRoleARN() const{ return m_roleARN; } inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; } inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; } inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::move(value); } inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); } inline DataSource& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;} inline DataSource& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;} inline DataSource& WithRoleARN(const char* value) { SetRoleARN(value); return *this;} /** *

The parameter is true if statistics need to be generated from * the observation data.

*/ inline bool GetComputeStatistics() const{ return m_computeStatistics; } /** *

The parameter is true if statistics need to be generated from * the observation data.

*/ inline bool ComputeStatisticsHasBeenSet() const { return m_computeStatisticsHasBeenSet; } /** *

The parameter is true if statistics need to be generated from * the observation data.

*/ inline void SetComputeStatistics(bool value) { m_computeStatisticsHasBeenSet = true; m_computeStatistics = value; } /** *

The parameter is true if statistics need to be generated from * the observation data.

*/ inline DataSource& WithComputeStatistics(bool value) { SetComputeStatistics(value); return *this;} inline long long GetComputeTime() const{ return m_computeTime; } inline bool ComputeTimeHasBeenSet() const { return m_computeTimeHasBeenSet; } inline void SetComputeTime(long long value) { m_computeTimeHasBeenSet = true; m_computeTime = value; } inline DataSource& WithComputeTime(long long value) { SetComputeTime(value); return *this;} inline const Aws::Utils::DateTime& GetFinishedAt() const{ return m_finishedAt; } inline bool FinishedAtHasBeenSet() const { return m_finishedAtHasBeenSet; } inline void SetFinishedAt(const Aws::Utils::DateTime& value) { m_finishedAtHasBeenSet = true; m_finishedAt = value; } inline void SetFinishedAt(Aws::Utils::DateTime&& value) { m_finishedAtHasBeenSet = true; m_finishedAt = std::move(value); } inline DataSource& WithFinishedAt(const Aws::Utils::DateTime& value) { SetFinishedAt(value); return *this;} inline DataSource& WithFinishedAt(Aws::Utils::DateTime&& value) { SetFinishedAt(std::move(value)); return *this;} inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; } inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; } inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; } inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); } inline DataSource& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;} inline DataSource& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;} private: Aws::String m_dataSourceId; bool m_dataSourceIdHasBeenSet = false; Aws::String m_dataLocationS3; bool m_dataLocationS3HasBeenSet = false; Aws::String m_dataRearrangement; bool m_dataRearrangementHasBeenSet = false; Aws::String m_createdByIamUser; bool m_createdByIamUserHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedAt; bool m_lastUpdatedAtHasBeenSet = false; long long m_dataSizeInBytes; bool m_dataSizeInBytesHasBeenSet = false; long long m_numberOfFiles; bool m_numberOfFilesHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; EntityStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; RedshiftMetadata m_redshiftMetadata; bool m_redshiftMetadataHasBeenSet = false; RDSMetadata m_rDSMetadata; bool m_rDSMetadataHasBeenSet = false; Aws::String m_roleARN; bool m_roleARNHasBeenSet = false; bool m_computeStatistics; bool m_computeStatisticsHasBeenSet = false; long long m_computeTime; bool m_computeTimeHasBeenSet = false; Aws::Utils::DateTime m_finishedAt; bool m_finishedAtHasBeenSet = false; Aws::Utils::DateTime m_startedAt; bool m_startedAtHasBeenSet = false; }; } // namespace Model } // namespace MachineLearning } // namespace Aws