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 |
filename(java.lang.String filename)
Set the filename.
|
ClassifyElementsOptions.Builder |
modelId(java.lang.String modelId)
Set the modelId.
|
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 filename(java.lang.String filename)
filename
- the filenamepublic ClassifyElementsOptions.Builder modelId(java.lang.String modelId)
modelId
- the modelIdpublic ClassifyElementsOptions.Builder fileContentType(java.lang.String fileContentType)
fileContentType
- the fileContentTypepublic ClassifyElementsOptions.Builder file(java.io.File file) throws java.io.FileNotFoundException
file
- the filejava.io.FileNotFoundException
- if the file could not be found