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