Interface GetExpenseAnalysisResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetExpenseAnalysisResponse.Builder,GetExpenseAnalysisResponse>
,SdkBuilder<GetExpenseAnalysisResponse.Builder,GetExpenseAnalysisResponse>
,SdkPojo
,SdkResponse.Builder
,TextractResponse.Builder
- Enclosing class:
- GetExpenseAnalysisResponse
public static interface GetExpenseAnalysisResponse.Builder extends TextractResponse.Builder, SdkPojo, CopyableBuilder<GetExpenseAnalysisResponse.Builder,GetExpenseAnalysisResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GetExpenseAnalysisResponse.Builder
analyzeExpenseModelVersion(String analyzeExpenseModelVersion)
The current model version of AnalyzeExpense.default GetExpenseAnalysisResponse.Builder
documentMetadata(Consumer<DocumentMetadata.Builder> documentMetadata)
Information about a document that Amazon Textract processed.GetExpenseAnalysisResponse.Builder
documentMetadata(DocumentMetadata documentMetadata)
Information about a document that Amazon Textract processed.GetExpenseAnalysisResponse.Builder
expenseDocuments(Collection<ExpenseDocument> expenseDocuments)
The expenses detected by Amazon Textract.GetExpenseAnalysisResponse.Builder
expenseDocuments(Consumer<ExpenseDocument.Builder>... expenseDocuments)
The expenses detected by Amazon Textract.GetExpenseAnalysisResponse.Builder
expenseDocuments(ExpenseDocument... expenseDocuments)
The expenses detected by Amazon Textract.GetExpenseAnalysisResponse.Builder
jobStatus(String jobStatus)
The current status of the text detection job.GetExpenseAnalysisResponse.Builder
jobStatus(JobStatus jobStatus)
The current status of the text detection job.GetExpenseAnalysisResponse.Builder
nextToken(String nextToken)
If the response is truncated, Amazon Textract returns this token.GetExpenseAnalysisResponse.Builder
statusMessage(String statusMessage)
Returns if the detection job could not be completed.GetExpenseAnalysisResponse.Builder
warnings(Collection<Warning> warnings)
A list of warnings that occurred during the text-detection operation for the document.GetExpenseAnalysisResponse.Builder
warnings(Consumer<Warning.Builder>... warnings)
A list of warnings that occurred during the text-detection operation for the document.GetExpenseAnalysisResponse.Builder
warnings(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, 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
GetExpenseAnalysisResponse.Builder documentMetadata(DocumentMetadata 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:
documentMetadata(DocumentMetadata)
-
jobStatus
GetExpenseAnalysisResponse.Builder jobStatus(String jobStatus)
The current status of the text detection job.
-
jobStatus
GetExpenseAnalysisResponse.Builder jobStatus(JobStatus jobStatus)
The current status of the text detection job.
-
nextToken
GetExpenseAnalysisResponse.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.
-
expenseDocuments
GetExpenseAnalysisResponse.Builder expenseDocuments(Collection<ExpenseDocument> 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(ExpenseDocument... 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 to#expenseDocuments(List
.) - 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:
#expenseDocuments(java.util.Collection
)
-
warnings
GetExpenseAnalysisResponse.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
GetExpenseAnalysisResponse.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
GetExpenseAnalysisResponse.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.Builder
avoiding the need to create one manually viaWarning.builder()
.When the
Consumer
completes,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
GetExpenseAnalysisResponse.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.
-
analyzeExpenseModelVersion
GetExpenseAnalysisResponse.Builder analyzeExpenseModelVersion(String 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.
-
-