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

    • newBuilder

      public ClassifyElementsOptions.Builder newBuilder()
      New builder.
      Returns:
      a ClassifyElementsOptions builder
    • file

      public InputStream file()
      Gets the file.

      The document to classify.

      Returns:
      the file
    • fileContentType

      public String fileContentType()
      Gets the fileContentType.

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

      Returns:
      the fileContentType
    • 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