public static class AddDocumentOptions.Builder
extends java.lang.Object
| Constructor and Description |
|---|
AddDocumentOptions.Builder()
Instantiates a new builder.
|
AddDocumentOptions.Builder(java.lang.String environmentId,
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 |
environmentId(java.lang.String environmentId)
Set the environmentId.
|
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.
|
public AddDocumentOptions.Builder()
public AddDocumentOptions.Builder(java.lang.String environmentId,
java.lang.String collectionId)
environmentId - the environmentIdcollectionId - the collectionIdpublic AddDocumentOptions build()
public AddDocumentOptions.Builder environmentId(java.lang.String environmentId)
environmentId - the environmentIdpublic 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 metadata(java.lang.String metadata)
metadata - the metadatapublic AddDocumentOptions.Builder fileContentType(java.lang.String fileContentType)
fileContentType - the fileContentTypepublic AddDocumentOptions.Builder file(java.io.File file) throws java.io.FileNotFoundException
file - the filejava.io.FileNotFoundException