public final class RecognizeReceiptsOptions extends Object
| Constructor and Description |
|---|
RecognizeReceiptsOptions() |
| Modifier and Type | Method and Description |
|---|---|
FormContentType |
getContentType()
Get the type of the form.
|
FormRecognizerLocale |
getLocale()
Get the locale information for the receipt.
|
List<String> |
getPages()
Get the custom page numbers for multi-page documents(PDF/TIFF).
|
Duration |
getPollInterval()
Get the duration between each poll for the operation status.
|
boolean |
isFieldElementsIncluded()
Get the boolean which specifies if to include form element references in the result.
|
RecognizeReceiptsOptions |
setContentType(FormContentType contentType)
Set the type of the form.
|
RecognizeReceiptsOptions |
setFieldElementsIncluded(boolean includeFieldElements)
Set the boolean which specifies if to include form element references in the result.
|
RecognizeReceiptsOptions |
setLocale(FormRecognizerLocale locale)
Set the locale information for the receipt.
|
RecognizeReceiptsOptions |
setPages(List<String> pages)
Set the custom page numbers for multi-page documents(PDF/TIFF).
|
RecognizeReceiptsOptions |
setPollInterval(Duration pollInterval)
Set the duration between each poll for the operation status.
|
public FormContentType getContentType()
contentType value.public boolean isFieldElementsIncluded()
includeFieldElements value.public Duration getPollInterval()
pollInterval value.public RecognizeReceiptsOptions setContentType(FormContentType contentType)
contentType - the provided form content type.RecognizeReceiptsOptions value.public RecognizeReceiptsOptions setFieldElementsIncluded(boolean includeFieldElements)
includeFieldElements - the boolean to specify if to include form element references in the result.RecognizeReceiptsOptions value.public RecognizeReceiptsOptions setPollInterval(Duration pollInterval)
pollInterval - the duration to specify between each poll for the operation status.RecognizeReceiptsOptions value.public FormRecognizerLocale getLocale()
public RecognizeReceiptsOptions setLocale(FormRecognizerLocale locale)
locale - the locale value to set.RecognizeReceiptsOptions value.public List<String> getPages()
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].
public RecognizeReceiptsOptions setPages(List<String> pages)
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].
pages - the custom page numbers value to set.RecognizeReceiptsOptions value.Copyright © 2021 Microsoft Corporation. All rights reserved.