pub struct Builder { /* private fields */ }
Expand description
A builder for CreateDatasetImportJobInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_job_name(self, input: Option<String>) -> Self
pub fn set_job_name(self, input: Option<String>) -> Self
The name for the dataset import job.
sourcepub fn dataset_arn(self, input: impl Into<String>) -> Self
pub fn dataset_arn(self, input: impl Into<String>) -> Self
The ARN of the dataset that receives the imported data.
sourcepub fn set_dataset_arn(self, input: Option<String>) -> Self
pub fn set_dataset_arn(self, input: Option<String>) -> Self
The ARN of the dataset that receives the imported data.
sourcepub fn data_source(self, input: DataSource) -> Self
pub fn data_source(self, input: DataSource) -> Self
The Amazon S3 bucket that contains the training data to import.
sourcepub fn set_data_source(self, input: Option<DataSource>) -> Self
pub fn set_data_source(self, input: Option<DataSource>) -> Self
The Amazon S3 bucket that contains the training data to import.
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The ARN of the IAM role that has permissions to read from the Amazon S3 data source.
sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The ARN of the IAM role that has permissions to read from the Amazon S3 data source.
A list of tags to apply to the dataset import job.
sourcepub fn import_mode(self, input: ImportMode) -> Self
pub fn import_mode(self, input: ImportMode) -> Self
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.
sourcepub fn set_import_mode(self, input: Option<ImportMode>) -> Self
pub fn set_import_mode(self, input: Option<ImportMode>) -> Self
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.
sourcepub fn publish_attribution_metrics_to_s3(self, input: bool) -> Self
pub fn publish_attribution_metrics_to_s3(self, input: bool) -> Self
If you created a metric attribution, specify whether to publish metrics for this import job to Amazon S3
sourcepub fn set_publish_attribution_metrics_to_s3(self, input: Option<bool>) -> Self
pub fn set_publish_attribution_metrics_to_s3(self, input: Option<bool>) -> Self
If you created a metric attribution, specify whether to publish metrics for this import job to Amazon S3
sourcepub fn build(self) -> Result<CreateDatasetImportJobInput, BuildError>
pub fn build(self) -> Result<CreateDatasetImportJobInput, BuildError>
Consumes the builder and constructs a CreateDatasetImportJobInput
.