Class ClassifyElementsOptions
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.compare_comply.v1.model.ClassifyElementsOptions
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class ClassifyElementsOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The classifyElements options.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClassifyElementsOptions.Builder
Builder.static interface
ClassifyElementsOptions.Model
The analysis model to be used by the service. -
Method Summary
Modifier and Type Method Description InputStream
file()
Gets the file.String
fileContentType()
Gets the fileContentType.String
model()
Gets the model.ClassifyElementsOptions.Builder
newBuilder()
New builder.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
New builder.- Returns:
- a ClassifyElementsOptions builder
-
file
Gets the file.The document to classify.
- Returns:
- the file
-
fileContentType
Gets the fileContentType.The content type of file. Values for this parameter can be obtained from the HttpMediaType class.
- Returns:
- the fileContentType
-
model
Gets the model.The analysis model to be used by the service. For the **Element classification** and **Compare two documents** methods, the default is `contracts`. For the **Extract tables** method, the default is `tables`. These defaults apply to the standalone methods as well as to the methods' use in batch-processing requests.
- Returns:
- the model
-