public static class ClassifyElementsOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(InputStream file)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
ClassifyElementsOptions |
build()
Builds a ClassifyElementsOptions.
|
ClassifyElementsOptions.Builder |
file(File file)
Set the file.
|
ClassifyElementsOptions.Builder |
file(InputStream file)
Set the file.
|
ClassifyElementsOptions.Builder |
fileContentType(String fileContentType)
Set the fileContentType.
|
ClassifyElementsOptions.Builder |
model(String model)
Set the model.
|
public Builder()
public Builder(InputStream file)
file
- the filepublic ClassifyElementsOptions build()
public ClassifyElementsOptions.Builder file(InputStream file)
file
- the filepublic ClassifyElementsOptions.Builder fileContentType(String fileContentType)
fileContentType
- the fileContentTypepublic ClassifyElementsOptions.Builder model(String model)
model
- the modelpublic ClassifyElementsOptions.Builder file(File file) throws FileNotFoundException
file
- the fileFileNotFoundException
- if the file could not be foundCopyright © 2021 IBM Cloud. All rights reserved.