Interface DetectCustomLabelsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<DetectCustomLabelsRequest.Builder,,DetectCustomLabelsRequest> RekognitionRequest.Builder,SdkBuilder<DetectCustomLabelsRequest.Builder,,DetectCustomLabelsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
DetectCustomLabelsRequest
-
Method Summary
Modifier and TypeMethodDescriptionimage(Consumer<Image.Builder> image) Sets the value of the Image property for this object.Sets the value of the Image property for this object.maxResults(Integer maxResults) Maximum number of results you want the service to return in the response.minConfidence(Float minConfidence) Specifies the minimum confidence level for the labels to return.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.projectVersionArn(String projectVersionArn) The ARN of the model version that you want to use.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
-
projectVersionArn
The ARN of the model version that you want to use. Only models associated with Custom Labels projects accepted by the operation. If a provided ARN refers to a model version associated with a project for a different feature type, then an InvalidParameterException is returned.
- Parameters:
projectVersionArn- The ARN of the model version that you want to use. Only models associated with Custom Labels projects accepted by the operation. If a provided ARN refers to a model version associated with a project for a different feature type, then an InvalidParameterException is returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
image
Sets the value of the Image property for this object.- Parameters:
image- The new value for the Image property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
image
Sets the value of the Image property for this object. This is a convenience method that creates an instance of theImage.Builderavoiding the need to create one manually viaImage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toimage(Image).- Parameters:
image- a consumer that will call methods onImage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxResults
Maximum number of results you want the service to return in the response. The service returns the specified number of highest confidence labels ranked from highest confidence to lowest.
- Parameters:
maxResults- Maximum number of results you want the service to return in the response. The service returns the specified number of highest confidence labels ranked from highest confidence to lowest.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
minConfidence
Specifies the minimum confidence level for the labels to return.
DetectCustomLabelsdoesn't return any labels with a confidence value that's lower than this specified value. If you specify a value of 0,DetectCustomLabelsreturns all labels, regardless of the assumed threshold applied to each label. If you don't specify a value forMinConfidence,DetectCustomLabelsreturns labels based on the assumed threshold of each label.- Parameters:
minConfidence- Specifies the minimum confidence level for the labels to return.DetectCustomLabelsdoesn't return any labels with a confidence value that's lower than this specified value. If you specify a value of 0,DetectCustomLabelsreturns all labels, regardless of the assumed threshold applied to each label. If you don't specify a value forMinConfidence,DetectCustomLabelsreturns labels based on the assumed threshold of each label.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
DetectCustomLabelsRequest.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
DetectCustomLabelsRequest.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.
-