public static class AddDocumentOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
AddDocumentOptions.Builder()
Instantiates a new builder.
|
AddDocumentOptions.Builder(java.lang.String projectId,
java.lang.String collectionId)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
AddDocumentOptions |
build()
Builds a AddDocumentOptions.
|
AddDocumentOptions.Builder |
collectionId(java.lang.String collectionId)
Set the collectionId.
|
AddDocumentOptions.Builder |
file(java.io.File file)
Set the file.
|
AddDocumentOptions.Builder |
file(java.io.InputStream file)
Set the file.
|
AddDocumentOptions.Builder |
fileContentType(java.lang.String fileContentType)
Set the fileContentType.
|
AddDocumentOptions.Builder |
filename(java.lang.String filename)
Set the filename.
|
AddDocumentOptions.Builder |
metadata(java.lang.String metadata)
Set the metadata.
|
AddDocumentOptions.Builder |
projectId(java.lang.String projectId)
Set the projectId.
|
AddDocumentOptions.Builder |
xWatsonDiscoveryForce(java.lang.Boolean xWatsonDiscoveryForce)
Set the xWatsonDiscoveryForce.
|
public AddDocumentOptions.Builder()
public AddDocumentOptions.Builder(java.lang.String projectId, java.lang.String collectionId)
projectId
- the projectIdcollectionId
- the collectionIdpublic AddDocumentOptions build()
public AddDocumentOptions.Builder projectId(java.lang.String projectId)
projectId
- the projectIdpublic AddDocumentOptions.Builder collectionId(java.lang.String collectionId)
collectionId
- the collectionIdpublic AddDocumentOptions.Builder file(java.io.InputStream file)
file
- the filepublic AddDocumentOptions.Builder filename(java.lang.String filename)
filename
- the filenamepublic AddDocumentOptions.Builder fileContentType(java.lang.String fileContentType)
fileContentType
- the fileContentTypepublic AddDocumentOptions.Builder metadata(java.lang.String metadata)
metadata
- the metadatapublic AddDocumentOptions.Builder xWatsonDiscoveryForce(java.lang.Boolean xWatsonDiscoveryForce)
xWatsonDiscoveryForce
- the xWatsonDiscoveryForcepublic AddDocumentOptions.Builder file(java.io.File file) throws java.io.FileNotFoundException
file
- the filejava.io.FileNotFoundException
- if the file could not be found