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 Details

    • Builder

      public Builder()
      Instantiates a new builder.
  • Method Details

    • build

      public TrainingExample build()
      Builds a TrainingExample.
      Returns:
      the new TrainingExample instance
    • documentId

      public TrainingExample.Builder documentId​(String documentId)
      Set the documentId.
      Parameters:
      documentId - the documentId
      Returns:
      the TrainingExample builder
    • crossReference

      public TrainingExample.Builder crossReference​(String crossReference)
      Set the crossReference.
      Parameters:
      crossReference - the crossReference
      Returns:
      the TrainingExample builder
    • relevance

      public TrainingExample.Builder relevance​(long relevance)
      Set the relevance.
      Parameters:
      relevance - the relevance
      Returns:
      the TrainingExample builder