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