Class AnalyzeDocumentOptions.Builder
java.lang.Object
com.ibm.watson.discovery.v2.model.AnalyzeDocumentOptions.Builder
- Enclosing class:
- AnalyzeDocumentOptions
public static class AnalyzeDocumentOptions.Builder extends Object
Builder.
- 
Constructor Summary
- 
Method SummaryModifier and Type Method Description AnalyzeDocumentOptionsbuild()Builds a AnalyzeDocumentOptions.AnalyzeDocumentOptions.BuildercollectionId(String collectionId)Set the collectionId.AnalyzeDocumentOptions.Builderfile(File file)Set the file.AnalyzeDocumentOptions.Builderfile(InputStream file)Set the file.AnalyzeDocumentOptions.BuilderfileContentType(String fileContentType)Set the fileContentType.AnalyzeDocumentOptions.Builderfilename(String filename)Set the filename.AnalyzeDocumentOptions.Buildermetadata(String metadata)Set the metadata.AnalyzeDocumentOptions.BuilderprojectId(String projectId)Set the projectId.
- 
Constructor Details- 
Builderpublic Builder()Instantiates a new builder.
- 
BuilderInstantiates a new builder with required properties.- Parameters:
- projectId- the projectId
- collectionId- the collectionId
 
 
- 
- 
Method Details- 
buildBuilds a AnalyzeDocumentOptions.- Returns:
- the new AnalyzeDocumentOptions instance
 
- 
projectIdSet the projectId.- Parameters:
- projectId- the projectId
- Returns:
- the AnalyzeDocumentOptions builder
 
- 
collectionIdSet the collectionId.- Parameters:
- collectionId- the collectionId
- Returns:
- the AnalyzeDocumentOptions builder
 
- 
fileSet the file.- Parameters:
- file- the file
- Returns:
- the AnalyzeDocumentOptions builder
 
- 
filenameSet the filename.- Parameters:
- filename- the filename
- Returns:
- the AnalyzeDocumentOptions builder
 
- 
fileContentTypeSet the fileContentType.- Parameters:
- fileContentType- the fileContentType
- Returns:
- the AnalyzeDocumentOptions builder
 
- 
metadataSet the metadata.- Parameters:
- metadata- the metadata
- Returns:
- the AnalyzeDocumentOptions builder
 
- 
fileSet the file.- Parameters:
- file- the file
- Returns:
- the AnalyzeDocumentOptions builder
- Throws:
- FileNotFoundException- if the file could not be found
 
 
-