public static class UpdateDocumentClassifierOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String projectId,
String classifierId,
UpdateDocumentClassifier classifier)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
UpdateDocumentClassifierOptions |
build()
Builds a UpdateDocumentClassifierOptions.
|
UpdateDocumentClassifierOptions.Builder |
classifier(UpdateDocumentClassifier classifier)
Set the classifier.
|
UpdateDocumentClassifierOptions.Builder |
classifierId(String classifierId)
Set the classifierId.
|
UpdateDocumentClassifierOptions.Builder |
projectId(String projectId)
Set the projectId.
|
UpdateDocumentClassifierOptions.Builder |
testData(File testData)
Set the testData.
|
UpdateDocumentClassifierOptions.Builder |
testData(InputStream testData)
Set the testData.
|
UpdateDocumentClassifierOptions.Builder |
trainingData(File trainingData)
Set the trainingData.
|
UpdateDocumentClassifierOptions.Builder |
trainingData(InputStream trainingData)
Set the trainingData.
|
public Builder()
public Builder(String projectId, String classifierId, UpdateDocumentClassifier classifier)
projectId
- the projectIdclassifierId
- the classifierIdclassifier
- the classifierpublic UpdateDocumentClassifierOptions build()
public UpdateDocumentClassifierOptions.Builder projectId(String projectId)
projectId
- the projectIdpublic UpdateDocumentClassifierOptions.Builder classifierId(String classifierId)
classifierId
- the classifierIdpublic UpdateDocumentClassifierOptions.Builder classifier(UpdateDocumentClassifier classifier)
classifier
- the classifierpublic UpdateDocumentClassifierOptions.Builder trainingData(InputStream trainingData)
trainingData
- the trainingDatapublic UpdateDocumentClassifierOptions.Builder testData(InputStream testData)
testData
- the testDatapublic UpdateDocumentClassifierOptions.Builder trainingData(File trainingData) throws FileNotFoundException
trainingData
- the trainingDataFileNotFoundException
- if the file could not be foundpublic UpdateDocumentClassifierOptions.Builder testData(File testData) throws FileNotFoundException
testData
- the testDataFileNotFoundException
- if the file could not be foundCopyright © 2023 IBM Cloud. All rights reserved.