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.BuilderacceptLanguage(String acceptLanguage)Set the acceptLanguage.ClassifyOptions.BuilderaddClassifierId(String classifierId)Adds an classifierId to classifierIds.ClassifyOptions.BuilderaddOwner(String owner)Adds an owner to owners.ClassifyOptionsbuild()Builds a ClassifyOptions.ClassifyOptions.BuilderclassifierIds(List<String> classifierIds)Set the classifierIds.ClassifyOptions.BuilderimagesFile(File imagesFile)Set the imagesFile.ClassifyOptions.BuilderimagesFile(InputStream imagesFile)Set the imagesFile.ClassifyOptions.BuilderimagesFileContentType(String imagesFileContentType)Set the imagesFileContentType.ClassifyOptions.BuilderimagesFilename(String imagesFilename)Set the imagesFilename.ClassifyOptions.Builderowners(List<String> owners)Set the owners.ClassifyOptions.Builderthreshold(Float threshold)Set the threshold.ClassifyOptions.Builderurl(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
-