public static class ClassifyOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
ClassifyOptions.Builder()
Instantiates a new builder.
|
Modifier and Type | Method and Description |
---|---|
ClassifyOptions.Builder |
acceptLanguage(java.lang.String acceptLanguage)
Set the acceptLanguage.
|
ClassifyOptions.Builder |
addClassifierId(java.lang.String classifierId)
Adds an classifierId to classifierIds.
|
ClassifyOptions.Builder |
addOwner(java.lang.String owner)
Adds an owner to owners.
|
ClassifyOptions |
build()
Builds a ClassifyOptions.
|
ClassifyOptions.Builder |
classifierIds(java.util.List<java.lang.String> classifierIds)
Set the classifierIds.
|
ClassifyOptions.Builder |
imagesFile(java.io.File imagesFile)
Set the imagesFile.
|
ClassifyOptions.Builder |
imagesFile(java.io.InputStream imagesFile)
Set the imagesFile.
|
ClassifyOptions.Builder |
imagesFileContentType(java.lang.String imagesFileContentType)
Set the imagesFileContentType.
|
ClassifyOptions.Builder |
imagesFilename(java.lang.String imagesFilename)
Set the imagesFilename.
|
ClassifyOptions.Builder |
owners(java.util.List<java.lang.String> owners)
Set the owners.
|
ClassifyOptions.Builder |
parameters(java.lang.String parameters)
Deprecated.
replaced by the top-level parameters url, threshold, owners, and classifierIds
|
ClassifyOptions.Builder |
threshold(java.lang.Float threshold)
Set the threshold.
|
ClassifyOptions.Builder |
url(java.lang.String url)
Set the url.
|
public ClassifyOptions.Builder()
public ClassifyOptions build()
public ClassifyOptions.Builder addOwner(java.lang.String owner)
owner
- the new ownerpublic ClassifyOptions.Builder addClassifierId(java.lang.String classifierId)
classifierId
- the new classifierIdpublic ClassifyOptions.Builder imagesFile(java.io.InputStream imagesFile)
imagesFile
- the imagesFilepublic ClassifyOptions.Builder imagesFilename(java.lang.String imagesFilename)
imagesFilename
- the imagesFilenamepublic ClassifyOptions.Builder acceptLanguage(java.lang.String acceptLanguage)
acceptLanguage
- the acceptLanguagepublic ClassifyOptions.Builder url(java.lang.String url)
url
- the urlpublic ClassifyOptions.Builder threshold(java.lang.Float threshold)
threshold
- the thresholdpublic ClassifyOptions.Builder owners(java.util.List<java.lang.String> owners)
owners
- the ownerspublic ClassifyOptions.Builder classifierIds(java.util.List<java.lang.String> classifierIds)
classifierIds
- the classifierIdspublic ClassifyOptions.Builder imagesFileContentType(java.lang.String imagesFileContentType)
imagesFileContentType
- the imagesFileContentTypepublic ClassifyOptions.Builder imagesFile(java.io.File imagesFile) throws java.io.FileNotFoundException
imagesFile
- the imagesFilejava.io.FileNotFoundException
- if the file could not be foundpublic ClassifyOptions.Builder parameters(java.lang.String parameters)
parameters
- the parameters