Class GetTrainingDataOptions.Builder

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

public static class GetTrainingDataOptions.Builder
extends Object
Builder.
  • Constructor Details

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

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

    • build

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

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

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

      public GetTrainingDataOptions.Builder queryId​(String queryId)
      Set the queryId.
      Parameters:
      queryId - the queryId
      Returns:
      the GetTrainingDataOptions builder