Class AnalyzeBatchDocumentsOptions
java.lang.Object
com.azure.ai.documentintelligence.models.AnalyzeBatchDocumentsOptions
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AnalyzeBatchDocumentsOptions>
public final class AnalyzeBatchDocumentsOptions
extends Object
implements com.azure.json.JsonSerializable<AnalyzeBatchDocumentsOptions>
Batch document analysis parameters.
-
Constructor Summary
ConstructorDescriptionAnalyzeBatchDocumentsOptions
(AzureBlobContentSource azureBlobSource, String resultContainerUrl) Creates an instance of AnalyzeBatchDocumentsOptions with the specified Azure Blob source and result container URL.AnalyzeBatchDocumentsOptions
(AzureBlobFileListContentSource azureBlobFileListSource, String resultContainerUrl) Creates an instance of AnalyzeBatchDocumentsOptions with the specified result container URL and Azure Blob file list source. -
Method Summary
Modifier and TypeMethodDescriptionstatic AnalyzeBatchDocumentsOptions
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of AnalyzeBatchDocumentsOptions from the JsonReader.Get the azureBlobFileListSource property: Azure Blob Storage file list specifying the batch documents.Get the azureBlobSource property: Azure Blob Storage location containing the batch documents.Get the list of optional analysis features.Get the locale hint for text recognition and document analysis.Gets the list of output formats.Gets the output content format.getPages()
Get the custom page numbers for multipage documents(PDF/TIFF).Gets the list of additional fields to include in the result.Get the resultContainerUrl property: Azure Blob Storage container URL where analyze result files will be stored.Get the resultPrefix property: Blob name prefix of result files.Gets the string index type.Get the overwriteExisting property: Overwrite existing analyze result files?.setDocumentAnalysisFeatures
(DocumentAnalysisFeature... documentAnalysisFeatures) Set optional analysis features.setDocumentAnalysisFeatures
(List<DocumentAnalysisFeature> documentAnalysisFeatures) Set the list of optional analysis features.Set the locale value.setOutput
(List<AnalyzeOutputFormat> output) Sets the list of output formats.setOutputContentFormat
(DocumentContentFormat outputContentFormat) Sets the output content format.setOverwriteExisting
(Boolean overwriteExisting) Set the overwriteExisting property: Overwrite existing analyze result files?.Set the custom page numbers for multipage documents(PDF/TIFF).setQueryFields
(List<String> queryFields) Sets the list of additional fields to include in the result.setResultPrefix
(String resultPrefix) Set the resultPrefix property: Blob name prefix of result files.setStringIndexType
(StringIndexType stringIndexType) Sets the string index type.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AnalyzeBatchDocumentsOptions
public AnalyzeBatchDocumentsOptions(AzureBlobContentSource azureBlobSource, String resultContainerUrl) Creates an instance of AnalyzeBatchDocumentsOptions with the specified Azure Blob source and result container URL.- Parameters:
azureBlobSource
- the Azure Blob Storage location containing the batch documents. Cannot be null.resultContainerUrl
- the Azure Blob Storage container URL where analyze result files will be stored. Cannot be null.
-
AnalyzeBatchDocumentsOptions
public AnalyzeBatchDocumentsOptions(AzureBlobFileListContentSource azureBlobFileListSource, String resultContainerUrl) Creates an instance of AnalyzeBatchDocumentsOptions with the specified result container URL and Azure Blob file list source.- Parameters:
azureBlobFileListSource
- the Azure Blob Storage file list specifying the batch documents. Cannot be null.resultContainerUrl
- the Azure Blob Storage container URL where analyze result files will be stored. Cannot be null.
-
-
Method Details
-
getAzureBlobSource
Get the azureBlobSource property: Azure Blob Storage location containing the batch documents. Either azureBlobSource or azureBlobFileListSource must be specified.- Returns:
- the azureBlobSource value.
-
getAzureBlobFileListSource
Get the azureBlobFileListSource property: Azure Blob Storage file list specifying the batch documents. Either azureBlobSource or azureBlobFileListSource must be specified.- Returns:
- the azureBlobFileListSource value.
-
getResultContainerUrl
Get the resultContainerUrl property: Azure Blob Storage container URL where analyze result files will be stored.- Returns:
- the resultContainerUrl value.
-
getResultPrefix
Get the resultPrefix property: Blob name prefix of result files.- Returns:
- the resultPrefix value.
-
setResultPrefix
Set the resultPrefix property: Blob name prefix of result files.- Parameters:
resultPrefix
- the resultPrefix value to set.- Returns:
- the AnalyzeBatchDocumentsOptions object itself.
-
isOverwriteExisting
Get the overwriteExisting property: Overwrite existing analyze result files?.- Returns:
- the overwriteExisting value.
-
setOverwriteExisting
Set the overwriteExisting property: Overwrite existing analyze result files?.- Parameters:
overwriteExisting
- the overwriteExisting value to set.- Returns:
- the AnalyzeBatchDocumentsOptions object itself.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<AnalyzeBatchDocumentsOptions>
- Throws:
IOException
-
fromJson
public static AnalyzeBatchDocumentsOptions fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AnalyzeBatchDocumentsOptions from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of AnalyzeBatchDocumentsOptions if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the AnalyzeBatchDocumentsOptions.
-
getQueryFields
Gets the list of additional fields to include in the result.- Returns:
- the list of additional fields to include in the result.
-
setQueryFields
Sets the list of additional fields to include in the result.- Parameters:
queryFields
- the list of additional fields to include in the result.- Returns:
- the updated
AnalyzeBatchDocumentsOptions
value.
-
getOutputContentFormat
Gets the output content format.- Returns:
- the output content format.
-
setOutputContentFormat
public AnalyzeBatchDocumentsOptions setOutputContentFormat(DocumentContentFormat outputContentFormat) Sets the output content format.- Parameters:
outputContentFormat
- the output content format to set.- Returns:
- the updated
AnalyzeBatchDocumentsOptions
value.
-
getOutput
Gets the list of output formats.- Returns:
- the list of output formats.
-
setOutput
Sets the list of output formats.- Parameters:
output
- the list of output formats to set.- Returns:
- the updated
AnalyzeBatchDocumentsOptions
value.
-
getStringIndexType
Gets the string index type.- Returns:
- the string index type.
-
setStringIndexType
Sets the string index type.- Parameters:
stringIndexType
- the string index type to set.- Returns:
- the updated
AnalyzeBatchDocumentsOptions
value.
-
getPages
Get the custom page numbers for multipage documents(PDF/TIFF). Input the number of the pages you want to get the recognized result for.For a range of pages, use a hyphen, ex - ["1-3"]. Separate each page or a page range with a comma, ex - ["1-3", 4].
- Returns:
- the list of custom page numbers for a multipage document.
-
setPages
Set the custom page numbers for multipage documents(PDF/TIFF). Input the number of the pages you want to get the recognized result for.For a range of pages, use a hyphen, ex - ["1-3"]. Separate each page or a page range with a comma, ex - ["1-3", 4].
- Parameters:
pages
- the custom page numbers value to set.- Returns:
- the updated
AnalyzeBatchDocumentsOptions
value.
-
getLocale
Get the locale hint for text recognition and document analysis. Value may contain only the language code (ex. \"en\", \"fr\") or BCP 47 language tag (ex. \"en-US\").- Returns:
- the locale value.
-
setLocale
Set the locale value. Supported locales include: en-AU, en-CA, en-GB, en-IN, en-US.- Parameters:
locale
- the locale value to set.- Returns:
- the updated
AnalyzeBatchDocumentsOptions
value.
-
getDocumentAnalysisFeatures
Get the list of optional analysis features.- Returns:
- List of optional analysis features.
-
setDocumentAnalysisFeatures
public AnalyzeBatchDocumentsOptions setDocumentAnalysisFeatures(List<DocumentAnalysisFeature> documentAnalysisFeatures) Set the list of optional analysis features.- Parameters:
documentAnalysisFeatures
- List of optional analysis features.- Returns:
- the updated
AnalyzeBatchDocumentsOptions
value.
-
setDocumentAnalysisFeatures
public AnalyzeBatchDocumentsOptions setDocumentAnalysisFeatures(DocumentAnalysisFeature... documentAnalysisFeatures) Set optional analysis features.- Parameters:
documentAnalysisFeatures
- List of optional analysis features.- Returns:
- the updated
AnalyzeBatchDocumentsOptions
value.
-