public static class UpdateClassifierOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String classifierId)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
UpdateClassifierOptions.Builder |
addPositiveExamples(String classname,
File positiveExamples)
Adds an entry to the positiveExamples map.
|
UpdateClassifierOptions.Builder |
addPositiveExamples(String classname,
InputStream positiveExamples)
Adds an entry to the positiveExamples map.
|
UpdateClassifierOptions |
build()
Builds a UpdateClassifierOptions.
|
UpdateClassifierOptions.Builder |
classifierId(String classifierId)
Set the classifierId.
|
UpdateClassifierOptions.Builder |
negativeExamples(File negativeExamples)
Set the negativeExamples.
|
UpdateClassifierOptions.Builder |
negativeExamples(InputStream negativeExamples)
Set the negativeExamples.
|
UpdateClassifierOptions.Builder |
negativeExamplesFilename(String negativeExamplesFilename)
Set the negativeExamplesFilename.
|
UpdateClassifierOptions.Builder |
positiveExamples(Map<String,InputStream> positiveExamples)
Set the positiveExamples.
|
public Builder()
public Builder(String classifierId)
classifierId
- the classifierIdpublic UpdateClassifierOptions build()
public UpdateClassifierOptions.Builder addPositiveExamples(String classname, InputStream positiveExamples)
classname
- the key associated with the map entry to be addedpositiveExamples
- the value associated with the map entry to be addedpublic UpdateClassifierOptions.Builder classifierId(String classifierId)
classifierId
- the classifierIdpublic UpdateClassifierOptions.Builder positiveExamples(Map<String,InputStream> positiveExamples)
positiveExamples
- the positiveExamplespublic UpdateClassifierOptions.Builder negativeExamples(InputStream negativeExamples)
negativeExamples
- the negativeExamplespublic UpdateClassifierOptions.Builder negativeExamplesFilename(String negativeExamplesFilename)
negativeExamplesFilename
- the negativeExamplesFilenamepublic UpdateClassifierOptions.Builder addPositiveExamples(String classname, File positiveExamples) throws FileNotFoundException
classname
- the key associated with the map entry to be addedpositiveExamples
- the value associated with the map entry to be addedFileNotFoundException
- if the file could not be foundpublic UpdateClassifierOptions.Builder negativeExamples(File negativeExamples) throws FileNotFoundException
negativeExamples
- the negativeExamplesFileNotFoundException
- if the file could not be foundCopyright © 2021 IBM Cloud. All rights reserved.