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

Provides a summary of the dataset import job properties used in the ListDatasetImportJobs * operation. To get the complete set of properties, call the DescribeDatasetImportJob * operation, and provide the DatasetImportJobArn.

See * Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the dataset import job.

*/ inline const Aws::String& GetDatasetImportJobArn() const{ return m_datasetImportJobArn; } /** *

The Amazon Resource Name (ARN) of the dataset import job.

*/ inline bool DatasetImportJobArnHasBeenSet() const { return m_datasetImportJobArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the dataset import job.

*/ inline void SetDatasetImportJobArn(const Aws::String& value) { m_datasetImportJobArnHasBeenSet = true; m_datasetImportJobArn = value; } /** *

The Amazon Resource Name (ARN) of the dataset import job.

*/ inline void SetDatasetImportJobArn(Aws::String&& value) { m_datasetImportJobArnHasBeenSet = true; m_datasetImportJobArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the dataset import job.

*/ inline void SetDatasetImportJobArn(const char* value) { m_datasetImportJobArnHasBeenSet = true; m_datasetImportJobArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the dataset import job.

*/ inline DatasetImportJobSummary& WithDatasetImportJobArn(const Aws::String& value) { SetDatasetImportJobArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the dataset import job.

*/ inline DatasetImportJobSummary& WithDatasetImportJobArn(Aws::String&& value) { SetDatasetImportJobArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the dataset import job.

*/ inline DatasetImportJobSummary& WithDatasetImportJobArn(const char* value) { SetDatasetImportJobArn(value); return *this;} /** *

The name of the dataset import job.

*/ inline const Aws::String& GetDatasetImportJobName() const{ return m_datasetImportJobName; } /** *

The name of the dataset import job.

*/ inline bool DatasetImportJobNameHasBeenSet() const { return m_datasetImportJobNameHasBeenSet; } /** *

The name of the dataset import job.

*/ inline void SetDatasetImportJobName(const Aws::String& value) { m_datasetImportJobNameHasBeenSet = true; m_datasetImportJobName = value; } /** *

The name of the dataset import job.

*/ inline void SetDatasetImportJobName(Aws::String&& value) { m_datasetImportJobNameHasBeenSet = true; m_datasetImportJobName = std::move(value); } /** *

The name of the dataset import job.

*/ inline void SetDatasetImportJobName(const char* value) { m_datasetImportJobNameHasBeenSet = true; m_datasetImportJobName.assign(value); } /** *

The name of the dataset import job.

*/ inline DatasetImportJobSummary& WithDatasetImportJobName(const Aws::String& value) { SetDatasetImportJobName(value); return *this;} /** *

The name of the dataset import job.

*/ inline DatasetImportJobSummary& WithDatasetImportJobName(Aws::String&& value) { SetDatasetImportJobName(std::move(value)); return *this;} /** *

The name of the dataset import job.

*/ inline DatasetImportJobSummary& WithDatasetImportJobName(const char* value) { SetDatasetImportJobName(value); return *this;} /** *

The location of the training data to import and an Identity and Access * Management (IAM) role that Amazon Forecast can assume to access the data. The * training data must be stored in an Amazon S3 bucket.

If encryption is * used, DataSource includes an Key Management Service (KMS) key.

*/ inline const DataSource& GetDataSource() const{ return m_dataSource; } /** *

The location of the training data to import and an Identity and Access * Management (IAM) role that Amazon Forecast can assume to access the data. The * training data must be stored in an Amazon S3 bucket.

If encryption is * used, DataSource includes an Key Management Service (KMS) key.

*/ inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; } /** *

The location of the training data to import and an Identity and Access * Management (IAM) role that Amazon Forecast can assume to access the data. The * training data must be stored in an Amazon S3 bucket.

If encryption is * used, DataSource includes an Key Management Service (KMS) key.

*/ inline void SetDataSource(const DataSource& value) { m_dataSourceHasBeenSet = true; m_dataSource = value; } /** *

The location of the training data to import and an Identity and Access * Management (IAM) role that Amazon Forecast can assume to access the data. The * training data must be stored in an Amazon S3 bucket.

If encryption is * used, DataSource includes an Key Management Service (KMS) key.

*/ inline void SetDataSource(DataSource&& value) { m_dataSourceHasBeenSet = true; m_dataSource = std::move(value); } /** *

The location of the training data to import and an Identity and Access * Management (IAM) role that Amazon Forecast can assume to access the data. The * training data must be stored in an Amazon S3 bucket.

If encryption is * used, DataSource includes an Key Management Service (KMS) key.

*/ inline DatasetImportJobSummary& WithDataSource(const DataSource& value) { SetDataSource(value); return *this;} /** *

The location of the training data to import and an Identity and Access * Management (IAM) role that Amazon Forecast can assume to access the data. The * training data must be stored in an Amazon S3 bucket.

If encryption is * used, DataSource includes an Key Management Service (KMS) key.

*/ inline DatasetImportJobSummary& WithDataSource(DataSource&& value) { SetDataSource(std::move(value)); return *this;} /** *

The status of the dataset import job. States include:

  • * ACTIVE

  • CREATE_PENDING, * CREATE_IN_PROGRESS, CREATE_FAILED

  • * DELETE_PENDING, DELETE_IN_PROGRESS, * DELETE_FAILED

  • CREATE_STOPPING, * CREATE_STOPPED

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The status of the dataset import job. States include:

  • * ACTIVE

  • CREATE_PENDING, * CREATE_IN_PROGRESS, CREATE_FAILED

  • * DELETE_PENDING, DELETE_IN_PROGRESS, * DELETE_FAILED

  • CREATE_STOPPING, * CREATE_STOPPED

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

The status of the dataset import job. States include:

  • * ACTIVE

  • CREATE_PENDING, * CREATE_IN_PROGRESS, CREATE_FAILED

  • * DELETE_PENDING, DELETE_IN_PROGRESS, * DELETE_FAILED

  • CREATE_STOPPING, * CREATE_STOPPED

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

The status of the dataset import job. States include:

  • * ACTIVE

  • CREATE_PENDING, * CREATE_IN_PROGRESS, CREATE_FAILED

  • * DELETE_PENDING, DELETE_IN_PROGRESS, * DELETE_FAILED

  • CREATE_STOPPING, * CREATE_STOPPED

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

The status of the dataset import job. States include:

  • * ACTIVE

  • CREATE_PENDING, * CREATE_IN_PROGRESS, CREATE_FAILED

  • * DELETE_PENDING, DELETE_IN_PROGRESS, * DELETE_FAILED

  • CREATE_STOPPING, * CREATE_STOPPED

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The status of the dataset import job. States include:

  • * ACTIVE

  • CREATE_PENDING, * CREATE_IN_PROGRESS, CREATE_FAILED

  • * DELETE_PENDING, DELETE_IN_PROGRESS, * DELETE_FAILED

  • CREATE_STOPPING, * CREATE_STOPPED

*/ inline DatasetImportJobSummary& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The status of the dataset import job. States include:

  • * ACTIVE

  • CREATE_PENDING, * CREATE_IN_PROGRESS, CREATE_FAILED

  • * DELETE_PENDING, DELETE_IN_PROGRESS, * DELETE_FAILED

  • CREATE_STOPPING, * CREATE_STOPPED

*/ inline DatasetImportJobSummary& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The status of the dataset import job. States include:

  • * ACTIVE

  • CREATE_PENDING, * CREATE_IN_PROGRESS, CREATE_FAILED

  • * DELETE_PENDING, DELETE_IN_PROGRESS, * DELETE_FAILED

  • CREATE_STOPPING, * CREATE_STOPPED

*/ inline DatasetImportJobSummary& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

If an error occurred, an informational message about the error.

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

If an error occurred, an informational message about the error.

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

If an error occurred, an informational message about the error.

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

If an error occurred, an informational message about the error.

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

If an error occurred, an informational message about the error.

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

If an error occurred, an informational message about the error.

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

If an error occurred, an informational message about the error.

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

If an error occurred, an informational message about the error.

*/ inline DatasetImportJobSummary& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

When the dataset import job was created.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

When the dataset import job was created.

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

When the dataset import job was created.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

When the dataset import job was created.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *

When the dataset import job was created.

*/ inline DatasetImportJobSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

When the dataset import job was created.

*/ inline DatasetImportJobSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

The last time the resource was modified. The timestamp depends on the status * of the job:

  • CREATE_PENDING - The * CreationTime.

  • CREATE_IN_PROGRESS - * The current timestamp.

  • CREATE_STOPPING - The * current timestamp.

  • CREATE_STOPPED - When the job * stopped.

  • ACTIVE or CREATE_FAILED - * When the job finished or failed.

*/ inline const Aws::Utils::DateTime& GetLastModificationTime() const{ return m_lastModificationTime; } /** *

The last time the resource was modified. The timestamp depends on the status * of the job:

  • CREATE_PENDING - The * CreationTime.

  • CREATE_IN_PROGRESS - * The current timestamp.

  • CREATE_STOPPING - The * current timestamp.

  • CREATE_STOPPED - When the job * stopped.

  • ACTIVE or CREATE_FAILED - * When the job finished or failed.

*/ inline bool LastModificationTimeHasBeenSet() const { return m_lastModificationTimeHasBeenSet; } /** *

The last time the resource was modified. The timestamp depends on the status * of the job:

  • CREATE_PENDING - The * CreationTime.

  • CREATE_IN_PROGRESS - * The current timestamp.

  • CREATE_STOPPING - The * current timestamp.

  • CREATE_STOPPED - When the job * stopped.

  • ACTIVE or CREATE_FAILED - * When the job finished or failed.

*/ inline void SetLastModificationTime(const Aws::Utils::DateTime& value) { m_lastModificationTimeHasBeenSet = true; m_lastModificationTime = value; } /** *

The last time the resource was modified. The timestamp depends on the status * of the job:

  • CREATE_PENDING - The * CreationTime.

  • CREATE_IN_PROGRESS - * The current timestamp.

  • CREATE_STOPPING - The * current timestamp.

  • CREATE_STOPPED - When the job * stopped.

  • ACTIVE or CREATE_FAILED - * When the job finished or failed.

*/ inline void SetLastModificationTime(Aws::Utils::DateTime&& value) { m_lastModificationTimeHasBeenSet = true; m_lastModificationTime = std::move(value); } /** *

The last time the resource was modified. The timestamp depends on the status * of the job:

  • CREATE_PENDING - The * CreationTime.

  • CREATE_IN_PROGRESS - * The current timestamp.

  • CREATE_STOPPING - The * current timestamp.

  • CREATE_STOPPED - When the job * stopped.

  • ACTIVE or CREATE_FAILED - * When the job finished or failed.

*/ inline DatasetImportJobSummary& WithLastModificationTime(const Aws::Utils::DateTime& value) { SetLastModificationTime(value); return *this;} /** *

The last time the resource was modified. The timestamp depends on the status * of the job:

  • CREATE_PENDING - The * CreationTime.

  • CREATE_IN_PROGRESS - * The current timestamp.

  • CREATE_STOPPING - The * current timestamp.

  • CREATE_STOPPED - When the job * stopped.

  • ACTIVE or CREATE_FAILED - * When the job finished or failed.

*/ inline DatasetImportJobSummary& WithLastModificationTime(Aws::Utils::DateTime&& value) { SetLastModificationTime(std::move(value)); return *this;} /** *

The import mode of the dataset import job, FULL or INCREMENTAL.

*/ inline const ImportMode& GetImportMode() const{ return m_importMode; } /** *

The import mode of the dataset import job, FULL or INCREMENTAL.

*/ inline bool ImportModeHasBeenSet() const { return m_importModeHasBeenSet; } /** *

The import mode of the dataset import job, FULL or INCREMENTAL.

*/ inline void SetImportMode(const ImportMode& value) { m_importModeHasBeenSet = true; m_importMode = value; } /** *

The import mode of the dataset import job, FULL or INCREMENTAL.

*/ inline void SetImportMode(ImportMode&& value) { m_importModeHasBeenSet = true; m_importMode = std::move(value); } /** *

The import mode of the dataset import job, FULL or INCREMENTAL.

*/ inline DatasetImportJobSummary& WithImportMode(const ImportMode& value) { SetImportMode(value); return *this;} /** *

The import mode of the dataset import job, FULL or INCREMENTAL.

*/ inline DatasetImportJobSummary& WithImportMode(ImportMode&& value) { SetImportMode(std::move(value)); return *this;} private: Aws::String m_datasetImportJobArn; bool m_datasetImportJobArnHasBeenSet = false; Aws::String m_datasetImportJobName; bool m_datasetImportJobNameHasBeenSet = false; DataSource m_dataSource; bool m_dataSourceHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::Utils::DateTime m_lastModificationTime; bool m_lastModificationTimeHasBeenSet = false; ImportMode m_importMode; bool m_importModeHasBeenSet = false; }; } // namespace Model } // namespace ForecastService } // namespace Aws