public class CompareDocumentsOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
CompareDocumentsOptions.Builder
Builder.
|
static interface |
CompareDocumentsOptions.Model
The analysis model to be used by the service.
|
Modifier and Type | Field and Description |
---|---|
protected java.io.InputStream |
file1 |
protected java.lang.String |
file1ContentType |
protected java.lang.String |
file1Label |
protected java.io.InputStream |
file2 |
protected java.lang.String |
file2ContentType |
protected java.lang.String |
file2Label |
protected java.lang.String |
model |
Modifier | Constructor and Description |
---|---|
protected |
CompareDocumentsOptions(CompareDocumentsOptions.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
file1()
Gets the file1.
|
java.lang.String |
file1ContentType()
Gets the file1ContentType.
|
java.lang.String |
file1Label()
Gets the file1Label.
|
java.io.InputStream |
file2()
Gets the file2.
|
java.lang.String |
file2ContentType()
Gets the file2ContentType.
|
java.lang.String |
file2Label()
Gets the file2Label.
|
java.lang.String |
model()
Gets the model.
|
CompareDocumentsOptions.Builder |
newBuilder()
New builder.
|
protected java.io.InputStream file1
protected java.io.InputStream file2
protected java.lang.String file1ContentType
protected java.lang.String file2ContentType
protected java.lang.String file1Label
protected java.lang.String file2Label
protected java.lang.String model
protected CompareDocumentsOptions(CompareDocumentsOptions.Builder builder)
public CompareDocumentsOptions.Builder newBuilder()
public java.io.InputStream file1()
The first document to compare.
public java.io.InputStream file2()
The second document to compare.
public java.lang.String file1ContentType()
The content type of file1. Values for this parameter can be obtained from the HttpMediaType class.
public java.lang.String file2ContentType()
The content type of file2. Values for this parameter can be obtained from the HttpMediaType class.
public java.lang.String file1Label()
A text label for the first document.
public java.lang.String file2Label()
A text label for the second document.
public java.lang.String 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.