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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DetectTextResponse.BuildertextDetections(Collection<TextDetection> textDetections)An array of text that was detected in the input image.DetectTextResponse.BuildertextDetections(Consumer<TextDetection.Builder>... textDetections)An array of text that was detected in the input image.DetectTextResponse.BuildertextDetections(TextDetection... textDetections)An array of text that was detected in the input image.DetectTextResponse.BuildertextModelVersion(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 Detail
-
textDetections
DetectTextResponse.Builder textDetections(Collection<TextDetection> 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
DetectTextResponse.Builder textDetections(TextDetection... 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
DetectTextResponse.Builder textDetections(Consumer<TextDetection.Builder>... textDetections)
An array of text that was detected in the input image.
This is a convenience method that creates an instance of theTextDetection.Builderavoiding the need to create one manually viaTextDetection.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#textDetections(List.) - 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:
#textDetections(java.util.Collection)
-
textModelVersion
DetectTextResponse.Builder textModelVersion(String 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.
-
-