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 Details

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(String documentId, String collectionId, Long relevance)
      Instantiates a new builder with required properties.
      Parameters:
      documentId - the documentId
      collectionId - the collectionId
      relevance - the relevance
  • 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
    • collectionId

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

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