public static class UpdateDocumentOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
UpdateDocumentOptions.Builder()
Instantiates a new builder.
|
UpdateDocumentOptions.Builder(java.lang.String projectId,
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 |
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.
|
UpdateDocumentOptions.Builder |
projectId(java.lang.String projectId)
Set the projectId.
|
UpdateDocumentOptions.Builder |
xWatsonDiscoveryForce(java.lang.Boolean xWatsonDiscoveryForce)
Set the xWatsonDiscoveryForce.
|
public UpdateDocumentOptions.Builder()
public UpdateDocumentOptions.Builder(java.lang.String projectId, java.lang.String collectionId, java.lang.String documentId)
projectId
- the projectIdcollectionId
- the collectionIddocumentId
- the documentIdpublic UpdateDocumentOptions build()
public UpdateDocumentOptions.Builder projectId(java.lang.String projectId)
projectId
- the projectIdpublic 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 fileContentType(java.lang.String fileContentType)
fileContentType
- the fileContentTypepublic UpdateDocumentOptions.Builder metadata(java.lang.String metadata)
metadata
- the metadatapublic UpdateDocumentOptions.Builder xWatsonDiscoveryForce(java.lang.Boolean xWatsonDiscoveryForce)
xWatsonDiscoveryForce
- the xWatsonDiscoveryForcepublic UpdateDocumentOptions.Builder file(java.io.File file) throws java.io.FileNotFoundException
file
- the filejava.io.FileNotFoundException
- if the file could not be found