Interface CreateDatasetRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateDatasetRequest.Builder,
,CreateDatasetRequest> RekognitionRequest.Builder
,SdkBuilder<CreateDatasetRequest.Builder,
,CreateDatasetRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateDatasetRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateDatasetRequest.Builder
datasetSource
(Consumer<DatasetSource.Builder> datasetSource) The source files for the dataset.datasetSource
(DatasetSource datasetSource) The source files for the dataset.datasetType
(String datasetType) The type of the dataset.datasetType
(DatasetType datasetType) The type of the dataset.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.projectArn
(String projectArn) The ARN of the Amazon Rekognition Custom Labels project to which you want to asssign the dataset.A set of tags (key-value pairs) that you want to attach to the dataset.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.rekognition.model.RekognitionRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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 specifydatasetSource
, 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
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
This is a convenience method that creates an instance of thedatasetSource
, an empty dataset is created. To add labeled images to the dataset, You can use the console or call UpdateDatasetEntries.DatasetSource.Builder
avoiding the need to create one manually viaDatasetSource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todatasetSource(DatasetSource)
.- Parameters:
datasetSource
- a consumer that will call methods onDatasetSource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
datasetType
The type of the dataset. Specify
TRAIN
to create a training dataset. SpecifyTEST
to create a test dataset.- Parameters:
datasetType
- The type of the dataset. SpecifyTRAIN
to create a training dataset. SpecifyTEST
to create a test dataset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
datasetType
The type of the dataset. Specify
TRAIN
to create a training dataset. SpecifyTEST
to create a test dataset.- Parameters:
datasetType
- The type of the dataset. SpecifyTRAIN
to create a training dataset. SpecifyTEST
to create a test dataset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateDatasetRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-