Class AnalyzeDocumentRequest
java.lang.Object
com.azure.ai.documentintelligence.models.AnalyzeDocumentRequest
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AnalyzeDocumentRequest>
public final class AnalyzeDocumentRequest
extends Object
implements com.azure.json.JsonSerializable<AnalyzeDocumentRequest>
Document analysis parameters.
-
Constructor Summary
ConstructorDescriptionCreates an instance of AnalyzeDocumentRequest class. -
Method Summary
Modifier and TypeMethodDescriptionstatic AnalyzeDocumentRequest
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of AnalyzeDocumentRequest from the JsonReader.byte[]
Get the base64Source property: Base64 encoding of the document to analyze.Get the urlSource property: Document URL to analyze.setBase64Source
(byte[] base64Source) Set the base64Source property: Base64 encoding of the document to analyze.setUrlSource
(String urlSource) Set the urlSource property: Document URL to analyze.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
-
AnalyzeDocumentRequest
public AnalyzeDocumentRequest()Creates an instance of AnalyzeDocumentRequest class.
-
-
Method Details
-
getUrlSource
Get the urlSource property: Document URL to analyze. Either urlSource or base64Source must be specified.- Returns:
- the urlSource value.
-
setUrlSource
Set the urlSource property: Document URL to analyze. Either urlSource or base64Source must be specified.- Parameters:
urlSource
- the urlSource value to set.- Returns:
- the AnalyzeDocumentRequest object itself.
-
getBase64Source
public byte[] getBase64Source()Get the base64Source property: Base64 encoding of the document to analyze. Either urlSource or base64Source must be specified.- Returns:
- the base64Source value.
-
setBase64Source
Set the base64Source property: Base64 encoding of the document to analyze. Either urlSource or base64Source must be specified.- Parameters:
base64Source
- the base64Source value to set.- Returns:
- the AnalyzeDocumentRequest object itself.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<AnalyzeDocumentRequest>
- Throws:
IOException
-
fromJson
public static AnalyzeDocumentRequest fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AnalyzeDocumentRequest from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of AnalyzeDocumentRequest if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the AnalyzeDocumentRequest.
-