Class UpdateTrainingExampleOptions.Builder
java.lang.Object
com.ibm.watson.discovery.v1.model.UpdateTrainingExampleOptions.Builder
- Enclosing class:
- UpdateTrainingExampleOptions
public static class UpdateTrainingExampleOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description UpdateTrainingExampleOptionsbuild()Builds a UpdateTrainingExampleOptions.UpdateTrainingExampleOptions.BuildercollectionId(String collectionId)Set the collectionId.UpdateTrainingExampleOptions.BuildercrossReference(String crossReference)Set the crossReference.UpdateTrainingExampleOptions.BuilderenvironmentId(String environmentId)Set the environmentId.UpdateTrainingExampleOptions.BuilderexampleId(String exampleId)Set the exampleId.UpdateTrainingExampleOptions.BuilderqueryId(String queryId)Set the queryId.UpdateTrainingExampleOptions.Builderrelevance(long relevance)Set the relevance.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
environmentId- the environmentIdcollectionId- the collectionIdqueryId- the queryIdexampleId- the exampleId
-
-
Method Details
-
build
Builds a UpdateTrainingExampleOptions.- Returns:
- the new UpdateTrainingExampleOptions instance
-
environmentId
Set the environmentId.- Parameters:
environmentId- the environmentId- Returns:
- the UpdateTrainingExampleOptions builder
-
collectionId
Set the collectionId.- Parameters:
collectionId- the collectionId- Returns:
- the UpdateTrainingExampleOptions builder
-
queryId
Set the queryId.- Parameters:
queryId- the queryId- Returns:
- the UpdateTrainingExampleOptions builder
-
exampleId
Set the exampleId.- Parameters:
exampleId- the exampleId- Returns:
- the UpdateTrainingExampleOptions builder
-
crossReference
Set the crossReference.- Parameters:
crossReference- the crossReference- Returns:
- the UpdateTrainingExampleOptions builder
-
relevance
Set the relevance.- Parameters:
relevance- the relevance- Returns:
- the UpdateTrainingExampleOptions builder
-