Class GetTrainingExampleOptions.Builder

java.lang.Object
com.ibm.watson.discovery.v1.model.GetTrainingExampleOptions.Builder
Enclosing class:
GetTrainingExampleOptions

public static class GetTrainingExampleOptions.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

      public GetTrainingExampleOptions build()
      Builds a GetTrainingExampleOptions.
      Returns:
      the new GetTrainingExampleOptions instance
    • environmentId

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

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

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

      public GetTrainingExampleOptions.Builder exampleId​(String exampleId)
      Set the exampleId.
      Parameters:
      exampleId - the exampleId
      Returns:
      the GetTrainingExampleOptions builder