Class CfnDataset.DatasetImportJobProperty.Builder
java.lang.Object
software.amazon.awscdk.services.personalize.CfnDataset.DatasetImportJobProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataset.DatasetImportJobProperty>
- Enclosing interface:
CfnDataset.DatasetImportJobProperty
@Stability(Stable)
public static final class CfnDataset.DatasetImportJobProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataset.DatasetImportJobProperty>
A builder for
CfnDataset.DatasetImportJobProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.datasetArn(String datasetArn) Sets the value ofCfnDataset.DatasetImportJobProperty.getDatasetArn()datasetImportJobArn(String datasetImportJobArn) Sets the value ofCfnDataset.DatasetImportJobProperty.getDatasetImportJobArn()dataSource(Object dataSource) Sets the value ofCfnDataset.DatasetImportJobProperty.getDataSource()Sets the value ofCfnDataset.DatasetImportJobProperty.getJobName()Sets the value ofCfnDataset.DatasetImportJobProperty.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
datasetArn
Sets the value ofCfnDataset.DatasetImportJobProperty.getDatasetArn()- Parameters:
datasetArn- The Amazon Resource Name (ARN) of the dataset that receives the imported data.- Returns:
this
-
datasetImportJobArn
@Stability(Stable) public CfnDataset.DatasetImportJobProperty.Builder datasetImportJobArn(String datasetImportJobArn) Sets the value ofCfnDataset.DatasetImportJobProperty.getDatasetImportJobArn()- Parameters:
datasetImportJobArn- The ARN of the dataset import job.- Returns:
this
-
dataSource
Sets the value ofCfnDataset.DatasetImportJobProperty.getDataSource()- Parameters:
dataSource- The Amazon S3 bucket that contains the training data to import.- Returns:
this
-
jobName
Sets the value ofCfnDataset.DatasetImportJobProperty.getJobName()- Parameters:
jobName- The name of the import job.- Returns:
this
-
roleArn
Sets the value ofCfnDataset.DatasetImportJobProperty.getRoleArn()- Parameters:
roleArn- The ARN of the IAM role that has permissions to read from the Amazon S3 data source.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDataset.DatasetImportJobProperty>- Returns:
- a new instance of
CfnDataset.DatasetImportJobProperty - Throws:
NullPointerException- if any required attribute was not provided
-