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.BuilderaddExamples(TrainingExample examples)Adds an examples to examples.UpdateTrainingQueryOptionsbuild()Builds a UpdateTrainingQueryOptions.UpdateTrainingQueryOptions.Builderexamples(List<TrainingExample> examples)Set the examples.UpdateTrainingQueryOptions.Builderfilter(String filter)Set the filter.UpdateTrainingQueryOptions.BuildernaturalLanguageQuery(String naturalLanguageQuery)Set the naturalLanguageQuery.UpdateTrainingQueryOptions.BuilderprojectId(String projectId)Set the projectId.UpdateTrainingQueryOptions.BuilderqueryId(String queryId)Set the queryId.UpdateTrainingQueryOptions.BuildertrainingQuery(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
-