Class CreateClassifierOptions.Builder
java.lang.Object
com.ibm.watson.natural_language_classifier.v1.model.CreateClassifierOptions.Builder
- Enclosing class:
- CreateClassifierOptions
public static class CreateClassifierOptions.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(InputStream trainingMetadata, InputStream trainingData)
Instantiates a new builder with required properties. -
Method Summary
Modifier and Type Method Description CreateClassifierOptions
build()
Builds a CreateClassifierOptions.CreateClassifierOptions.Builder
trainingData(File trainingData)
Set the trainingData.CreateClassifierOptions.Builder
trainingData(InputStream trainingData)
Set the trainingData.CreateClassifierOptions.Builder
trainingMetadata(File trainingMetadata)
Set the trainingMetadata.CreateClassifierOptions.Builder
trainingMetadata(InputStream trainingMetadata)
Set the trainingMetadata.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
trainingMetadata
- the trainingMetadatatrainingData
- the trainingData
-
-
Method Details
-
build
Builds a CreateClassifierOptions.- Returns:
- the new CreateClassifierOptions instance
-
trainingMetadata
Set the trainingMetadata.- Parameters:
trainingMetadata
- the trainingMetadata- Returns:
- the CreateClassifierOptions builder
-
trainingData
Set the trainingData.- Parameters:
trainingData
- the trainingData- Returns:
- the CreateClassifierOptions builder
-
trainingMetadata
public CreateClassifierOptions.Builder trainingMetadata(File trainingMetadata) throws FileNotFoundExceptionSet the trainingMetadata.- Parameters:
trainingMetadata
- the trainingMetadata- Returns:
- the CreateClassifierOptions builder
- Throws:
FileNotFoundException
- if the file could not be found
-
trainingData
public CreateClassifierOptions.Builder trainingData(File trainingData) throws FileNotFoundExceptionSet the trainingData.- Parameters:
trainingData
- the trainingData- Returns:
- the CreateClassifierOptions builder
- Throws:
FileNotFoundException
- if the file could not be found
-