public static class UpdateTrainingQueryOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String projectId,
String queryId,
String naturalLanguageQuery,
List<TrainingExample> examples)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
UpdateTrainingQueryOptions.Builder |
addExamples(TrainingExample examples)
Adds a new element to examples.
|
UpdateTrainingQueryOptions |
build()
Builds a UpdateTrainingQueryOptions.
|
UpdateTrainingQueryOptions.Builder |
examples(List<TrainingExample> examples)
Set the examples.
|
UpdateTrainingQueryOptions.Builder |
filter(String filter)
Set the filter.
|
UpdateTrainingQueryOptions.Builder |
naturalLanguageQuery(String naturalLanguageQuery)
Set the naturalLanguageQuery.
|
UpdateTrainingQueryOptions.Builder |
projectId(String projectId)
Set the projectId.
|
UpdateTrainingQueryOptions.Builder |
queryId(String queryId)
Set the queryId.
|
UpdateTrainingQueryOptions.Builder |
trainingQuery(TrainingQuery trainingQuery)
Set the trainingQuery.
|
public Builder()
public Builder(String projectId, String queryId, String naturalLanguageQuery, List<TrainingExample> examples)
projectId
- the projectIdqueryId
- the queryIdnaturalLanguageQuery
- the naturalLanguageQueryexamples
- the examplespublic UpdateTrainingQueryOptions build()
public UpdateTrainingQueryOptions.Builder addExamples(TrainingExample examples)
examples
- the new element to be addedpublic UpdateTrainingQueryOptions.Builder projectId(String projectId)
projectId
- the projectIdpublic UpdateTrainingQueryOptions.Builder queryId(String queryId)
queryId
- the queryIdpublic UpdateTrainingQueryOptions.Builder naturalLanguageQuery(String naturalLanguageQuery)
naturalLanguageQuery
- the naturalLanguageQuerypublic UpdateTrainingQueryOptions.Builder examples(List<TrainingExample> examples)
examples
- the examplespublic UpdateTrainingQueryOptions.Builder filter(String filter)
filter
- the filterpublic UpdateTrainingQueryOptions.Builder trainingQuery(TrainingQuery trainingQuery)
trainingQuery
- the trainingQueryCopyright © 2024 IBM Cloud. All rights reserved.