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 Details

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(String environmentId, String collectionId, String queryId, String exampleId)
      Instantiates a new builder with required properties.
      Parameters:
      environmentId - the environmentId
      collectionId - the collectionId
      queryId - the queryId
      exampleId - the exampleId
  • Method Details

    • build

      Builds a UpdateTrainingExampleOptions.
      Returns:
      the new UpdateTrainingExampleOptions instance
    • environmentId

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

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

      public UpdateTrainingExampleOptions.Builder queryId​(String queryId)
      Set the queryId.
      Parameters:
      queryId - the queryId
      Returns:
      the UpdateTrainingExampleOptions builder
    • exampleId

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

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

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