public static class AddTrainingDataOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String environmentId,
String collectionId)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
AddTrainingDataOptions.Builder |
addExamples(TrainingExample examples)
Adds an examples to examples.
|
AddTrainingDataOptions |
build()
Builds a AddTrainingDataOptions.
|
AddTrainingDataOptions.Builder |
collectionId(String collectionId)
Set the collectionId.
|
AddTrainingDataOptions.Builder |
environmentId(String environmentId)
Set the environmentId.
|
AddTrainingDataOptions.Builder |
examples(List<TrainingExample> examples)
Set the examples.
|
AddTrainingDataOptions.Builder |
filter(String filter)
Set the filter.
|
AddTrainingDataOptions.Builder |
naturalLanguageQuery(String naturalLanguageQuery)
Set the naturalLanguageQuery.
|
public AddTrainingDataOptions build()
public AddTrainingDataOptions.Builder addExamples(TrainingExample examples)
examples
- the new examplespublic AddTrainingDataOptions.Builder environmentId(String environmentId)
environmentId
- the environmentIdpublic AddTrainingDataOptions.Builder collectionId(String collectionId)
collectionId
- the collectionIdpublic AddTrainingDataOptions.Builder naturalLanguageQuery(String naturalLanguageQuery)
naturalLanguageQuery
- the naturalLanguageQuerypublic AddTrainingDataOptions.Builder filter(String filter)
filter
- the filterpublic AddTrainingDataOptions.Builder examples(List<TrainingExample> examples)
examples
- the examplesCopyright © 2021 IBM Cloud. All rights reserved.