public static class UpdateSentimentModelOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String modelId,
String language,
InputStream trainingData)
Instantiates a new builder with required properties.
|
public Builder()
public Builder(String modelId, String language, InputStream trainingData)
modelId
- the modelIdlanguage
- the languagetrainingData
- the trainingDatapublic UpdateSentimentModelOptions build()
public UpdateSentimentModelOptions.Builder modelId(String modelId)
modelId
- the modelIdpublic UpdateSentimentModelOptions.Builder language(String language)
language
- the languagepublic UpdateSentimentModelOptions.Builder trainingData(InputStream trainingData)
trainingData
- the trainingDatapublic UpdateSentimentModelOptions.Builder name(String name)
name
- the namepublic UpdateSentimentModelOptions.Builder userMetadata(Map<String,Object> userMetadata)
userMetadata
- the userMetadatapublic UpdateSentimentModelOptions.Builder description(String description)
description
- the descriptionpublic UpdateSentimentModelOptions.Builder modelVersion(String modelVersion)
modelVersion
- the modelVersionpublic UpdateSentimentModelOptions.Builder workspaceId(String workspaceId)
workspaceId
- the workspaceIdpublic UpdateSentimentModelOptions.Builder versionDescription(String versionDescription)
versionDescription
- the versionDescriptionpublic UpdateSentimentModelOptions.Builder trainingData(File trainingData) throws FileNotFoundException
trainingData
- the trainingDataFileNotFoundException
- if the file could not be foundCopyright © 2022 IBM Cloud. All rights reserved.