public static class AnalyzeDocumentResult.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AnalyzeDocumentResult |
build() |
AnalyzeDocumentResult.Builder |
copy(AnalyzeDocumentResult model) |
AnalyzeDocumentResult.Builder |
detectedDocumentTypes(List<DetectedDocumentType> detectedDocumentTypes)
An array of detected document types.
|
AnalyzeDocumentResult.Builder |
detectedLanguages(List<DetectedLanguage> detectedLanguages)
An array of detected languages.
|
AnalyzeDocumentResult.Builder |
documentClassificationModelVersion(String documentClassificationModelVersion)
The document classification model version.
|
AnalyzeDocumentResult.Builder |
documentMetadata(DocumentMetadata documentMetadata) |
AnalyzeDocumentResult.Builder |
errors(List<ProcessingError> errors)
The errors encountered during document analysis.
|
AnalyzeDocumentResult.Builder |
keyValueDetectionModelVersion(String keyValueDetectionModelVersion)
The document keyValue detection model version.
|
AnalyzeDocumentResult.Builder |
languageClassificationModelVersion(String languageClassificationModelVersion)
The document language classification model version.
|
AnalyzeDocumentResult.Builder |
pages(List<Page> pages)
The array of a Page.
|
AnalyzeDocumentResult.Builder |
searchablePdf(byte[] searchablePdf)
The searchable PDF file that was generated.
|
AnalyzeDocumentResult.Builder |
tableDetectionModelVersion(String tableDetectionModelVersion)
The document table detection model version.
|
AnalyzeDocumentResult.Builder |
textDetectionModelVersion(String textDetectionModelVersion)
The document text detection model version.
|
public AnalyzeDocumentResult.Builder documentMetadata(DocumentMetadata documentMetadata)
public AnalyzeDocumentResult.Builder pages(List<Page> pages)
The array of a Page.
pages
- the value to setpublic AnalyzeDocumentResult.Builder detectedDocumentTypes(List<DetectedDocumentType> detectedDocumentTypes)
An array of detected document types.
detectedDocumentTypes
- the value to setpublic AnalyzeDocumentResult.Builder detectedLanguages(List<DetectedLanguage> detectedLanguages)
An array of detected languages.
detectedLanguages
- the value to setpublic AnalyzeDocumentResult.Builder documentClassificationModelVersion(String documentClassificationModelVersion)
The document classification model version.
documentClassificationModelVersion
- the value to setpublic AnalyzeDocumentResult.Builder languageClassificationModelVersion(String languageClassificationModelVersion)
The document language classification model version.
languageClassificationModelVersion
- the value to setpublic AnalyzeDocumentResult.Builder textDetectionModelVersion(String textDetectionModelVersion)
The document text detection model version.
textDetectionModelVersion
- the value to setpublic AnalyzeDocumentResult.Builder keyValueDetectionModelVersion(String keyValueDetectionModelVersion)
The document keyValue detection model version.
keyValueDetectionModelVersion
- the value to setpublic AnalyzeDocumentResult.Builder tableDetectionModelVersion(String tableDetectionModelVersion)
The document table detection model version.
tableDetectionModelVersion
- the value to setpublic AnalyzeDocumentResult.Builder errors(List<ProcessingError> errors)
The errors encountered during document analysis.
errors
- the value to setpublic AnalyzeDocumentResult.Builder searchablePdf(byte[] searchablePdf)
The searchable PDF file that was generated.
searchablePdf
- the value to setpublic AnalyzeDocumentResult build()
public AnalyzeDocumentResult.Builder copy(AnalyzeDocumentResult model)
Copyright © 2016–2024. All rights reserved.