Class ClassifyOptions.Builder
java.lang.Object
com.ibm.watson.visual_recognition.v3.model.ClassifyOptions.Builder
- Enclosing class:
- ClassifyOptions
public static class ClassifyOptions.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder. -
Method Summary
Modifier and Type Method 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.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder.
-
-
Method Details
-
build
Builds a ClassifyOptions.- Returns:
- the new ClassifyOptions instance
-
addOwner
Adds an owner to owners.- Parameters:
owner
- the new owner- Returns:
- the ClassifyOptions builder
-
addClassifierId
Adds an classifierId to classifierIds.- Parameters:
classifierId
- the new classifierId- Returns:
- the ClassifyOptions builder
-
imagesFile
Set the imagesFile.- Parameters:
imagesFile
- the imagesFile- Returns:
- the ClassifyOptions builder
-
imagesFilename
Set the imagesFilename.- Parameters:
imagesFilename
- the imagesFilename- Returns:
- the ClassifyOptions builder
-
imagesFileContentType
Set the imagesFileContentType.- Parameters:
imagesFileContentType
- the imagesFileContentType- Returns:
- the ClassifyOptions builder
-
url
Set the url.- Parameters:
url
- the url- Returns:
- the ClassifyOptions builder
-
threshold
Set the threshold.- Parameters:
threshold
- the threshold- Returns:
- the ClassifyOptions builder
-
owners
Set the owners. Existing owners will be replaced.- Parameters:
owners
- the owners- Returns:
- the ClassifyOptions builder
-
classifierIds
Set the classifierIds. Existing classifierIds will be replaced.- Parameters:
classifierIds
- the classifierIds- Returns:
- the ClassifyOptions builder
-
acceptLanguage
Set the acceptLanguage.- Parameters:
acceptLanguage
- the acceptLanguage- Returns:
- the ClassifyOptions builder
-
imagesFile
Set the imagesFile.- Parameters:
imagesFile
- the imagesFile- Returns:
- the ClassifyOptions builder
- Throws:
FileNotFoundException
- if the file could not be found
-