Class DeleteDocumentOptions

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

public class DeleteDocumentOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The deleteDocument options.
  • Method Details

    • newBuilder

      public DeleteDocumentOptions.Builder newBuilder()
      New builder.
      Returns:
      a DeleteDocumentOptions builder
    • projectId

      public String projectId()
      Gets the projectId.

      The ID of the project. This information can be found from the *Integrate and Deploy* page in Discovery.

      Returns:
      the projectId
    • collectionId

      public String collectionId()
      Gets the collectionId.

      The ID of the collection.

      Returns:
      the collectionId
    • documentId

      public String documentId()
      Gets the documentId.

      The ID of the document.

      Returns:
      the documentId
    • xWatsonDiscoveryForce

      public Boolean xWatsonDiscoveryForce()
      Gets the xWatsonDiscoveryForce.

      When `true`, the uploaded document is added to the collection even if the data for that collection is shared with other collections.

      Returns:
      the xWatsonDiscoveryForce