public static class ClassifyOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Modifier and Type | Method and Description |
---|---|
ClassifyOptions.Builder |
acceptLanguage(String acceptLanguage)
Set the acceptLanguage.
|
ClassifyOptions.Builder |
addClassifierId(String classifierId)
Adds an classifierId to classifierIds.
|
ClassifyOptions.Builder |
addOwner(String owner)
Adds an owner to owners.
|
ClassifyOptions |
build()
Builds a ClassifyOptions.
|
ClassifyOptions.Builder |
classifierIds(List<String> classifierIds)
Set the classifierIds.
|
ClassifyOptions.Builder |
imagesFile(File imagesFile)
Set the imagesFile.
|
ClassifyOptions.Builder |
imagesFile(InputStream imagesFile)
Set the imagesFile.
|
ClassifyOptions.Builder |
imagesFileContentType(String imagesFileContentType)
Set the imagesFileContentType.
|
ClassifyOptions.Builder |
imagesFilename(String imagesFilename)
Set the imagesFilename.
|
ClassifyOptions.Builder |
owners(List<String> owners)
Set the owners.
|
ClassifyOptions.Builder |
threshold(Float threshold)
Set the threshold.
|
ClassifyOptions.Builder |
url(String url)
Set the url.
|
public ClassifyOptions build()
public ClassifyOptions.Builder addOwner(String owner)
owner
- the new ownerpublic ClassifyOptions.Builder addClassifierId(String classifierId)
classifierId
- the new classifierIdpublic ClassifyOptions.Builder imagesFile(InputStream imagesFile)
imagesFile
- the imagesFilepublic ClassifyOptions.Builder imagesFilename(String imagesFilename)
imagesFilename
- the imagesFilenamepublic ClassifyOptions.Builder imagesFileContentType(String imagesFileContentType)
imagesFileContentType
- the imagesFileContentTypepublic ClassifyOptions.Builder url(String url)
url
- the urlpublic ClassifyOptions.Builder threshold(Float threshold)
threshold
- the thresholdpublic ClassifyOptions.Builder owners(List<String> owners)
owners
- the ownerspublic ClassifyOptions.Builder classifierIds(List<String> classifierIds)
classifierIds
- the classifierIdspublic ClassifyOptions.Builder acceptLanguage(String acceptLanguage)
acceptLanguage
- the acceptLanguagepublic ClassifyOptions.Builder imagesFile(File imagesFile) throws FileNotFoundException
imagesFile
- the imagesFileFileNotFoundException
- if the file could not be foundCopyright © 2021 IBM Cloud. All rights reserved.