public static class AddTrainingDataOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(java.lang.String environmentId,
java.lang.String collectionId)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
AddTrainingDataOptions.Builder |
addExamples(TrainingExample examples)
Adds an examples to examples.
|
AddTrainingDataOptions |
build()
Builds a AddTrainingDataOptions.
|
AddTrainingDataOptions.Builder |
collectionId(java.lang.String collectionId)
Set the collectionId.
|
AddTrainingDataOptions.Builder |
environmentId(java.lang.String environmentId)
Set the environmentId.
|
AddTrainingDataOptions.Builder |
examples(java.util.List<TrainingExample> examples)
Set the examples.
|
AddTrainingDataOptions.Builder |
filter(java.lang.String filter)
Set the filter.
|
AddTrainingDataOptions.Builder |
naturalLanguageQuery(java.lang.String naturalLanguageQuery)
Set the naturalLanguageQuery.
|
public Builder()
public Builder(java.lang.String environmentId, java.lang.String collectionId)
environmentId
- the environmentIdcollectionId
- the collectionIdpublic AddTrainingDataOptions build()
public AddTrainingDataOptions.Builder addExamples(TrainingExample examples)
examples
- the new examplespublic AddTrainingDataOptions.Builder environmentId(java.lang.String environmentId)
environmentId
- the environmentIdpublic AddTrainingDataOptions.Builder collectionId(java.lang.String collectionId)
collectionId
- the collectionIdpublic AddTrainingDataOptions.Builder naturalLanguageQuery(java.lang.String naturalLanguageQuery)
naturalLanguageQuery
- the naturalLanguageQuerypublic AddTrainingDataOptions.Builder filter(java.lang.String filter)
filter
- the filterpublic AddTrainingDataOptions.Builder examples(java.util.List<TrainingExample> examples)
examples
- the examples