Interface GetDocumentTextDetectionResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetDocumentTextDetectionResponse.Builder,GetDocumentTextDetectionResponse>,SdkBuilder<GetDocumentTextDetectionResponse.Builder,GetDocumentTextDetectionResponse>,SdkPojo,SdkResponse.Builder,TextractResponse.Builder
- Enclosing class:
- GetDocumentTextDetectionResponse
@Mutable @NotThreadSafe public static interface GetDocumentTextDetectionResponse.Builder extends TextractResponse.Builder, SdkPojo, CopyableBuilder<GetDocumentTextDetectionResponse.Builder,GetDocumentTextDetectionResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GetDocumentTextDetectionResponse.Builderblocks(Collection<Block> blocks)The results of the text-detection operation.GetDocumentTextDetectionResponse.Builderblocks(Consumer<Block.Builder>... blocks)The results of the text-detection operation.GetDocumentTextDetectionResponse.Builderblocks(Block... blocks)The results of the text-detection operation.GetDocumentTextDetectionResponse.BuilderdetectDocumentTextModelVersion(String detectDocumentTextModelVersion)default GetDocumentTextDetectionResponse.BuilderdocumentMetadata(Consumer<DocumentMetadata.Builder> documentMetadata)Information about a document that Amazon Textract processed.GetDocumentTextDetectionResponse.BuilderdocumentMetadata(DocumentMetadata documentMetadata)Information about a document that Amazon Textract processed.GetDocumentTextDetectionResponse.BuilderjobStatus(String jobStatus)The current status of the text detection job.GetDocumentTextDetectionResponse.BuilderjobStatus(JobStatus jobStatus)The current status of the text detection job.GetDocumentTextDetectionResponse.BuildernextToken(String nextToken)If the response is truncated, Amazon Textract returns this token.GetDocumentTextDetectionResponse.BuilderstatusMessage(String statusMessage)Returns if the detection job could not be completed.GetDocumentTextDetectionResponse.Builderwarnings(Collection<Warning> warnings)A list of warnings that occurred during the text-detection operation for the document.GetDocumentTextDetectionResponse.Builderwarnings(Consumer<Warning.Builder>... warnings)A list of warnings that occurred during the text-detection operation for the document.GetDocumentTextDetectionResponse.Builderwarnings(Warning... warnings)A list of warnings that occurred during the text-detection operation for the document.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Methods inherited from interface software.amazon.awssdk.services.textract.model.TextractResponse.Builder
build, responseMetadata, responseMetadata
-
-
-
-
Method Detail
-
documentMetadata
GetDocumentTextDetectionResponse.Builder documentMetadata(DocumentMetadata documentMetadata)
Information about a document that Amazon Textract processed.
DocumentMetadatais returned in every page of paginated responses from an Amazon Textract video operation.- Parameters:
documentMetadata- Information about a document that Amazon Textract processed.DocumentMetadatais returned in every page of paginated responses from an Amazon Textract video operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentMetadata
default GetDocumentTextDetectionResponse.Builder documentMetadata(Consumer<DocumentMetadata.Builder> documentMetadata)
Information about a document that Amazon Textract processed.
This is a convenience method that creates an instance of theDocumentMetadatais returned in every page of paginated responses from an Amazon Textract video operation.DocumentMetadata.Builderavoiding the need to create one manually viaDocumentMetadata.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todocumentMetadata(DocumentMetadata).- Parameters:
documentMetadata- a consumer that will call methods onDocumentMetadata.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
documentMetadata(DocumentMetadata)
-
jobStatus
GetDocumentTextDetectionResponse.Builder jobStatus(String jobStatus)
The current status of the text detection job.
-
jobStatus
GetDocumentTextDetectionResponse.Builder jobStatus(JobStatus jobStatus)
The current status of the text detection job.
-
nextToken
GetDocumentTextDetectionResponse.Builder nextToken(String nextToken)
If the response is truncated, Amazon Textract returns this token. You can use this token in the subsequent request to retrieve the next set of text-detection results.
- Parameters:
nextToken- If the response is truncated, Amazon Textract returns this token. You can use this token in the subsequent request to retrieve the next set of text-detection results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blocks
GetDocumentTextDetectionResponse.Builder blocks(Collection<Block> blocks)
The results of the text-detection operation.
- Parameters:
blocks- The results of the text-detection operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blocks
GetDocumentTextDetectionResponse.Builder blocks(Block... blocks)
The results of the text-detection operation.
- Parameters:
blocks- The results of the text-detection operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blocks
GetDocumentTextDetectionResponse.Builder blocks(Consumer<Block.Builder>... blocks)
The results of the text-detection operation.
This is a convenience method that creates an instance of theBlock.Builderavoiding the need to create one manually viaBlock.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#blocks(List.) - Parameters:
blocks- a consumer that will call methods onBlock.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#blocks(java.util.Collection)
-
warnings
GetDocumentTextDetectionResponse.Builder warnings(Collection<Warning> warnings)
A list of warnings that occurred during the text-detection operation for the document.
- Parameters:
warnings- A list of warnings that occurred during the text-detection operation for the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
warnings
GetDocumentTextDetectionResponse.Builder warnings(Warning... warnings)
A list of warnings that occurred during the text-detection operation for the document.
- Parameters:
warnings- A list of warnings that occurred during the text-detection operation for the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
warnings
GetDocumentTextDetectionResponse.Builder warnings(Consumer<Warning.Builder>... warnings)
A list of warnings that occurred during the text-detection operation for the document.
This is a convenience method that creates an instance of theWarning.Builderavoiding the need to create one manually viaWarning.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#warnings(List.) - Parameters:
warnings- a consumer that will call methods onWarning.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#warnings(java.util.Collection)
-
statusMessage
GetDocumentTextDetectionResponse.Builder statusMessage(String statusMessage)
Returns if the detection job could not be completed. Contains explanation for what error occured.
- Parameters:
statusMessage- Returns if the detection job could not be completed. Contains explanation for what error occured.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
detectDocumentTextModelVersion
GetDocumentTextDetectionResponse.Builder detectDocumentTextModelVersion(String detectDocumentTextModelVersion)
- Parameters:
detectDocumentTextModelVersion-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-