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