Class UpdateSentimentModelOptions.Builder
java.lang.Object
com.ibm.watson.natural_language_understanding.v1.model.UpdateSentimentModelOptions.Builder
- Enclosing class:
 - UpdateSentimentModelOptions
 
public static class UpdateSentimentModelOptions.Builder extends Object
Builder.
- 
Constructor Summary
Constructors Constructor Description Builder()Instantiates a new builder.Builder(String modelId, 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:
 modelId- the modelIdlanguage- the languagetrainingData- the trainingData
 
 - 
 - 
Method Details
- 
build
Builds a UpdateSentimentModelOptions.- Returns:
 - the new UpdateSentimentModelOptions instance
 
 - 
modelId
Set the modelId.- Parameters:
 modelId- the modelId- Returns:
 - the UpdateSentimentModelOptions builder
 
 - 
language
Set the language.- Parameters:
 language- the language- Returns:
 - the UpdateSentimentModelOptions builder
 
 - 
trainingData
Set the trainingData.- Parameters:
 trainingData- the trainingData- Returns:
 - the UpdateSentimentModelOptions builder
 
 - 
name
Set the name.- Parameters:
 name- the name- Returns:
 - the UpdateSentimentModelOptions builder
 
 - 
userMetadata
Set the userMetadata.- Parameters:
 userMetadata- the userMetadata- Returns:
 - the UpdateSentimentModelOptions builder
 
 - 
description
Set the description.- Parameters:
 description- the description- Returns:
 - the UpdateSentimentModelOptions builder
 
 - 
modelVersion
Set the modelVersion.- Parameters:
 modelVersion- the modelVersion- Returns:
 - the UpdateSentimentModelOptions builder
 
 - 
workspaceId
Set the workspaceId.- Parameters:
 workspaceId- the workspaceId- Returns:
 - the UpdateSentimentModelOptions builder
 
 - 
versionDescription
Set the versionDescription.- Parameters:
 versionDescription- the versionDescription- Returns:
 - the UpdateSentimentModelOptions builder
 
 - 
trainingData
public UpdateSentimentModelOptions.Builder trainingData(File trainingData) throws FileNotFoundExceptionSet the trainingData.- Parameters:
 trainingData- the trainingData- Returns:
 - the UpdateSentimentModelOptions builder
 - Throws:
 FileNotFoundException- if the file could not be found
 
 -