Class TrainingExample.Builder
java.lang.Object
com.ibm.watson.discovery.v2.model.TrainingExample.Builder
- Enclosing class:
- TrainingExample
public static class TrainingExample.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description TrainingExample
build()
Builds a TrainingExample.TrainingExample.Builder
collectionId(String collectionId)
Set the collectionId.TrainingExample.Builder
documentId(String documentId)
Set the documentId.TrainingExample.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:
documentId
- the documentIdcollectionId
- the collectionIdrelevance
- the relevance
-
-
Method Details
-
build
Builds a TrainingExample.- Returns:
- the new TrainingExample instance
-
documentId
Set the documentId.- Parameters:
documentId
- the documentId- Returns:
- the TrainingExample builder
-
collectionId
Set the collectionId.- Parameters:
collectionId
- the collectionId- Returns:
- the TrainingExample builder
-
relevance
Set the relevance.- Parameters:
relevance
- the relevance- Returns:
- the TrainingExample builder
-