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 Summary
Modifier 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
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
projectId- the projectIdcollectionId- the collectionId
-
-
Method Details
-
build
Builds a AnalyzeDocumentOptions.- Returns:
- the new AnalyzeDocumentOptions instance
-
projectId
Set the projectId.- Parameters:
projectId- the projectId- Returns:
- the AnalyzeDocumentOptions builder
-
collectionId
Set the collectionId.- Parameters:
collectionId- the collectionId- Returns:
- the AnalyzeDocumentOptions builder
-
file
Set the file.- Parameters:
file- the file- Returns:
- the AnalyzeDocumentOptions builder
-
filename
Set the filename.- Parameters:
filename- the filename- Returns:
- the AnalyzeDocumentOptions builder
-
fileContentType
Set the fileContentType.- Parameters:
fileContentType- the fileContentType- Returns:
- the AnalyzeDocumentOptions builder
-
metadata
Set the metadata.- Parameters:
metadata- the metadata- Returns:
- the AnalyzeDocumentOptions builder
-
file
Set the file.- Parameters:
file- the file- Returns:
- the AnalyzeDocumentOptions builder
- Throws:
FileNotFoundException- if the file could not be found
-