Class UpdateTrainingQueryOptions.Builder
java.lang.Object
com.ibm.watson.discovery.v2.model.UpdateTrainingQueryOptions.Builder
- Enclosing class:
- UpdateTrainingQueryOptions
public static class UpdateTrainingQueryOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description UpdateTrainingQueryOptions.Builder
addExamples(TrainingExample examples)
Adds an examples 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.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
public Builder(String projectId, String queryId, String naturalLanguageQuery, List<TrainingExample> examples)Instantiates a new builder with required properties.- Parameters:
projectId
- the projectIdqueryId
- the queryIdnaturalLanguageQuery
- the naturalLanguageQueryexamples
- the examples
-
-
Method Details
-
build
Builds a UpdateTrainingQueryOptions.- Returns:
- the new UpdateTrainingQueryOptions instance
-
addExamples
Adds an examples to examples.- Parameters:
examples
- the new examples- Returns:
- the UpdateTrainingQueryOptions builder
-
projectId
Set the projectId.- Parameters:
projectId
- the projectId- Returns:
- the UpdateTrainingQueryOptions builder
-
queryId
Set the queryId.- Parameters:
queryId
- the queryId- Returns:
- the UpdateTrainingQueryOptions builder
-
naturalLanguageQuery
Set the naturalLanguageQuery.- Parameters:
naturalLanguageQuery
- the naturalLanguageQuery- Returns:
- the UpdateTrainingQueryOptions builder
-
examples
Set the examples. Existing examples will be replaced.- Parameters:
examples
- the examples- Returns:
- the UpdateTrainingQueryOptions builder
-
filter
Set the filter.- Parameters:
filter
- the filter- Returns:
- the UpdateTrainingQueryOptions builder
-
trainingQuery
Set the trainingQuery.- Parameters:
trainingQuery
- the trainingQuery- Returns:
- the UpdateTrainingQueryOptions builder
-