AnalyzeDocumentRequest Class
- java.
lang. Object - com.
azure. ai. documentintelligence. models. AnalyzeDocumentRequest
- com.
Implements
public final class AnalyzeDocumentRequest
implements JsonSerializable<AnalyzeDocumentRequest>
Document analysis parameters.
Constructor Summary
| Constructor | Description |
|---|---|
| AnalyzeDocumentRequest() |
Creates an instance of Analyze |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Analyze |
fromJson(JsonReader jsonReader)
Reads an instance of Analyze |
| byte[] |
getBase64Source()
Get the base64Source property: Base64 encoding of the document to analyze. |
| String |
getUrlSource()
Get the url |
|
Analyze |
setBase64Source(byte[] base64Source)
Set the base64Source property: Base64 encoding of the document to analyze. |
|
Analyze |
setUrlSource(String urlSource)
Set the url |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
AnalyzeDocumentRequest
public AnalyzeDocumentRequest()
Creates an instance of AnalyzeDocumentRequest class.
Method Details
fromJson
public static AnalyzeDocumentRequest fromJson(JsonReader jsonReader)
Reads an instance of AnalyzeDocumentRequest from the JsonReader.
Parameters:
Returns:
Throws:
getBase64Source
public byte[] getBase64Source()
Get the base64Source property: Base64 encoding of the document to analyze. Either urlSource or base64Source must be specified.
Returns:
getUrlSource
public String getUrlSource()
Get the urlSource property: Document URL to analyze. Either urlSource or base64Source must be specified.
Returns:
setBase64Source
public AnalyzeDocumentRequest setBase64Source(byte[] base64Source)
Set the base64Source property: Base64 encoding of the document to analyze. Either urlSource or base64Source must be specified.
Parameters:
Returns:
setUrlSource
public AnalyzeDocumentRequest setUrlSource(String urlSource)
Set the urlSource property: Document URL to analyze. Either urlSource or base64Source must be specified.
Parameters:
Returns: