public static class UpdateClassifierOptions.Builder
extends java.lang.Object
| Constructor and Description | 
|---|
UpdateClassifierOptions.Builder()
Instantiates a new builder. 
 | 
UpdateClassifierOptions.Builder(java.lang.String classifierId)
Instantiates a new builder with required properties. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
UpdateClassifierOptions.Builder | 
addClass(java.lang.String classname,
        java.io.File positiveExamples)
Deprecated. 
 
This method has been replaced by addPositiveExamples(String, File) and will be removed in the next
             major release 
 | 
UpdateClassifierOptions.Builder | 
addPositiveExamples(java.lang.String classname,
                   java.io.File positiveExamples)
Adds an entry to the positiveExamples map. 
 | 
UpdateClassifierOptions.Builder | 
addPositiveExamples(java.lang.String classname,
                   java.io.InputStream positiveExamples)
Adds an entry to the positiveExamples map. 
 | 
UpdateClassifierOptions.Builder | 
addPositiveExamplesFilename(java.lang.String classname,
                           java.lang.String positiveExamplesFilename)
Adds an entry to the positiveExamplesFilename map. 
 | 
UpdateClassifierOptions | 
build()
Builds a UpdateClassifierOptions. 
 | 
UpdateClassifierOptions.Builder | 
classifierId(java.lang.String classifierId)
Set the classifierId. 
 | 
UpdateClassifierOptions.Builder | 
negativeExamples(java.io.File negativeExamples)
Set the negativeExamples. 
 | 
UpdateClassifierOptions.Builder | 
negativeExamples(java.io.InputStream negativeExamples)
Set the negativeExamples. 
 | 
UpdateClassifierOptions.Builder | 
negativeExamplesFilename(java.lang.String negativeExamplesFilename)
Set the negativeExamplesFilename. 
 | 
UpdateClassifierOptions.Builder | 
positiveExamples(java.util.Map<java.lang.String,java.io.InputStream> positiveExamples)
Set the positiveExamples. 
 | 
UpdateClassifierOptions.Builder | 
positiveExamplesFilename(java.util.Map<java.lang.String,java.lang.String> positiveExamplesFilename)
Set the positiveExamplesFilename. 
 | 
public UpdateClassifierOptions.Builder()
public UpdateClassifierOptions.Builder(java.lang.String classifierId)
classifierId - the classifierIdpublic UpdateClassifierOptions build()
public UpdateClassifierOptions.Builder addPositiveExamples(java.lang.String classname, java.io.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 addPositiveExamplesFilename(java.lang.String classname, java.lang.String positiveExamplesFilename)
classname - the key associated with the map entry to be addedpositiveExamplesFilename - the value associated with the map entry to be addedpublic UpdateClassifierOptions.Builder classifierId(java.lang.String classifierId)
classifierId - the classifierIdpublic UpdateClassifierOptions.Builder positiveExamples(java.util.Map<java.lang.String,java.io.InputStream> positiveExamples)
positiveExamples - the positiveExamplespublic UpdateClassifierOptions.Builder positiveExamplesFilename(java.util.Map<java.lang.String,java.lang.String> positiveExamplesFilename)
positiveExamplesFilename - the positiveExamplesFilenamepublic UpdateClassifierOptions.Builder negativeExamples(java.io.InputStream negativeExamples)
negativeExamples - the negativeExamplespublic UpdateClassifierOptions.Builder negativeExamplesFilename(java.lang.String negativeExamplesFilename)
negativeExamplesFilename - the negativeExamplesFilenamepublic UpdateClassifierOptions.Builder addPositiveExamples(java.lang.String classname, java.io.File positiveExamples) throws java.io.FileNotFoundException
classname - the key associated with the map entry to be addedpositiveExamples - the value associated with the map entry to be addedjava.io.FileNotFoundException - if the file could not be foundpublic UpdateClassifierOptions.Builder negativeExamples(java.io.File negativeExamples) throws java.io.FileNotFoundException
negativeExamples - the negativeExamplesjava.io.FileNotFoundException - if the file could not be foundpublic UpdateClassifierOptions.Builder addClass(java.lang.String classname, java.io.File positiveExamples) throws java.io.FileNotFoundException
classname - the class namepositiveExamples - the positive examplesjava.io.FileNotFoundException - if the file could not be found