Class AddTrainingDataOptions.Builder
java.lang.Object
com.ibm.watson.discovery.v1.model.AddTrainingDataOptions.Builder
- Enclosing class:
- AddTrainingDataOptions
public static class AddTrainingDataOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description AddTrainingDataOptions.Builder
addExamples(TrainingExample examples)
Adds an examples to examples.AddTrainingDataOptions
build()
Builds a AddTrainingDataOptions.AddTrainingDataOptions.Builder
collectionId(String collectionId)
Set the collectionId.AddTrainingDataOptions.Builder
environmentId(String environmentId)
Set the environmentId.AddTrainingDataOptions.Builder
examples(List<TrainingExample> examples)
Set the examples.AddTrainingDataOptions.Builder
filter(String filter)
Set the filter.AddTrainingDataOptions.Builder
naturalLanguageQuery(String naturalLanguageQuery)
Set the naturalLanguageQuery.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
environmentId
- the environmentIdcollectionId
- the collectionId
-
-
Method Details
-
build
Builds a AddTrainingDataOptions.- Returns:
- the new AddTrainingDataOptions instance
-
addExamples
Adds an examples to examples.- Parameters:
examples
- the new examples- Returns:
- the AddTrainingDataOptions builder
-
environmentId
Set the environmentId.- Parameters:
environmentId
- the environmentId- Returns:
- the AddTrainingDataOptions builder
-
collectionId
Set the collectionId.- Parameters:
collectionId
- the collectionId- Returns:
- the AddTrainingDataOptions builder
-
naturalLanguageQuery
Set the naturalLanguageQuery.- Parameters:
naturalLanguageQuery
- the naturalLanguageQuery- Returns:
- the AddTrainingDataOptions builder
-
filter
Set the filter.- Parameters:
filter
- the filter- Returns:
- the AddTrainingDataOptions builder
-
examples
Set the examples. Existing examples will be replaced.- Parameters:
examples
- the examples- Returns:
- the AddTrainingDataOptions builder
-