Interface AnalyzeExpenseResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<AnalyzeExpenseResponse.Builder,,AnalyzeExpenseResponse> SdkBuilder<AnalyzeExpenseResponse.Builder,,AnalyzeExpenseResponse> SdkPojo,SdkResponse.Builder,TextractResponse.Builder
- Enclosing class:
AnalyzeExpenseResponse
@Mutable
@NotThreadSafe
public static interface AnalyzeExpenseResponse.Builder
extends TextractResponse.Builder, SdkPojo, CopyableBuilder<AnalyzeExpenseResponse.Builder,AnalyzeExpenseResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault AnalyzeExpenseResponse.BuilderdocumentMetadata(Consumer<DocumentMetadata.Builder> documentMetadata) Sets the value of the DocumentMetadata property for this object.documentMetadata(DocumentMetadata documentMetadata) Sets the value of the DocumentMetadata property for this object.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.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponseMethods inherited from interface software.amazon.awssdk.services.textract.model.TextractResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
documentMetadata
Sets the value of the DocumentMetadata property for this object.- Parameters:
documentMetadata- The new value for the DocumentMetadata property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentMetadata
default AnalyzeExpenseResponse.Builder documentMetadata(Consumer<DocumentMetadata.Builder> documentMetadata) Sets the value of the DocumentMetadata property for this object. This is a convenience method that creates an instance of theDocumentMetadata.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:
-
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
AnalyzeExpenseResponse.Builder expenseDocuments(Consumer<ExpenseDocument.Builder>... expenseDocuments) The expenses detected by Amazon Textract.
This is a convenience method that creates an instance of theExpenseDocument.Builderavoiding the need to create one manually viaExpenseDocument.builder().When the
Consumercompletes,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:
-