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 Summary
-
Method Summary
Modifier and Type Method Description UpdateDocumentOptions
build()
Builds a UpdateDocumentOptions.UpdateDocumentOptions.Builder
collectionId(String collectionId)
Set the collectionId.UpdateDocumentOptions.Builder
documentId(String documentId)
Set the documentId.UpdateDocumentOptions.Builder
file(File file)
Set the file.UpdateDocumentOptions.Builder
file(InputStream file)
Set the file.UpdateDocumentOptions.Builder
fileContentType(String fileContentType)
Set the fileContentType.UpdateDocumentOptions.Builder
filename(String filename)
Set the filename.UpdateDocumentOptions.Builder
metadata(String metadata)
Set the metadata.UpdateDocumentOptions.Builder
projectId(String projectId)
Set the projectId.UpdateDocumentOptions.Builder
xWatsonDiscoveryForce(Boolean xWatsonDiscoveryForce)
Set the xWatsonDiscoveryForce.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
projectId
- the projectIdcollectionId
- the collectionIddocumentId
- the documentId
-
-
Method Details
-
build
Builds a UpdateDocumentOptions.- Returns:
- the new UpdateDocumentOptions instance
-
projectId
Set the projectId.- Parameters:
projectId
- the projectId- Returns:
- the UpdateDocumentOptions builder
-
collectionId
Set the collectionId.- Parameters:
collectionId
- the collectionId- Returns:
- the UpdateDocumentOptions builder
-
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
Set the filename.- Parameters:
filename
- the filename- Returns:
- the UpdateDocumentOptions builder
-
fileContentType
Set the fileContentType.- Parameters:
fileContentType
- the fileContentType- Returns:
- the UpdateDocumentOptions builder
-
metadata
Set the metadata.- Parameters:
metadata
- the metadata- Returns:
- the UpdateDocumentOptions builder
-
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
-