Interface DetectTextResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DetectTextResponse.Builder,
,DetectTextResponse> RekognitionResponse.Builder
,SdkBuilder<DetectTextResponse.Builder,
,DetectTextResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DetectTextResponse
public static interface DetectTextResponse.Builder
extends RekognitionResponse.Builder, SdkPojo, CopyableBuilder<DetectTextResponse.Builder,DetectTextResponse>
-
Method Summary
Modifier and TypeMethodDescriptiontextDetections
(Collection<TextDetection> textDetections) An array of text that was detected in the input image.textDetections
(Consumer<TextDetection.Builder>... textDetections) An array of text that was detected in the input image.textDetections
(TextDetection... textDetections) An array of text that was detected in the input image.textModelVersion
(String textModelVersion) The model version used to detect text.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.rekognition.model.RekognitionResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
textDetections
An array of text that was detected in the input image.
- Parameters:
textDetections
- An array of text that was detected in the input image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
textDetections
An array of text that was detected in the input image.
- Parameters:
textDetections
- An array of text that was detected in the input image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
textDetections
An array of text that was detected in the input image.
This is a convenience method that creates an instance of theTextDetection.Builder
avoiding the need to create one manually viaTextDetection.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totextDetections(List<TextDetection>)
.- Parameters:
textDetections
- a consumer that will call methods onTextDetection.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
textModelVersion
The model version used to detect text.
- Parameters:
textModelVersion
- The model version used to detect text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-