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.Builder
addExamples(TrainingExample examples)
Adds an examples to examples.CreateTrainingQueryOptions
build()
Builds a CreateTrainingQueryOptions.CreateTrainingQueryOptions.Builder
examples(List<TrainingExample> examples)
Set the examples.CreateTrainingQueryOptions.Builder
filter(String filter)
Set the filter.CreateTrainingQueryOptions.Builder
naturalLanguageQuery(String naturalLanguageQuery)
Set the naturalLanguageQuery.CreateTrainingQueryOptions.Builder
projectId(String projectId)
Set the projectId.CreateTrainingQueryOptions.Builder
trainingQuery(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
-