public static class CreateTrainingExampleOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String environmentId,
String collectionId,
String queryId)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
CreateTrainingExampleOptions |
build()
Builds a CreateTrainingExampleOptions.
|
CreateTrainingExampleOptions.Builder |
collectionId(String collectionId)
Set the collectionId.
|
CreateTrainingExampleOptions.Builder |
crossReference(String crossReference)
Set the crossReference.
|
CreateTrainingExampleOptions.Builder |
documentId(String documentId)
Set the documentId.
|
CreateTrainingExampleOptions.Builder |
environmentId(String environmentId)
Set the environmentId.
|
CreateTrainingExampleOptions.Builder |
queryId(String queryId)
Set the queryId.
|
CreateTrainingExampleOptions.Builder |
relevance(long relevance)
Set the relevance.
|
CreateTrainingExampleOptions.Builder |
trainingExample(TrainingExample trainingExample)
Set the trainingExample.
|
public CreateTrainingExampleOptions build()
public CreateTrainingExampleOptions.Builder environmentId(String environmentId)
environmentId
- the environmentIdpublic CreateTrainingExampleOptions.Builder collectionId(String collectionId)
collectionId
- the collectionIdpublic CreateTrainingExampleOptions.Builder queryId(String queryId)
queryId
- the queryIdpublic CreateTrainingExampleOptions.Builder documentId(String documentId)
documentId
- the documentIdpublic CreateTrainingExampleOptions.Builder crossReference(String crossReference)
crossReference
- the crossReferencepublic CreateTrainingExampleOptions.Builder relevance(long relevance)
relevance
- the relevancepublic CreateTrainingExampleOptions.Builder trainingExample(TrainingExample trainingExample)
trainingExample
- the trainingExampleCopyright © 2022 IBM Cloud. All rights reserved.