public static class UpdateDocumentOptions.Builder
extends java.lang.Object
| Constructor and Description |
|---|
UpdateDocumentOptions.Builder()
Instantiates a new builder.
|
UpdateDocumentOptions.Builder(java.lang.String environmentId,
java.lang.String collectionId,
java.lang.String documentId)
Instantiates a new builder with required properties.
|
| Modifier and Type | Method and Description |
|---|---|
UpdateDocumentOptions |
build()
Builds a UpdateDocumentOptions.
|
UpdateDocumentOptions.Builder |
collectionId(java.lang.String collectionId)
Set the collectionId.
|
UpdateDocumentOptions.Builder |
documentId(java.lang.String documentId)
Set the documentId.
|
UpdateDocumentOptions.Builder |
environmentId(java.lang.String environmentId)
Set the environmentId.
|
UpdateDocumentOptions.Builder |
file(java.io.File file)
Set the file.
|
UpdateDocumentOptions.Builder |
file(java.io.InputStream file)
Set the file.
|
UpdateDocumentOptions.Builder |
fileContentType(java.lang.String fileContentType)
Set the fileContentType.
|
UpdateDocumentOptions.Builder |
filename(java.lang.String filename)
Set the filename.
|
UpdateDocumentOptions.Builder |
metadata(java.lang.String metadata)
Set the metadata.
|
public UpdateDocumentOptions.Builder()
public UpdateDocumentOptions.Builder(java.lang.String environmentId,
java.lang.String collectionId,
java.lang.String documentId)
environmentId - the environmentIdcollectionId - the collectionIddocumentId - the documentIdpublic UpdateDocumentOptions build()
public UpdateDocumentOptions.Builder environmentId(java.lang.String environmentId)
environmentId - the environmentIdpublic UpdateDocumentOptions.Builder collectionId(java.lang.String collectionId)
collectionId - the collectionIdpublic UpdateDocumentOptions.Builder documentId(java.lang.String documentId)
documentId - the documentIdpublic UpdateDocumentOptions.Builder file(java.io.InputStream file)
file - the filepublic UpdateDocumentOptions.Builder filename(java.lang.String filename)
filename - the filenamepublic UpdateDocumentOptions.Builder metadata(java.lang.String metadata)
metadata - the metadatapublic UpdateDocumentOptions.Builder fileContentType(java.lang.String fileContentType)
fileContentType - the fileContentTypepublic UpdateDocumentOptions.Builder file(java.io.File file) throws java.io.FileNotFoundException
file - the filejava.io.FileNotFoundException