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 class
CompareDocumentsOptions.Builder
Builder.static interface
CompareDocumentsOptions.Model
The analysis model to be used by the service. -
Method Summary
Modifier and Type Method Description InputStream
file1()
Gets the file1.String
file1ContentType()
Gets the file1ContentType.String
file1Label()
Gets the file1Label.InputStream
file2()
Gets the file2.String
file2ContentType()
Gets the file2ContentType.String
file2Label()
Gets the file2Label.String
model()
Gets the model.CompareDocumentsOptions.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 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
-