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.BuilderdatasetSource(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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.rekognition.model.RekognitionRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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.Builderavoiding the need to create one manually viaDatasetSource.builder().When the
Consumercompletes,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
TRAINto create a training dataset. SpecifyTESTto create a test dataset.- Parameters:
datasetType- The type of the dataset. SpecifyTRAINto create a training dataset. SpecifyTESTto 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
TRAINto create a training dataset. SpecifyTESTto create a test dataset.- Parameters:
datasetType- The type of the dataset. SpecifyTRAINto create a training dataset. SpecifyTESTto 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-