ClassifyDocumentOptions Class
- java.
lang. Object - com.
azure. ai. documentintelligence. models. ClassifyDocumentOptions
- com.
Implements
public final class ClassifyDocumentOptions
implements JsonSerializable<ClassifyDocumentOptions>
Document classification parameters.
Constructor Summary
| Constructor | Description |
|---|---|
| ClassifyDocumentOptions(byte[] bytesSource) |
Creates an instance of Classify |
| ClassifyDocumentOptions(BinaryData binaryData) |
Creates an instance of Classify |
| ClassifyDocumentOptions(String urlSource) |
Creates an instance of Classify |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Classify |
fromJson(JsonReader jsonReader)
Reads an instance of Classify |
| byte[] |
getBytesSource()
Get the bytes |
| List<String> |
getPages()
Gets the pages. |
|
Split |
getSplit()
Gets the split mode. |
|
String |
getStringIndexType()
Gets the string index type. |
| String |
getUrlSource()
Get the url |
|
Classify |
setPages(List<String> pages)
Sets the pages. |
|
Classify |
setSplit(SplitMode split)
Sets the split mode. |
|
Classify |
setStringIndexType(StringIndexType stringIndexType)
Sets the string index type. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
ClassifyDocumentOptions
public ClassifyDocumentOptions(byte[] bytesSource)
Creates an instance of ClassifyDocumentOptions with the specified bytes of the document.
Parameters:
ClassifyDocumentOptions
public ClassifyDocumentOptions(BinaryData binaryData)
Creates an instance of ClassifyDocumentOptions with the specified BinaryData source.
Parameters:
ClassifyDocumentOptions
public ClassifyDocumentOptions(String urlSource)
Creates an instance of ClassifyDocumentOptions with the specified URL source.
Parameters:
Method Details
fromJson
public static ClassifyDocumentOptions fromJson(JsonReader jsonReader)
Reads an instance of ClassifyDocumentOptions from the JsonReader.
Parameters:
Returns:
Throws:
getBytesSource
public byte[] getBytesSource()
Get the bytesSource property: Base64 encoding of the document to classify. Either urlSource or base64Source must be specified.
Returns:
getPages
public List<String> getPages()
Gets the pages.
Returns:
getSplit
public SplitMode getSplit()
Gets the split mode.
Returns:
getStringIndexType
public StringIndexType getStringIndexType()
Gets the string index type.
Returns:
getUrlSource
public String getUrlSource()
Get the urlSource property: Document URL to classify. Either urlSource or base64Source must be specified.
Returns:
setPages
public ClassifyDocumentOptions setPages(List<String> pages)
Sets the pages.
Parameters:
Returns:
ClassifyDocumentOptions value.setSplit
public ClassifyDocumentOptions setSplit(SplitMode split)
Sets the split mode.
Parameters:
Returns:
ClassifyDocumentOptions value.setStringIndexType
public ClassifyDocumentOptions setStringIndexType(StringIndexType stringIndexType)
Sets the string index type.
Parameters:
Returns:
ClassifyDocumentOptions value.