Interface DatasetImportJob.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<DatasetImportJob.Builder,DatasetImportJob>,SdkBuilder<DatasetImportJob.Builder,DatasetImportJob>,SdkPojo
- Enclosing class:
- DatasetImportJob
public static interface DatasetImportJob.Builder extends SdkPojo, CopyableBuilder<DatasetImportJob.Builder,DatasetImportJob>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DatasetImportJob.BuildercreationDateTime(Instant creationDateTime)The creation date and time (in Unix time) of the dataset import job.DatasetImportJob.BuilderdatasetArn(String datasetArn)The Amazon Resource Name (ARN) of the dataset that receives the imported data.DatasetImportJob.BuilderdatasetImportJobArn(String datasetImportJobArn)The ARN of the dataset import job.default DatasetImportJob.BuilderdataSource(Consumer<DataSource.Builder> dataSource)The Amazon S3 bucket that contains the training data to import.DatasetImportJob.BuilderdataSource(DataSource dataSource)The Amazon S3 bucket that contains the training data to import.DatasetImportJob.BuilderfailureReason(String failureReason)If a dataset import job fails, provides the reason why.DatasetImportJob.BuilderimportMode(String importMode)The import mode used by the dataset import job to import new records.DatasetImportJob.BuilderimportMode(ImportMode importMode)The import mode used by the dataset import job to import new records.DatasetImportJob.BuilderjobName(String jobName)The name of the import job.DatasetImportJob.BuilderlastUpdatedDateTime(Instant lastUpdatedDateTime)The date and time (in Unix time) the dataset was last updated.DatasetImportJob.BuilderpublishAttributionMetricsToS3(Boolean publishAttributionMetricsToS3)Whether the job publishes metrics to Amazon S3 for a metric attribution.DatasetImportJob.BuilderroleArn(String roleArn)The ARN of the IAM role that has permissions to read from the Amazon S3 data source.DatasetImportJob.Builderstatus(String status)The status of the dataset import job.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
jobName
DatasetImportJob.Builder jobName(String jobName)
The name of the import job.
- Parameters:
jobName- The name of the import job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
datasetImportJobArn
DatasetImportJob.Builder datasetImportJobArn(String datasetImportJobArn)
The ARN of the dataset import job.
- Parameters:
datasetImportJobArn- The ARN of the dataset import job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
datasetArn
DatasetImportJob.Builder datasetArn(String datasetArn)
The Amazon Resource Name (ARN) of the dataset that receives the imported data.
- Parameters:
datasetArn- The Amazon Resource Name (ARN) of the dataset that receives the imported data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataSource
DatasetImportJob.Builder dataSource(DataSource dataSource)
The Amazon S3 bucket that contains the training data to import.
- Parameters:
dataSource- The Amazon S3 bucket that contains the training data to import.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataSource
default DatasetImportJob.Builder dataSource(Consumer<DataSource.Builder> dataSource)
The Amazon S3 bucket that contains the training data to import.
This is a convenience method that creates an instance of theDataSource.Builderavoiding the need to create one manually viaDataSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todataSource(DataSource).- Parameters:
dataSource- a consumer that will call methods onDataSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
dataSource(DataSource)
-
roleArn
DatasetImportJob.Builder roleArn(String roleArn)
The ARN of the IAM role that has permissions to read from the Amazon S3 data source.
- Parameters:
roleArn- The ARN of the IAM role that has permissions to read from the Amazon S3 data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
DatasetImportJob.Builder status(String status)
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
- Parameters:
status- 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
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
creationDateTime
DatasetImportJob.Builder creationDateTime(Instant creationDateTime)
The creation date and time (in Unix time) of the dataset import job.
- Parameters:
creationDateTime- The creation date and time (in Unix time) of the dataset import job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastUpdatedDateTime
DatasetImportJob.Builder lastUpdatedDateTime(Instant lastUpdatedDateTime)
The date and time (in Unix time) the dataset was last updated.
- Parameters:
lastUpdatedDateTime- The date and time (in Unix time) the dataset was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureReason
DatasetImportJob.Builder failureReason(String failureReason)
If a dataset import job fails, provides the reason why.
- Parameters:
failureReason- If a dataset import job fails, provides the reason why.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
importMode
DatasetImportJob.Builder importMode(String importMode)
The import mode used by the dataset import job to import new records.
- Parameters:
importMode- The import mode used by the dataset import job to import new records.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ImportMode,ImportMode
-
importMode
DatasetImportJob.Builder importMode(ImportMode importMode)
The import mode used by the dataset import job to import new records.
- Parameters:
importMode- The import mode used by the dataset import job to import new records.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ImportMode,ImportMode
-
publishAttributionMetricsToS3
DatasetImportJob.Builder publishAttributionMetricsToS3(Boolean publishAttributionMetricsToS3)
Whether the job publishes metrics to Amazon S3 for a metric attribution.
- Parameters:
publishAttributionMetricsToS3- Whether the job publishes metrics to Amazon S3 for a metric attribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-