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 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.
-
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
-