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