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 UpdateTrainingExampleOptions
build()
Builds a UpdateTrainingExampleOptions.UpdateTrainingExampleOptions.Builder
collectionId(String collectionId)
Set the collectionId.UpdateTrainingExampleOptions.Builder
crossReference(String crossReference)
Set the crossReference.UpdateTrainingExampleOptions.Builder
environmentId(String environmentId)
Set the environmentId.UpdateTrainingExampleOptions.Builder
exampleId(String exampleId)
Set the exampleId.UpdateTrainingExampleOptions.Builder
queryId(String queryId)
Set the queryId.UpdateTrainingExampleOptions.Builder
relevance(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
-