public static class AddDocumentOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String projectId,
String collectionId)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
AddDocumentOptions |
build()
Builds a AddDocumentOptions.
|
AddDocumentOptions.Builder |
collectionId(String collectionId)
Set the collectionId.
|
AddDocumentOptions.Builder |
file(File file)
Set the file.
|
AddDocumentOptions.Builder |
file(InputStream file)
Set the file.
|
AddDocumentOptions.Builder |
fileContentType(String fileContentType)
Set the fileContentType.
|
AddDocumentOptions.Builder |
filename(String filename)
Set the filename.
|
AddDocumentOptions.Builder |
metadata(String metadata)
Set the metadata.
|
AddDocumentOptions.Builder |
projectId(String projectId)
Set the projectId.
|
AddDocumentOptions.Builder |
xWatsonDiscoveryForce(Boolean xWatsonDiscoveryForce)
Set the xWatsonDiscoveryForce.
|
public AddDocumentOptions build()
public AddDocumentOptions.Builder projectId(String projectId)
projectId
- the projectIdpublic AddDocumentOptions.Builder collectionId(String collectionId)
collectionId
- the collectionIdpublic AddDocumentOptions.Builder file(InputStream file)
file
- the filepublic AddDocumentOptions.Builder filename(String filename)
filename
- the filenamepublic AddDocumentOptions.Builder fileContentType(String fileContentType)
fileContentType
- the fileContentTypepublic AddDocumentOptions.Builder metadata(String metadata)
metadata
- the metadatapublic AddDocumentOptions.Builder xWatsonDiscoveryForce(Boolean xWatsonDiscoveryForce)
xWatsonDiscoveryForce
- the xWatsonDiscoveryForcepublic AddDocumentOptions.Builder file(File file) throws FileNotFoundException
file
- the fileFileNotFoundException
- if the file could not be foundCopyright © 2024 IBM Cloud. All rights reserved.