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

Provides a summary of the properties of a dataset import job. For a complete * listing, call the DescribeDatasetImportJob * API.

See Also:

AWS * API Reference

*/ class DatasetImportJobSummary { public: AWS_PERSONALIZE_API DatasetImportJobSummary(); AWS_PERSONALIZE_API DatasetImportJobSummary(Aws::Utils::Json::JsonView jsonValue); AWS_PERSONALIZE_API DatasetImportJobSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_PERSONALIZE_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& GetJobName() const{ return m_jobName; } /** *

The name of the dataset import job.

*/ inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; } /** *

The name of the dataset import job.

*/ inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; } /** *

The name of the dataset import job.

*/ inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); } /** *

The name of the dataset import job.

*/ inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); } /** *

The name of the dataset import job.

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

The name of the dataset import job.

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

The name of the dataset import job.

*/ inline DatasetImportJobSummary& WithJobName(const char* value) { SetJobName(value); return *this;} /** *

The status of the dataset import job.

A dataset import job can be in * one of the following states:

  • CREATE PENDING > CREATE * IN_PROGRESS > ACTIVE -or- CREATE FAILED

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

The status of the dataset import job.

A dataset import job can be in * one of the following states:

  • CREATE PENDING > CREATE * IN_PROGRESS > ACTIVE -or- CREATE FAILED

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

The status of the dataset import job.

A dataset import job can be in * one of the following states:

  • CREATE PENDING > CREATE * IN_PROGRESS > ACTIVE -or- CREATE FAILED

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

The status of the dataset import job.

A dataset import job can be in * one of the following states:

  • CREATE PENDING > CREATE * IN_PROGRESS > ACTIVE -or- CREATE FAILED

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

The status of the dataset import job.

A dataset import job can be in * one of the following states:

  • CREATE PENDING > CREATE * IN_PROGRESS > ACTIVE -or- CREATE FAILED

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

The status of the dataset import job.

A dataset import job can be in * one of the following states:

  • CREATE PENDING > CREATE * IN_PROGRESS > ACTIVE -or- CREATE FAILED

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

The status of the dataset import job.

A dataset import job can be in * one of the following states:

  • CREATE PENDING > CREATE * IN_PROGRESS > ACTIVE -or- CREATE FAILED

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

The status of the dataset import job.

A dataset import job can be in * one of the following states:

  • CREATE PENDING > CREATE * IN_PROGRESS > ACTIVE -or- CREATE FAILED

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

The date and time (in Unix time) that the dataset import job was created.

*/ inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; } /** *

The date and time (in Unix time) that the dataset import job was created.

*/ inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; } /** *

The date and time (in Unix time) that the dataset import job was created.

*/ inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; } /** *

The date and time (in Unix time) that the dataset import job was created.

*/ inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); } /** *

The date and time (in Unix time) that the dataset import job was created.

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

The date and time (in Unix time) that the dataset import job was created.

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

The date and time (in Unix time) that the dataset import job status was last * updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const{ return m_lastUpdatedDateTime; } /** *

The date and time (in Unix time) that the dataset import job status was last * updated.

*/ inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; } /** *

The date and time (in Unix time) that the dataset import job status was last * updated.

*/ inline void SetLastUpdatedDateTime(const Aws::Utils::DateTime& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = value; } /** *

The date and time (in Unix time) that the dataset import job status was last * updated.

*/ inline void SetLastUpdatedDateTime(Aws::Utils::DateTime&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::move(value); } /** *

The date and time (in Unix time) that the dataset import job status was last * updated.

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

The date and time (in Unix time) that the dataset import job status was last * updated.

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

If a dataset import job fails, the reason behind the failure.

*/ inline const Aws::String& GetFailureReason() const{ return m_failureReason; } /** *

If a dataset import job fails, the reason behind the failure.

*/ inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; } /** *

If a dataset import job fails, the reason behind the failure.

*/ inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; } /** *

If a dataset import job fails, the reason behind the failure.

*/ inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); } /** *

If a dataset import job fails, the reason behind the failure.

*/ inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); } /** *

If a dataset import job fails, the reason behind the failure.

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

If a dataset import job fails, the reason behind the failure.

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

If a dataset import job fails, the reason behind the failure.

*/ inline DatasetImportJobSummary& WithFailureReason(const char* value) { SetFailureReason(value); return *this;} /** *

The import mode the dataset import job used to update the data in the * dataset. For more information see Updating * existing bulk data.

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

The import mode the dataset import job used to update the data in the * dataset. For more information see Updating * existing bulk data.

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

The import mode the dataset import job used to update the data in the * dataset. For more information see Updating * existing bulk data.

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

The import mode the dataset import job used to update the data in the * dataset. For more information see Updating * existing bulk data.

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

The import mode the dataset import job used to update the data in the * dataset. For more information see Updating * existing bulk data.

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

The import mode the dataset import job used to update the data in the * dataset. For more information see Updating * existing bulk data.

*/ inline DatasetImportJobSummary& WithImportMode(ImportMode&& value) { SetImportMode(std::move(value)); return *this;} private: Aws::String m_datasetImportJobArn; bool m_datasetImportJobArnHasBeenSet = false; Aws::String m_jobName; bool m_jobNameHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_creationDateTime; bool m_creationDateTimeHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedDateTime; bool m_lastUpdatedDateTimeHasBeenSet = false; Aws::String m_failureReason; bool m_failureReasonHasBeenSet = false; ImportMode m_importMode; bool m_importModeHasBeenSet = false; }; } // namespace Model } // namespace Personalize } // namespace Aws