Class CreateTrainingExampleOptions.Builder
java.lang.Object
com.ibm.watson.discovery.v1.model.CreateTrainingExampleOptions.Builder
- Enclosing class:
- CreateTrainingExampleOptions
public static class CreateTrainingExampleOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method 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.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
environmentId
- the environmentIdcollectionId
- the collectionIdqueryId
- the queryId
-
-
Method Details
-
build
Builds a CreateTrainingExampleOptions.- Returns:
- the new CreateTrainingExampleOptions instance
-
environmentId
Set the environmentId.- Parameters:
environmentId
- the environmentId- Returns:
- the CreateTrainingExampleOptions builder
-
collectionId
Set the collectionId.- Parameters:
collectionId
- the collectionId- Returns:
- the CreateTrainingExampleOptions builder
-
queryId
Set the queryId.- Parameters:
queryId
- the queryId- Returns:
- the CreateTrainingExampleOptions builder
-
documentId
Set the documentId.- Parameters:
documentId
- the documentId- Returns:
- the CreateTrainingExampleOptions builder
-
crossReference
Set the crossReference.- Parameters:
crossReference
- the crossReference- Returns:
- the CreateTrainingExampleOptions builder
-
relevance
Set the relevance.- Parameters:
relevance
- the relevance- Returns:
- the CreateTrainingExampleOptions builder
-
trainingExample
Set the trainingExample.- Parameters:
trainingExample
- the trainingExample- Returns:
- the CreateTrainingExampleOptions builder
-