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