Class CompareDocumentsOptions
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.compare_comply.v1.model.CompareDocumentsOptions
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class CompareDocumentsOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The compareDocuments options.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCompareDocumentsOptions.BuilderBuilder.static interfaceCompareDocumentsOptions.ModelThe analysis model to be used by the service. -
Method Summary
Modifier and Type Method Description InputStreamfile1()Gets the file1.Stringfile1ContentType()Gets the file1ContentType.Stringfile1Label()Gets the file1Label.InputStreamfile2()Gets the file2.Stringfile2ContentType()Gets the file2ContentType.Stringfile2Label()Gets the file2Label.Stringmodel()Gets the model.CompareDocumentsOptions.BuildernewBuilder()New builder.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
New builder.- Returns:
- a CompareDocumentsOptions builder
-
file1
Gets the file1.The first document to compare.
- Returns:
- the file1
-
file2
Gets the file2.The second document to compare.
- Returns:
- the file2
-
file1ContentType
Gets the file1ContentType.The content type of file1. Values for this parameter can be obtained from the HttpMediaType class.
- Returns:
- the file1ContentType
-
file2ContentType
Gets the file2ContentType.The content type of file2. Values for this parameter can be obtained from the HttpMediaType class.
- Returns:
- the file2ContentType
-
file1Label
Gets the file1Label.A text label for the first document.
- Returns:
- the file1Label
-
file2Label
Gets the file2Label.A text label for the second document.
- Returns:
- the file2Label
-
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
-