Class CreateTrainingQueryOptions.Builder
java.lang.Object
com.ibm.watson.discovery.v2.model.CreateTrainingQueryOptions.Builder
- Enclosing class:
- CreateTrainingQueryOptions
public static class CreateTrainingQueryOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description CreateTrainingQueryOptions.BuilderaddExamples(TrainingExample examples)Adds an examples to examples.CreateTrainingQueryOptionsbuild()Builds a CreateTrainingQueryOptions.CreateTrainingQueryOptions.Builderexamples(List<TrainingExample> examples)Set the examples.CreateTrainingQueryOptions.Builderfilter(String filter)Set the filter.CreateTrainingQueryOptions.BuildernaturalLanguageQuery(String naturalLanguageQuery)Set the naturalLanguageQuery.CreateTrainingQueryOptions.BuilderprojectId(String projectId)Set the projectId.CreateTrainingQueryOptions.BuildertrainingQuery(TrainingQuery trainingQuery)Set the trainingQuery.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
projectId- the projectIdnaturalLanguageQuery- the naturalLanguageQueryexamples- the examples
-
-
Method Details
-
build
Builds a CreateTrainingQueryOptions.- Returns:
- the new CreateTrainingQueryOptions instance
-
addExamples
Adds an examples to examples.- Parameters:
examples- the new examples- Returns:
- the CreateTrainingQueryOptions builder
-
projectId
Set the projectId.- Parameters:
projectId- the projectId- Returns:
- the CreateTrainingQueryOptions builder
-
naturalLanguageQuery
Set the naturalLanguageQuery.- Parameters:
naturalLanguageQuery- the naturalLanguageQuery- Returns:
- the CreateTrainingQueryOptions builder
-
examples
Set the examples. Existing examples will be replaced.- Parameters:
examples- the examples- Returns:
- the CreateTrainingQueryOptions builder
-
filter
Set the filter.- Parameters:
filter- the filter- Returns:
- the CreateTrainingQueryOptions builder
-
trainingQuery
Set the trainingQuery.- Parameters:
trainingQuery- the trainingQuery- Returns:
- the CreateTrainingQueryOptions builder
-