Class CreateClassificationsModelOptions.Builder
java.lang.Object
com.ibm.watson.natural_language_understanding.v1.model.CreateClassificationsModelOptions.Builder
- Enclosing class:
- CreateClassificationsModelOptions
public static class CreateClassificationsModelOptions.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(String language, InputStream trainingData)
Instantiates a new builder with required properties. -
Method Summary
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
language
- the languagetrainingData
- the trainingData
-
-
Method Details
-
build
Builds a CreateClassificationsModelOptions.- Returns:
- the new CreateClassificationsModelOptions instance
-
language
Set the language.- Parameters:
language
- the language- Returns:
- the CreateClassificationsModelOptions builder
-
trainingData
Set the trainingData.- Parameters:
trainingData
- the trainingData- Returns:
- the CreateClassificationsModelOptions builder
-
trainingDataContentType
public CreateClassificationsModelOptions.Builder trainingDataContentType(String trainingDataContentType)Set the trainingDataContentType.- Parameters:
trainingDataContentType
- the trainingDataContentType- Returns:
- the CreateClassificationsModelOptions builder
-
name
Set the name.- Parameters:
name
- the name- Returns:
- the CreateClassificationsModelOptions builder
-
userMetadata
Set the userMetadata.- Parameters:
userMetadata
- the userMetadata- Returns:
- the CreateClassificationsModelOptions builder
-
description
Set the description.- Parameters:
description
- the description- Returns:
- the CreateClassificationsModelOptions builder
-
modelVersion
Set the modelVersion.- Parameters:
modelVersion
- the modelVersion- Returns:
- the CreateClassificationsModelOptions builder
-
workspaceId
Set the workspaceId.- Parameters:
workspaceId
- the workspaceId- Returns:
- the CreateClassificationsModelOptions builder
-
versionDescription
Set the versionDescription.- Parameters:
versionDescription
- the versionDescription- Returns:
- the CreateClassificationsModelOptions builder
-
trainingData
public CreateClassificationsModelOptions.Builder trainingData(File trainingData) throws FileNotFoundExceptionSet the trainingData.- Parameters:
trainingData
- the trainingData- Returns:
- the CreateClassificationsModelOptions builder
- Throws:
FileNotFoundException
- if the file could not be found
-