Class UpdateDocumentOptions.Builder

java.lang.Object
com.ibm.watson.discovery.v2.model.UpdateDocumentOptions.Builder
Enclosing class:
UpdateDocumentOptions

public static class UpdateDocumentOptions.Builder
extends Object
Builder.
  • Constructor Details

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(String projectId, String collectionId, String documentId)
      Instantiates a new builder with required properties.
      Parameters:
      projectId - the projectId
      collectionId - the collectionId
      documentId - the documentId
  • Method Details

    • build

      public UpdateDocumentOptions build()
      Builds a UpdateDocumentOptions.
      Returns:
      the new UpdateDocumentOptions instance
    • projectId

      public UpdateDocumentOptions.Builder projectId​(String projectId)
      Set the projectId.
      Parameters:
      projectId - the projectId
      Returns:
      the UpdateDocumentOptions builder
    • collectionId

      public UpdateDocumentOptions.Builder collectionId​(String collectionId)
      Set the collectionId.
      Parameters:
      collectionId - the collectionId
      Returns:
      the UpdateDocumentOptions builder
    • documentId

      public UpdateDocumentOptions.Builder documentId​(String documentId)
      Set the documentId.
      Parameters:
      documentId - the documentId
      Returns:
      the UpdateDocumentOptions builder
    • file

      Set the file.
      Parameters:
      file - the file
      Returns:
      the UpdateDocumentOptions builder
    • filename

      public UpdateDocumentOptions.Builder filename​(String filename)
      Set the filename.
      Parameters:
      filename - the filename
      Returns:
      the UpdateDocumentOptions builder
    • fileContentType

      public UpdateDocumentOptions.Builder fileContentType​(String fileContentType)
      Set the fileContentType.
      Parameters:
      fileContentType - the fileContentType
      Returns:
      the UpdateDocumentOptions builder
    • metadata

      public UpdateDocumentOptions.Builder metadata​(String metadata)
      Set the metadata.
      Parameters:
      metadata - the metadata
      Returns:
      the UpdateDocumentOptions builder
    • xWatsonDiscoveryForce

      public UpdateDocumentOptions.Builder xWatsonDiscoveryForce​(Boolean xWatsonDiscoveryForce)
      Set the xWatsonDiscoveryForce.
      Parameters:
      xWatsonDiscoveryForce - the xWatsonDiscoveryForce
      Returns:
      the UpdateDocumentOptions builder
    • file

      Set the file.
      Parameters:
      file - the file
      Returns:
      the UpdateDocumentOptions builder
      Throws:
      FileNotFoundException - if the file could not be found