/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace MachineLearning { namespace Model { /** *

Represents the output of a GetDataSource operation and describes * a DataSource.

See Also:

AWS * API Reference

*/ class GetDataSourceResult { public: AWS_MACHINELEARNING_API GetDataSourceResult(); AWS_MACHINELEARNING_API GetDataSourceResult(const Aws::AmazonWebServiceResult& result); AWS_MACHINELEARNING_API GetDataSourceResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ID assigned to the DataSource at creation. This value should * be identical to the value of the DataSourceId in the request.

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

The ID assigned to the DataSource at creation. This value should * be identical to the value of the DataSourceId in the request.

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

The ID assigned to the DataSource at creation. This value should * be identical to the value of the DataSourceId in the request.

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

The ID assigned to the DataSource at creation. This value should * be identical to the value of the DataSourceId in the request.

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

The ID assigned to the DataSource at creation. This value should * be identical to the value of the DataSourceId in the request.

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

The ID assigned to the DataSource at creation. This value should * be identical to the value of the DataSourceId in the request.

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

The ID assigned to the DataSource at creation. This value should * be identical to the value of the DataSourceId in the request.

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

The location of the data file or directory in Amazon Simple Storage Service * (Amazon S3).

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

The location of the data file or directory in Amazon Simple Storage Service * (Amazon S3).

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

The location of the data file or directory in Amazon Simple Storage Service * (Amazon S3).

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

The location of the data file or directory in Amazon Simple Storage Service * (Amazon S3).

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

The location of the data file or directory in Amazon Simple Storage Service * (Amazon S3).

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

The location of the data file or directory in Amazon Simple Storage Service * (Amazon S3).

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

The location of the data file or directory in Amazon Simple Storage Service * (Amazon S3).

*/ inline GetDataSourceResult& 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 void SetDataRearrangement(const Aws::String& value) { 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_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_dataRearrangement.assign(value); } /** *

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

*/ inline GetDataSourceResult& 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 GetDataSourceResult& 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 GetDataSourceResult& 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 void SetCreatedByIamUser(const Aws::String& value) { 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_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_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 GetDataSourceResult& 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 GetDataSourceResult& 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 GetDataSourceResult& 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 void SetCreatedAt(const Aws::Utils::DateTime& value) { 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_createdAt = std::move(value); } /** *

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

*/ inline GetDataSourceResult& 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 GetDataSourceResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The time of the most recent edit to the DataSource. 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 DataSource. The time is * expressed in epoch time.

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

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

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

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

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

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

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

The total size of observations in the data files.

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

The total size of observations in the data files.

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

The total size of observations in the data files.

*/ inline GetDataSourceResult& 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 void SetNumberOfFiles(long long value) { m_numberOfFiles = value; } /** *

The number of data files referenced by the DataSource.

*/ inline GetDataSourceResult& 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 void SetName(const Aws::String& value) { m_name = value; } /** *

A user-supplied name or description of the DataSource.

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

A user-supplied name or description of the DataSource.

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

A user-supplied name or description of the DataSource.

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

A user-supplied name or description of the DataSource.

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

A user-supplied name or description of the DataSource.

*/ inline GetDataSourceResult& 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 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 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_status = value; } /** *

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

  • PENDING - 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_status = std::move(value); } /** *

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

  • PENDING - 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 GetDataSourceResult& 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 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 GetDataSourceResult& WithStatus(EntityStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

A link to the file containing logs of CreateDataSourceFrom* * operations.

*/ inline const Aws::String& GetLogUri() const{ return m_logUri; } /** *

A link to the file containing logs of CreateDataSourceFrom* * operations.

*/ inline void SetLogUri(const Aws::String& value) { m_logUri = value; } /** *

A link to the file containing logs of CreateDataSourceFrom* * operations.

*/ inline void SetLogUri(Aws::String&& value) { m_logUri = std::move(value); } /** *

A link to the file containing logs of CreateDataSourceFrom* * operations.

*/ inline void SetLogUri(const char* value) { m_logUri.assign(value); } /** *

A link to the file containing logs of CreateDataSourceFrom* * operations.

*/ inline GetDataSourceResult& WithLogUri(const Aws::String& value) { SetLogUri(value); return *this;} /** *

A link to the file containing logs of CreateDataSourceFrom* * operations.

*/ inline GetDataSourceResult& WithLogUri(Aws::String&& value) { SetLogUri(std::move(value)); return *this;} /** *

A link to the file containing logs of CreateDataSourceFrom* * operations.

*/ inline GetDataSourceResult& WithLogUri(const char* value) { SetLogUri(value); return *this;} /** *

The user-supplied description of the most recent details about creating the * DataSource.

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

The user-supplied description of the most recent details about creating the * DataSource.

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

The user-supplied description of the most recent details about creating the * DataSource.

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

The user-supplied description of the most recent details about creating the * DataSource.

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

The user-supplied description of the most recent details about creating the * DataSource.

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

The user-supplied description of the most recent details about creating the * DataSource.

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

The user-supplied description of the most recent details about creating the * DataSource.

*/ inline GetDataSourceResult& WithMessage(const char* value) { SetMessage(value); return *this;} inline const RedshiftMetadata& GetRedshiftMetadata() const{ return m_redshiftMetadata; } inline void SetRedshiftMetadata(const RedshiftMetadata& value) { m_redshiftMetadata = value; } inline void SetRedshiftMetadata(RedshiftMetadata&& value) { m_redshiftMetadata = std::move(value); } inline GetDataSourceResult& WithRedshiftMetadata(const RedshiftMetadata& value) { SetRedshiftMetadata(value); return *this;} inline GetDataSourceResult& WithRedshiftMetadata(RedshiftMetadata&& value) { SetRedshiftMetadata(std::move(value)); return *this;} inline const RDSMetadata& GetRDSMetadata() const{ return m_rDSMetadata; } inline void SetRDSMetadata(const RDSMetadata& value) { m_rDSMetadata = value; } inline void SetRDSMetadata(RDSMetadata&& value) { m_rDSMetadata = std::move(value); } inline GetDataSourceResult& WithRDSMetadata(const RDSMetadata& value) { SetRDSMetadata(value); return *this;} inline GetDataSourceResult& WithRDSMetadata(RDSMetadata&& value) { SetRDSMetadata(std::move(value)); return *this;} inline const Aws::String& GetRoleARN() const{ return m_roleARN; } inline void SetRoleARN(const Aws::String& value) { m_roleARN = value; } inline void SetRoleARN(Aws::String&& value) { m_roleARN = std::move(value); } inline void SetRoleARN(const char* value) { m_roleARN.assign(value); } inline GetDataSourceResult& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;} inline GetDataSourceResult& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;} inline GetDataSourceResult& 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 void SetComputeStatistics(bool value) { m_computeStatistics = value; } /** *

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

*/ inline GetDataSourceResult& WithComputeStatistics(bool value) { SetComputeStatistics(value); return *this;} /** *

The approximate CPU time in milliseconds that Amazon Machine Learning spent * processing the DataSource, normalized and scaled on computation * resources. ComputeTime is only available if the * DataSource is in the COMPLETED state and the * ComputeStatistics is set to true.

*/ inline long long GetComputeTime() const{ return m_computeTime; } /** *

The approximate CPU time in milliseconds that Amazon Machine Learning spent * processing the DataSource, normalized and scaled on computation * resources. ComputeTime is only available if the * DataSource is in the COMPLETED state and the * ComputeStatistics is set to true.

*/ inline void SetComputeTime(long long value) { m_computeTime = value; } /** *

The approximate CPU time in milliseconds that Amazon Machine Learning spent * processing the DataSource, normalized and scaled on computation * resources. ComputeTime is only available if the * DataSource is in the COMPLETED state and the * ComputeStatistics is set to true.

*/ inline GetDataSourceResult& WithComputeTime(long long value) { SetComputeTime(value); return *this;} /** *

The epoch time when Amazon Machine Learning marked the * DataSource as COMPLETED or FAILED. * FinishedAt is only available when the DataSource is in * the COMPLETED or FAILED state.

*/ inline const Aws::Utils::DateTime& GetFinishedAt() const{ return m_finishedAt; } /** *

The epoch time when Amazon Machine Learning marked the * DataSource as COMPLETED or FAILED. * FinishedAt is only available when the DataSource is in * the COMPLETED or FAILED state.

*/ inline void SetFinishedAt(const Aws::Utils::DateTime& value) { m_finishedAt = value; } /** *

The epoch time when Amazon Machine Learning marked the * DataSource as COMPLETED or FAILED. * FinishedAt is only available when the DataSource is in * the COMPLETED or FAILED state.

*/ inline void SetFinishedAt(Aws::Utils::DateTime&& value) { m_finishedAt = std::move(value); } /** *

The epoch time when Amazon Machine Learning marked the * DataSource as COMPLETED or FAILED. * FinishedAt is only available when the DataSource is in * the COMPLETED or FAILED state.

*/ inline GetDataSourceResult& WithFinishedAt(const Aws::Utils::DateTime& value) { SetFinishedAt(value); return *this;} /** *

The epoch time when Amazon Machine Learning marked the * DataSource as COMPLETED or FAILED. * FinishedAt is only available when the DataSource is in * the COMPLETED or FAILED state.

*/ inline GetDataSourceResult& WithFinishedAt(Aws::Utils::DateTime&& value) { SetFinishedAt(std::move(value)); return *this;} /** *

The epoch time when Amazon Machine Learning marked the * DataSource as INPROGRESS. StartedAt isn't * available if the DataSource is in the PENDING * state.

*/ inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; } /** *

The epoch time when Amazon Machine Learning marked the * DataSource as INPROGRESS. StartedAt isn't * available if the DataSource is in the PENDING * state.

*/ inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAt = value; } /** *

The epoch time when Amazon Machine Learning marked the * DataSource as INPROGRESS. StartedAt isn't * available if the DataSource is in the PENDING * state.

*/ inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAt = std::move(value); } /** *

The epoch time when Amazon Machine Learning marked the * DataSource as INPROGRESS. StartedAt isn't * available if the DataSource is in the PENDING * state.

*/ inline GetDataSourceResult& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;} /** *

The epoch time when Amazon Machine Learning marked the * DataSource as INPROGRESS. StartedAt isn't * available if the DataSource is in the PENDING * state.

*/ inline GetDataSourceResult& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;} /** *

The schema used by all of the data files of this DataSource.

*

Note: This parameter is provided as part of the verbose format.

*/ inline const Aws::String& GetDataSourceSchema() const{ return m_dataSourceSchema; } /** *

The schema used by all of the data files of this DataSource.

*

Note: This parameter is provided as part of the verbose format.

*/ inline void SetDataSourceSchema(const Aws::String& value) { m_dataSourceSchema = value; } /** *

The schema used by all of the data files of this DataSource.

*

Note: This parameter is provided as part of the verbose format.

*/ inline void SetDataSourceSchema(Aws::String&& value) { m_dataSourceSchema = std::move(value); } /** *

The schema used by all of the data files of this DataSource.

*

Note: This parameter is provided as part of the verbose format.

*/ inline void SetDataSourceSchema(const char* value) { m_dataSourceSchema.assign(value); } /** *

The schema used by all of the data files of this DataSource.

*

Note: This parameter is provided as part of the verbose format.

*/ inline GetDataSourceResult& WithDataSourceSchema(const Aws::String& value) { SetDataSourceSchema(value); return *this;} /** *

The schema used by all of the data files of this DataSource.

*

Note: This parameter is provided as part of the verbose format.

*/ inline GetDataSourceResult& WithDataSourceSchema(Aws::String&& value) { SetDataSourceSchema(std::move(value)); return *this;} /** *

The schema used by all of the data files of this DataSource.

*

Note: This parameter is provided as part of the verbose format.

*/ inline GetDataSourceResult& WithDataSourceSchema(const char* value) { SetDataSourceSchema(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetDataSourceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetDataSourceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetDataSourceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_dataSourceId; Aws::String m_dataLocationS3; Aws::String m_dataRearrangement; Aws::String m_createdByIamUser; Aws::Utils::DateTime m_createdAt; Aws::Utils::DateTime m_lastUpdatedAt; long long m_dataSizeInBytes; long long m_numberOfFiles; Aws::String m_name; EntityStatus m_status; Aws::String m_logUri; Aws::String m_message; RedshiftMetadata m_redshiftMetadata; RDSMetadata m_rDSMetadata; Aws::String m_roleARN; bool m_computeStatistics; long long m_computeTime; Aws::Utils::DateTime m_finishedAt; Aws::Utils::DateTime m_startedAt; Aws::String m_dataSourceSchema; Aws::String m_requestId; }; } // namespace Model } // namespace MachineLearning } // namespace Aws