public static class CreateTrainingExampleOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(java.lang.String environmentId,
java.lang.String collectionId,
java.lang.String queryId)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
CreateTrainingExampleOptions |
build()
Builds a CreateTrainingExampleOptions.
|
CreateTrainingExampleOptions.Builder |
collectionId(java.lang.String collectionId)
Set the collectionId.
|
CreateTrainingExampleOptions.Builder |
crossReference(java.lang.String crossReference)
Set the crossReference.
|
CreateTrainingExampleOptions.Builder |
documentId(java.lang.String documentId)
Set the documentId.
|
CreateTrainingExampleOptions.Builder |
environmentId(java.lang.String environmentId)
Set the environmentId.
|
CreateTrainingExampleOptions.Builder |
queryId(java.lang.String queryId)
Set the queryId.
|
CreateTrainingExampleOptions.Builder |
relevance(long relevance)
Set the relevance.
|
CreateTrainingExampleOptions.Builder |
trainingExample(TrainingExample trainingExample)
Set the trainingExample.
|
public Builder()
public Builder(java.lang.String environmentId, java.lang.String collectionId, java.lang.String queryId)
environmentId
- the environmentIdcollectionId
- the collectionIdqueryId
- the queryIdpublic CreateTrainingExampleOptions build()
public CreateTrainingExampleOptions.Builder environmentId(java.lang.String environmentId)
environmentId
- the environmentIdpublic CreateTrainingExampleOptions.Builder collectionId(java.lang.String collectionId)
collectionId
- the collectionIdpublic CreateTrainingExampleOptions.Builder queryId(java.lang.String queryId)
queryId
- the queryIdpublic CreateTrainingExampleOptions.Builder documentId(java.lang.String documentId)
documentId
- the documentIdpublic CreateTrainingExampleOptions.Builder crossReference(java.lang.String crossReference)
crossReference
- the crossReferencepublic CreateTrainingExampleOptions.Builder relevance(long relevance)
relevance
- the relevancepublic CreateTrainingExampleOptions.Builder trainingExample(TrainingExample trainingExample)
trainingExample
- the trainingExample