public static class AddDocumentOptions.Builder extends Object
| Constructor and Description |
|---|
Builder()
Instantiates a new builder.
|
Builder(String environmentId,
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 |
environmentId(String environmentId)
Set the environmentId.
|
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.
|
public AddDocumentOptions build()
public AddDocumentOptions.Builder environmentId(String environmentId)
environmentId - the environmentIdpublic 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 file(File file) throws FileNotFoundException
file - the fileFileNotFoundException - if the file could not be foundCopyright © 2022 IBM Cloud. All rights reserved.