public static interface DetectLabelsRequest.Builder extends RekognitionRequest.Builder, CopyableBuilder<DetectLabelsRequest.Builder,DetectLabelsRequest>
Modifier and Type | Method and Description |
---|---|
default DetectLabelsRequest.Builder |
image(Consumer<Image.Builder> image)
The input image.
|
DetectLabelsRequest.Builder |
image(Image image)
The input image.
|
DetectLabelsRequest.Builder |
maxLabels(Integer maxLabels)
Maximum number of labels you want the service to return in the response.
|
DetectLabelsRequest.Builder |
minConfidence(Float minConfidence)
Specifies the minimum confidence level for the labels to return.
|
DetectLabelsRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
DetectLabelsRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
build
overrideConfiguration
copy
applyMutation, build
DetectLabelsRequest.Builder image(Image image)
The input image. You can provide a blob of image bytes or an S3 object.
image
- The input image. You can provide a blob of image bytes or an S3 object.default DetectLabelsRequest.Builder image(Consumer<Image.Builder> image)
The input image. You can provide a blob of image bytes or an S3 object.
This is a convenience that creates an instance of theImage.Builder
avoiding the need to create one
manually via Image.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to image(Image)
.image
- a consumer that will call methods on Image.Builder
image(Image)
DetectLabelsRequest.Builder maxLabels(Integer maxLabels)
Maximum number of labels you want the service to return in the response. The service returns the specified number of highest confidence labels.
maxLabels
- Maximum number of labels you want the service to return in the response. The service returns the
specified number of highest confidence labels.DetectLabelsRequest.Builder minConfidence(Float minConfidence)
Specifies the minimum confidence level for the labels to return. Amazon Rekognition doesn't return any labels with confidence lower than this specified value.
If MinConfidence
is not specified, the operation returns labels with a confidence values greater
than or equal to 50 percent.
minConfidence
- Specifies the minimum confidence level for the labels to return. Amazon Rekognition doesn't return any
labels with confidence lower than this specified value.
If MinConfidence
is not specified, the operation returns labels with a confidence values
greater than or equal to 50 percent.
DetectLabelsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.DetectLabelsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.