public static class ClassifyElementsOptions.Builder
extends java.lang.Object
| Constructor and Description |
|---|
ClassifyElementsOptions.Builder()
Instantiates a new builder.
|
ClassifyElementsOptions.Builder(java.io.InputStream file)
Instantiates a new builder with required properties.
|
| Modifier and Type | Method and Description |
|---|---|
ClassifyElementsOptions |
build()
Builds a ClassifyElementsOptions.
|
ClassifyElementsOptions.Builder |
file(java.io.File file)
Set the file.
|
ClassifyElementsOptions.Builder |
file(java.io.InputStream file)
Set the file.
|
ClassifyElementsOptions.Builder |
fileContentType(java.lang.String fileContentType)
Set the fileContentType.
|
ClassifyElementsOptions.Builder |
model(java.lang.String model)
Set the model.
|
public ClassifyElementsOptions.Builder()
public ClassifyElementsOptions.Builder(java.io.InputStream file)
file - the filepublic ClassifyElementsOptions build()
public ClassifyElementsOptions.Builder file(java.io.InputStream file)
file - the filepublic ClassifyElementsOptions.Builder fileContentType(java.lang.String fileContentType)
fileContentType - the fileContentTypepublic ClassifyElementsOptions.Builder model(java.lang.String model)
model - the modelpublic ClassifyElementsOptions.Builder file(java.io.File file) throws java.io.FileNotFoundException
file - the filejava.io.FileNotFoundException - if the file could not be found