Class DocumentAccepted

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v2.model.DocumentAccepted
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class DocumentAccepted
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Information returned after an uploaded document is accepted.
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static interface  DocumentAccepted.Status
    Status of the document in the ingestion process.
  • Constructor Summary

    Constructors
    Constructor Description
    DocumentAccepted()  
  • Method Summary

    Modifier and Type Method Description
    String getDocumentId()
    Gets the documentId.
    String getStatus()
    Gets the status.

    Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel

    equals, hashCode, toString

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DocumentAccepted

      public DocumentAccepted()
  • Method Details

    • getDocumentId

      public String getDocumentId()
      Gets the documentId.

      The unique identifier of the ingested document.

      Returns:
      the documentId
    • getStatus

      public String getStatus()
      Gets the status.

      Status of the document in the ingestion process. A status of `processing` is returned for documents that are ingested with a *version* date before `2019-01-01`. The `pending` status is returned for all others.

      Returns:
      the status