/** * 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 #include namespace Aws { namespace Personalize { namespace Model { /** */ class CreateDatasetImportJobRequest : public PersonalizeRequest { public: AWS_PERSONALIZE_API CreateDatasetImportJobRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateDatasetImportJob"; } AWS_PERSONALIZE_API Aws::String SerializePayload() const override; AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name for the dataset import job.

*/ inline const Aws::String& GetJobName() const{ return m_jobName; } /** *

The name for the dataset import job.

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

The name for the dataset import job.

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

The name for the dataset import job.

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

The name for the dataset import job.

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

The name for the dataset import job.

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

The name for the dataset import job.

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

The name for the dataset import job.

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

The ARN of the dataset that receives the imported data.

*/ inline const Aws::String& GetDatasetArn() const{ return m_datasetArn; } /** *

The ARN of the dataset that receives the imported data.

*/ inline bool DatasetArnHasBeenSet() const { return m_datasetArnHasBeenSet; } /** *

The ARN of the dataset that receives the imported data.

*/ inline void SetDatasetArn(const Aws::String& value) { m_datasetArnHasBeenSet = true; m_datasetArn = value; } /** *

The ARN of the dataset that receives the imported data.

*/ inline void SetDatasetArn(Aws::String&& value) { m_datasetArnHasBeenSet = true; m_datasetArn = std::move(value); } /** *

The ARN of the dataset that receives the imported data.

*/ inline void SetDatasetArn(const char* value) { m_datasetArnHasBeenSet = true; m_datasetArn.assign(value); } /** *

The ARN of the dataset that receives the imported data.

*/ inline CreateDatasetImportJobRequest& WithDatasetArn(const Aws::String& value) { SetDatasetArn(value); return *this;} /** *

The ARN of the dataset that receives the imported data.

*/ inline CreateDatasetImportJobRequest& WithDatasetArn(Aws::String&& value) { SetDatasetArn(std::move(value)); return *this;} /** *

The ARN of the dataset that receives the imported data.

*/ inline CreateDatasetImportJobRequest& 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 CreateDatasetImportJobRequest& WithDataSource(const DataSource& value) { SetDataSource(value); return *this;} /** *

The Amazon S3 bucket that contains the training data to import.

*/ inline CreateDatasetImportJobRequest& 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 CreateDatasetImportJobRequest& 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 CreateDatasetImportJobRequest& 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 CreateDatasetImportJobRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

A list of tags * to apply to the dataset import job.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of tags * to apply to the dataset import job.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of tags * to apply to the dataset import job.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of tags * to apply to the dataset import job.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of tags * to apply to the dataset import job.

*/ inline CreateDatasetImportJobRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of tags * to apply to the dataset import job.

*/ inline CreateDatasetImportJobRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of tags * to apply to the dataset import job.

*/ inline CreateDatasetImportJobRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of tags * to apply to the dataset import job.

*/ inline CreateDatasetImportJobRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

Specify how to add the new records to an existing dataset. The default import * mode is FULL. If you haven't imported bulk records into the dataset * previously, you can only specify FULL.

  • Specify * FULL to overwrite all existing bulk data in your dataset. Data you * imported individually is not replaced.

  • Specify * INCREMENTAL to append the new records to the existing data in your * dataset. Amazon Personalize replaces any record with the same ID with the new * one.

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

Specify how to add the new records to an existing dataset. The default import * mode is FULL. If you haven't imported bulk records into the dataset * previously, you can only specify FULL.

  • Specify * FULL to overwrite all existing bulk data in your dataset. Data you * imported individually is not replaced.

  • Specify * INCREMENTAL to append the new records to the existing data in your * dataset. Amazon Personalize replaces any record with the same ID with the new * one.

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

Specify how to add the new records to an existing dataset. The default import * mode is FULL. If you haven't imported bulk records into the dataset * previously, you can only specify FULL.

  • Specify * FULL to overwrite all existing bulk data in your dataset. Data you * imported individually is not replaced.

  • Specify * INCREMENTAL to append the new records to the existing data in your * dataset. Amazon Personalize replaces any record with the same ID with the new * one.

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

Specify how to add the new records to an existing dataset. The default import * mode is FULL. If you haven't imported bulk records into the dataset * previously, you can only specify FULL.

  • Specify * FULL to overwrite all existing bulk data in your dataset. Data you * imported individually is not replaced.

  • Specify * INCREMENTAL to append the new records to the existing data in your * dataset. Amazon Personalize replaces any record with the same ID with the new * one.

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

Specify how to add the new records to an existing dataset. The default import * mode is FULL. If you haven't imported bulk records into the dataset * previously, you can only specify FULL.

  • Specify * FULL to overwrite all existing bulk data in your dataset. Data you * imported individually is not replaced.

  • Specify * INCREMENTAL to append the new records to the existing data in your * dataset. Amazon Personalize replaces any record with the same ID with the new * one.

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

Specify how to add the new records to an existing dataset. The default import * mode is FULL. If you haven't imported bulk records into the dataset * previously, you can only specify FULL.

  • Specify * FULL to overwrite all existing bulk data in your dataset. Data you * imported individually is not replaced.

  • Specify * INCREMENTAL to append the new records to the existing data in your * dataset. Amazon Personalize replaces any record with the same ID with the new * one.

*/ inline CreateDatasetImportJobRequest& WithImportMode(ImportMode&& value) { SetImportMode(std::move(value)); return *this;} /** *

If you created a metric attribution, specify whether to publish metrics for * this import job to Amazon S3

*/ inline bool GetPublishAttributionMetricsToS3() const{ return m_publishAttributionMetricsToS3; } /** *

If you created a metric attribution, specify whether to publish metrics for * this import job to Amazon S3

*/ inline bool PublishAttributionMetricsToS3HasBeenSet() const { return m_publishAttributionMetricsToS3HasBeenSet; } /** *

If you created a metric attribution, specify whether to publish metrics for * this import job to Amazon S3

*/ inline void SetPublishAttributionMetricsToS3(bool value) { m_publishAttributionMetricsToS3HasBeenSet = true; m_publishAttributionMetricsToS3 = value; } /** *

If you created a metric attribution, specify whether to publish metrics for * this import job to Amazon S3

*/ inline CreateDatasetImportJobRequest& WithPublishAttributionMetricsToS3(bool value) { SetPublishAttributionMetricsToS3(value); return *this;} private: Aws::String m_jobName; bool m_jobNameHasBeenSet = 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::Vector m_tags; bool m_tagsHasBeenSet = false; ImportMode m_importMode; bool m_importModeHasBeenSet = false; bool m_publishAttributionMetricsToS3; bool m_publishAttributionMetricsToS3HasBeenSet = false; }; } // namespace Model } // namespace Personalize } // namespace Aws