/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a job that imports training data from a data source (Amazon S3
* bucket) to an Amazon Personalize dataset. For more information, see CreateDatasetImportJob. A dataset import job can be in one of the following states: CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
See Also:
AWS
* API Reference
The name of the import job.
*/ inline const Aws::String& GetJobName() const{ return m_jobName; } /** *The name of the import job.
*/ inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; } /** *The name of the import job.
*/ inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; } /** *The name of the import job.
*/ inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); } /** *The name of the import job.
*/ inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); } /** *The name of the import job.
*/ inline DatasetImportJob& WithJobName(const Aws::String& value) { SetJobName(value); return *this;} /** *The name of the import job.
*/ inline DatasetImportJob& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;} /** *The name of the import job.
*/ inline DatasetImportJob& WithJobName(const char* value) { SetJobName(value); return *this;} /** *The ARN of the dataset import job.
*/ inline const Aws::String& GetDatasetImportJobArn() const{ return m_datasetImportJobArn; } /** *The ARN of the dataset import job.
*/ inline bool DatasetImportJobArnHasBeenSet() const { return m_datasetImportJobArnHasBeenSet; } /** *The ARN of the dataset import job.
*/ inline void SetDatasetImportJobArn(const Aws::String& value) { m_datasetImportJobArnHasBeenSet = true; m_datasetImportJobArn = value; } /** *The ARN of the dataset import job.
*/ inline void SetDatasetImportJobArn(Aws::String&& value) { m_datasetImportJobArnHasBeenSet = true; m_datasetImportJobArn = std::move(value); } /** *The ARN of the dataset import job.
*/ inline void SetDatasetImportJobArn(const char* value) { m_datasetImportJobArnHasBeenSet = true; m_datasetImportJobArn.assign(value); } /** *The ARN of the dataset import job.
*/ inline DatasetImportJob& WithDatasetImportJobArn(const Aws::String& value) { SetDatasetImportJobArn(value); return *this;} /** *The ARN of the dataset import job.
*/ inline DatasetImportJob& WithDatasetImportJobArn(Aws::String&& value) { SetDatasetImportJobArn(std::move(value)); return *this;} /** *The ARN of the dataset import job.
*/ inline DatasetImportJob& WithDatasetImportJobArn(const char* value) { SetDatasetImportJobArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the dataset that receives the imported * data.
*/ inline const Aws::String& GetDatasetArn() const{ return m_datasetArn; } /** *The Amazon Resource Name (ARN) of the dataset that receives the imported * data.
*/ inline bool DatasetArnHasBeenSet() const { return m_datasetArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the dataset that receives the imported * data.
*/ inline void SetDatasetArn(const Aws::String& value) { m_datasetArnHasBeenSet = true; m_datasetArn = value; } /** *The Amazon Resource Name (ARN) of the dataset that receives the imported * data.
*/ inline void SetDatasetArn(Aws::String&& value) { m_datasetArnHasBeenSet = true; m_datasetArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the dataset that receives the imported * data.
*/ inline void SetDatasetArn(const char* value) { m_datasetArnHasBeenSet = true; m_datasetArn.assign(value); } /** *The Amazon Resource Name (ARN) of the dataset that receives the imported * data.
*/ inline DatasetImportJob& WithDatasetArn(const Aws::String& value) { SetDatasetArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the dataset that receives the imported * data.
*/ inline DatasetImportJob& WithDatasetArn(Aws::String&& value) { SetDatasetArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the dataset that receives the imported * data.
*/ inline DatasetImportJob& WithDatasetArn(const char* value) { SetDatasetArn(value); return *this;} /** *The Amazon S3 bucket that contains the training data to import.
*/ inline const DataSource& GetDataSource() const{ return m_dataSource; } /** *The Amazon S3 bucket that contains the training data to import.
*/ inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; } /** *The Amazon S3 bucket that contains the training data to import.
*/ inline void SetDataSource(const DataSource& value) { m_dataSourceHasBeenSet = true; m_dataSource = value; } /** *The Amazon S3 bucket that contains the training data to import.
*/ inline void SetDataSource(DataSource&& value) { m_dataSourceHasBeenSet = true; m_dataSource = std::move(value); } /** *The Amazon S3 bucket that contains the training data to import.
*/ inline DatasetImportJob& WithDataSource(const DataSource& value) { SetDataSource(value); return *this;} /** *The Amazon S3 bucket that contains the training data to import.
*/ inline DatasetImportJob& WithDataSource(DataSource&& value) { SetDataSource(std::move(value)); return *this;} /** *The ARN of the IAM role that has permissions to read from the Amazon S3 data * source.
*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *The ARN of the IAM role that has permissions to read from the Amazon S3 data * source.
*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *The ARN of the IAM role that has permissions to read from the Amazon S3 data * source.
*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *The ARN of the IAM role that has permissions to read from the Amazon S3 data * source.
*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *The ARN of the IAM role that has permissions to read from the Amazon S3 data * source.
*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *The ARN of the IAM role that has permissions to read from the Amazon S3 data * source.
*/ inline DatasetImportJob& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *The ARN of the IAM role that has permissions to read from the Amazon S3 data * source.
*/ inline DatasetImportJob& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *The ARN of the IAM role that has permissions to read from the Amazon S3 data * source.
*/ inline DatasetImportJob& WithRoleArn(const char* value) { SetRoleArn(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
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
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
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
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
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
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
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
The creation date and time (in Unix time) of the dataset import job.
*/ inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; } /** *The creation date and time (in Unix time) of the dataset import job.
*/ inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; } /** *The creation date and time (in Unix time) of the dataset import job.
*/ inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; } /** *The creation date and time (in Unix time) of the dataset import job.
*/ inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); } /** *The creation date and time (in Unix time) of the dataset import job.
*/ inline DatasetImportJob& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;} /** *The creation date and time (in Unix time) of the dataset import job.
*/ inline DatasetImportJob& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;} /** *The date and time (in Unix time) the dataset was last updated.
*/ inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const{ return m_lastUpdatedDateTime; } /** *The date and time (in Unix time) the dataset was last updated.
*/ inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; } /** *The date and time (in Unix time) the dataset was last updated.
*/ inline void SetLastUpdatedDateTime(const Aws::Utils::DateTime& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = value; } /** *The date and time (in Unix time) the dataset 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) the dataset was last updated.
*/ inline DatasetImportJob& WithLastUpdatedDateTime(const Aws::Utils::DateTime& value) { SetLastUpdatedDateTime(value); return *this;} /** *The date and time (in Unix time) the dataset was last updated.
*/ inline DatasetImportJob& WithLastUpdatedDateTime(Aws::Utils::DateTime&& value) { SetLastUpdatedDateTime(std::move(value)); return *this;} /** *If a dataset import job fails, provides the reason why.
*/ inline const Aws::String& GetFailureReason() const{ return m_failureReason; } /** *If a dataset import job fails, provides the reason why.
*/ inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; } /** *If a dataset import job fails, provides the reason why.
*/ inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; } /** *If a dataset import job fails, provides the reason why.
*/ inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); } /** *If a dataset import job fails, provides the reason why.
*/ inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); } /** *If a dataset import job fails, provides the reason why.
*/ inline DatasetImportJob& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;} /** *If a dataset import job fails, provides the reason why.
*/ inline DatasetImportJob& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;} /** *If a dataset import job fails, provides the reason why.
*/ inline DatasetImportJob& WithFailureReason(const char* value) { SetFailureReason(value); return *this;} /** *The import mode used by the dataset import job to import new records.
*/ inline const ImportMode& GetImportMode() const{ return m_importMode; } /** *The import mode used by the dataset import job to import new records.
*/ inline bool ImportModeHasBeenSet() const { return m_importModeHasBeenSet; } /** *The import mode used by the dataset import job to import new records.
*/ inline void SetImportMode(const ImportMode& value) { m_importModeHasBeenSet = true; m_importMode = value; } /** *The import mode used by the dataset import job to import new records.
*/ inline void SetImportMode(ImportMode&& value) { m_importModeHasBeenSet = true; m_importMode = std::move(value); } /** *The import mode used by the dataset import job to import new records.
*/ inline DatasetImportJob& WithImportMode(const ImportMode& value) { SetImportMode(value); return *this;} /** *The import mode used by the dataset import job to import new records.
*/ inline DatasetImportJob& WithImportMode(ImportMode&& value) { SetImportMode(std::move(value)); return *this;} /** *Whether the job publishes metrics to Amazon S3 for a metric attribution.
*/ inline bool GetPublishAttributionMetricsToS3() const{ return m_publishAttributionMetricsToS3; } /** *Whether the job publishes metrics to Amazon S3 for a metric attribution.
*/ inline bool PublishAttributionMetricsToS3HasBeenSet() const { return m_publishAttributionMetricsToS3HasBeenSet; } /** *Whether the job publishes metrics to Amazon S3 for a metric attribution.
*/ inline void SetPublishAttributionMetricsToS3(bool value) { m_publishAttributionMetricsToS3HasBeenSet = true; m_publishAttributionMetricsToS3 = value; } /** *Whether the job publishes metrics to Amazon S3 for a metric attribution.
*/ inline DatasetImportJob& WithPublishAttributionMetricsToS3(bool value) { SetPublishAttributionMetricsToS3(value); return *this;} private: Aws::String m_jobName; bool m_jobNameHasBeenSet = false; Aws::String m_datasetImportJobArn; bool m_datasetImportJobArnHasBeenSet = false; Aws::String m_datasetArn; bool m_datasetArnHasBeenSet = false; DataSource m_dataSource; bool m_dataSourceHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = 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; bool m_publishAttributionMetricsToS3; bool m_publishAttributionMetricsToS3HasBeenSet = false; }; } // namespace Model } // namespace Personalize } // namespace Aws