Struct aws_sdk_personalize::operation::create_dataset_import_job::builders::CreateDatasetImportJobInputBuilder
source · #[non_exhaustive]pub struct CreateDatasetImportJobInputBuilder { /* private fields */ }Expand description
A builder for CreateDatasetImportJobInput.
Implementations§
source§impl CreateDatasetImportJobInputBuilder
impl CreateDatasetImportJobInputBuilder
sourcepub fn job_name(self, input: impl Into<String>) -> Self
pub fn job_name(self, input: impl Into<String>) -> Self
The name for the dataset import job.
This field is required.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 get_job_name(&self) -> &Option<String>
pub fn get_job_name(&self) -> &Option<String>
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.
This field is required.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 get_dataset_arn(&self) -> &Option<String>
pub fn get_dataset_arn(&self) -> &Option<String>
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.
This field is required.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 get_data_source(&self) -> &Option<DataSource>
pub fn get_data_source(&self) -> &Option<DataSource>
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.
This field is required.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.
sourcepub fn get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
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.
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
FULLto overwrite all existing bulk data in your dataset. Data you imported individually is not replaced. -
Specify
INCREMENTALto 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
FULLto overwrite all existing bulk data in your dataset. Data you imported individually is not replaced. -
Specify
INCREMENTALto 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 get_import_mode(&self) -> &Option<ImportMode>
pub fn get_import_mode(&self) -> &Option<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
FULLto overwrite all existing bulk data in your dataset. Data you imported individually is not replaced. -
Specify
INCREMENTALto 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 get_publish_attribution_metrics_to_s3(&self) -> &Option<bool>
pub fn get_publish_attribution_metrics_to_s3(&self) -> &Option<bool>
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.
source§impl CreateDatasetImportJobInputBuilder
impl CreateDatasetImportJobInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateDatasetImportJobOutput, SdkError<CreateDatasetImportJobError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateDatasetImportJobOutput, SdkError<CreateDatasetImportJobError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateDatasetImportJobInputBuilder
impl Clone for CreateDatasetImportJobInputBuilder
source§fn clone(&self) -> CreateDatasetImportJobInputBuilder
fn clone(&self) -> CreateDatasetImportJobInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CreateDatasetImportJobInputBuilder
impl Default for CreateDatasetImportJobInputBuilder
source§fn default() -> CreateDatasetImportJobInputBuilder
fn default() -> CreateDatasetImportJobInputBuilder
source§impl PartialEq for CreateDatasetImportJobInputBuilder
impl PartialEq for CreateDatasetImportJobInputBuilder
source§fn eq(&self, other: &CreateDatasetImportJobInputBuilder) -> bool
fn eq(&self, other: &CreateDatasetImportJobInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CreateDatasetImportJobInputBuilder
Auto Trait Implementations§
impl Freeze for CreateDatasetImportJobInputBuilder
impl RefUnwindSafe for CreateDatasetImportJobInputBuilder
impl Send for CreateDatasetImportJobInputBuilder
impl Sync for CreateDatasetImportJobInputBuilder
impl Unpin for CreateDatasetImportJobInputBuilder
impl UnwindSafe for CreateDatasetImportJobInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more