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.
  • Method Details

    • newBuilder

      public CompareDocumentsOptions.Builder newBuilder()
      New builder.
      Returns:
      a CompareDocumentsOptions builder
    • file1

      public InputStream file1()
      Gets the file1.

      The first document to compare.

      Returns:
      the file1
    • file2

      public InputStream file2()
      Gets the file2.

      The second document to compare.

      Returns:
      the file2
    • file1ContentType

      public String file1ContentType()
      Gets the file1ContentType.

      The content type of file1. Values for this parameter can be obtained from the HttpMediaType class.

      Returns:
      the file1ContentType
    • file2ContentType

      public String file2ContentType()
      Gets the file2ContentType.

      The content type of file2. Values for this parameter can be obtained from the HttpMediaType class.

      Returns:
      the file2ContentType
    • file1Label

      public String file1Label()
      Gets the file1Label.

      A text label for the first document.

      Returns:
      the file1Label
    • file2Label

      public String file2Label()
      Gets the file2Label.

      A text label for the second document.

      Returns:
      the file2Label
    • model

      public String 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