ClassifyDocumentRequest Class

  • java.lang.Object
    • com.azure.ai.documentintelligence.models.ClassifyDocumentRequest

Implements

public final class ClassifyDocumentRequest
implements JsonSerializable<ClassifyDocumentRequest>

Document classification parameters.

Constructor Summary

Constructor Description
ClassifyDocumentRequest()

Creates an instance of ClassifyDocumentRequest class.

Method Summary

Modifier and Type Method and Description
static ClassifyDocumentRequest fromJson(JsonReader jsonReader)

Reads an instance of ClassifyDocumentRequest from the JsonReader.

byte[] getBase64Source()

Get the base64Source property: Base64 encoding of the document to classify.

String getUrlSource()

Get the urlSource property: Document URL to classify.

ClassifyDocumentRequest setBase64Source(byte[] base64Source)

Set the base64Source property: Base64 encoding of the document to classify.

ClassifyDocumentRequest setUrlSource(String urlSource)

Set the urlSource property: Document URL to classify.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

ClassifyDocumentRequest

public ClassifyDocumentRequest()

Creates an instance of ClassifyDocumentRequest class.

Method Details

fromJson

public static ClassifyDocumentRequest fromJson(JsonReader jsonReader)

Reads an instance of ClassifyDocumentRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ClassifyDocumentRequest 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 ClassifyDocumentRequest.

getBase64Source

public byte[] getBase64Source()

Get the base64Source property: Base64 encoding of the document to classify. Either urlSource or base64Source must be specified.

Returns:

the base64Source value.

getUrlSource

public String getUrlSource()

Get the urlSource property: Document URL to classify. Either urlSource or base64Source must be specified.

Returns:

the urlSource value.

setBase64Source

public ClassifyDocumentRequest setBase64Source(byte[] base64Source)

Set the base64Source property: Base64 encoding of the document to classify. Either urlSource or base64Source must be specified.

Parameters:

base64Source - the base64Source value to set.

Returns:

the ClassifyDocumentRequest object itself.

setUrlSource

public ClassifyDocumentRequest setUrlSource(String urlSource)

Set the urlSource property: Document URL to classify. Either urlSource or base64Source must be specified.

Parameters:

urlSource - the urlSource value to set.

Returns:

the ClassifyDocumentRequest object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to