Interface CreateDatasetRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateDatasetRequest.Builder,CreateDatasetRequest>,RekognitionRequest.Builder,SdkBuilder<CreateDatasetRequest.Builder,CreateDatasetRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateDatasetRequest
public static interface CreateDatasetRequest.Builder extends RekognitionRequest.Builder, SdkPojo, CopyableBuilder<CreateDatasetRequest.Builder,CreateDatasetRequest>
-
-
Method Summary
-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
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 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
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
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:
datasetSource(DatasetSource)
-
datasetType
CreateDatasetRequest.Builder datasetType(String 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,DatasetType
-
datasetType
CreateDatasetRequest.Builder datasetType(DatasetType 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,DatasetType
-
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
CreateDatasetRequest.Builder tags(Map<String,String> 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateDatasetRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-