Class AddTrainingDataOptions

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v1.model.AddTrainingDataOptions
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class AddTrainingDataOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The addTrainingData options.
  • Method Details

    • newBuilder

      public AddTrainingDataOptions.Builder newBuilder()
      New builder.
      Returns:
      a AddTrainingDataOptions builder
    • environmentId

      public String environmentId()
      Gets the environmentId.

      The ID of the environment.

      Returns:
      the environmentId
    • collectionId

      public String collectionId()
      Gets the collectionId.

      The ID of the collection.

      Returns:
      the collectionId
    • naturalLanguageQuery

      public String naturalLanguageQuery()
      Gets the naturalLanguageQuery.

      The natural text query for the new training query.

      Returns:
      the naturalLanguageQuery
    • filter

      public String filter()
      Gets the filter.

      The filter used on the collection before the **natural_language_query** is applied.

      Returns:
      the filter
    • examples

      public List<TrainingExample> examples()
      Gets the examples.

      Array of training examples.

      Returns:
      the examples