Interface GetExpenseAnalysisResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetExpenseAnalysisResponse.Builder,
,GetExpenseAnalysisResponse> SdkBuilder<GetExpenseAnalysisResponse.Builder,
,GetExpenseAnalysisResponse> SdkPojo
,SdkResponse.Builder
,TextractResponse.Builder
- Enclosing class:
GetExpenseAnalysisResponse
-
Method Summary
Modifier and TypeMethodDescriptionanalyzeExpenseModelVersion
(String analyzeExpenseModelVersion) The current model version of AnalyzeExpense.documentMetadata
(Consumer<DocumentMetadata.Builder> documentMetadata) Information about a document that Amazon Textract processed.documentMetadata
(DocumentMetadata documentMetadata) Information about a document that Amazon Textract processed.expenseDocuments
(Collection<ExpenseDocument> expenseDocuments) The expenses detected by Amazon Textract.expenseDocuments
(Consumer<ExpenseDocument.Builder>... expenseDocuments) The expenses detected by Amazon Textract.expenseDocuments
(ExpenseDocument... expenseDocuments) The expenses detected by Amazon Textract.The current status of the text detection job.The current status of the text detection job.If the response is truncated, Amazon Textract returns this token.statusMessage
(String statusMessage) Returns if the detection job could not be completed.warnings
(Collection<Warning> warnings) A list of warnings that occurred during the text-detection operation for the document.warnings
(Consumer<Warning.Builder>... warnings) A list of warnings that occurred during the text-detection operation for the document.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, 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 Details
-
documentMetadata
Information about a document that Amazon Textract processed.
DocumentMetadata
is returned in every page of paginated responses from an Amazon Textract operation.- Parameters:
documentMetadata
- Information about a document that Amazon Textract processed.DocumentMetadata
is returned in every page of paginated responses from an Amazon Textract operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentMetadata
default GetExpenseAnalysisResponse.Builder documentMetadata(Consumer<DocumentMetadata.Builder> documentMetadata) Information about a document that Amazon Textract processed.
This is a convenience method that creates an instance of theDocumentMetadata
is returned in every page of paginated responses from an Amazon Textract operation.DocumentMetadata.Builder
avoiding the need to create one manually viaDocumentMetadata.builder()
.When the
Consumer
completes,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:
-
jobStatus
The current status of the text detection job.
- Parameters:
jobStatus
- The current status of the text detection job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
jobStatus
The current status of the text detection job.
- Parameters:
jobStatus
- The current status of the text detection job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-
expenseDocuments
The expenses detected by Amazon Textract.
- Parameters:
expenseDocuments
- The expenses detected by Amazon Textract.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expenseDocuments
The expenses detected by Amazon Textract.
- Parameters:
expenseDocuments
- The expenses detected by Amazon Textract.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expenseDocuments
GetExpenseAnalysisResponse.Builder expenseDocuments(Consumer<ExpenseDocument.Builder>... expenseDocuments) The expenses detected by Amazon Textract.
This is a convenience method that creates an instance of theExpenseDocument.Builder
avoiding the need to create one manually viaExpenseDocument.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toexpenseDocuments(List<ExpenseDocument>)
.- Parameters:
expenseDocuments
- a consumer that will call methods onExpenseDocument.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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.Builder
avoiding the need to create one manually viaWarning.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed towarnings(List<Warning>)
.- 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:
-
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.
-
analyzeExpenseModelVersion
The current model version of AnalyzeExpense.
- Parameters:
analyzeExpenseModelVersion
- The current model version of AnalyzeExpense.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-