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 Details

    • 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 the DataSource.Builder avoiding the need to create one manually via DataSource.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to dataSource(DataSource).

      Parameters:
      dataSource - a consumer that will call methods on DataSource.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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

      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:
    • 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.