Interface CreateDatasetRequest.Builder

  • Method Details

    • datasetSource

      CreateDatasetRequest.Builder datasetSource(DatasetSource datasetSource)

      The source files for the dataset. You can specify the ARN of an existing dataset or specify the Amazon S3 bucket location of an Amazon Sagemaker format manifest file. If you don't specify datasetSource, an empty dataset is created. To add labeled images to the dataset, You can use the console or call UpdateDatasetEntries.

      Parameters:
      datasetSource - The source files for the dataset. You can specify the ARN of an existing dataset or specify the Amazon S3 bucket location of an Amazon Sagemaker format manifest file. If you don't specify datasetSource, an empty dataset is created. To add labeled images to the dataset, You can use the console or call UpdateDatasetEntries.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • datasetSource

      default CreateDatasetRequest.Builder datasetSource(Consumer<DatasetSource.Builder> datasetSource)

      The source files for the dataset. You can specify the ARN of an existing dataset or specify the Amazon S3 bucket location of an Amazon Sagemaker format manifest file. If you don't specify datasetSource, an empty dataset is created. To add labeled images to the dataset, You can use the console or call UpdateDatasetEntries.

      This is a convenience method that creates an instance of the DatasetSource.Builder avoiding the need to create one manually via DatasetSource.builder().

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

      Parameters:
      datasetSource - a consumer that will call methods on DatasetSource.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • datasetType

      CreateDatasetRequest.Builder datasetType(String datasetType)

      The type of the dataset. Specify TRAIN to create a training dataset. Specify TEST to create a test dataset.

      Parameters:
      datasetType - The type of the dataset. Specify TRAIN to create a training dataset. Specify TEST to create a test dataset.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • datasetType

      CreateDatasetRequest.Builder datasetType(DatasetType datasetType)

      The type of the dataset. Specify TRAIN to create a training dataset. Specify TEST to create a test dataset.

      Parameters:
      datasetType - The type of the dataset. Specify TRAIN to create a training dataset. Specify TEST to create a test dataset.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • projectArn

      CreateDatasetRequest.Builder projectArn(String projectArn)

      The ARN of the Amazon Rekognition Custom Labels project to which you want to asssign the dataset.

      Parameters:
      projectArn - The ARN of the Amazon Rekognition Custom Labels project to which you want to asssign the dataset.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      A set of tags (key-value pairs) that you want to attach to the dataset.

      Parameters:
      tags - A set of tags (key-value pairs) that you want to attach to the dataset.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      CreateDatasetRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.