Class DefaultQueryParams.Builder

java.lang.Object
com.ibm.watson.discovery.v2.model.DefaultQueryParams.Builder
Enclosing class:
DefaultQueryParams

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

    • Builder

      public Builder()
      Instantiates a new builder.
  • Method Details

    • build

      public DefaultQueryParams build()
      Builds a DefaultQueryParams.
      Returns:
      the new DefaultQueryParams instance
    • addCollectionIds

      public DefaultQueryParams.Builder addCollectionIds​(String collectionIds)
      Adds an collectionIds to collectionIds.
      Parameters:
      collectionIds - the new collectionIds
      Returns:
      the DefaultQueryParams builder
    • addXReturn

      public DefaultQueryParams.Builder addXReturn​(String xReturn)
      Adds an xReturn to xReturn.
      Parameters:
      xReturn - the new xReturn
      Returns:
      the DefaultQueryParams builder
    • collectionIds

      public DefaultQueryParams.Builder collectionIds​(List<String> collectionIds)
      Set the collectionIds. Existing collectionIds will be replaced.
      Parameters:
      collectionIds - the collectionIds
      Returns:
      the DefaultQueryParams builder
    • passages

      Set the passages.
      Parameters:
      passages - the passages
      Returns:
      the DefaultQueryParams builder
    • tableResults

      public DefaultQueryParams.Builder tableResults​(DefaultQueryParamsTableResults tableResults)
      Set the tableResults.
      Parameters:
      tableResults - the tableResults
      Returns:
      the DefaultQueryParams builder
    • aggregation

      public DefaultQueryParams.Builder aggregation​(String aggregation)
      Set the aggregation.
      Parameters:
      aggregation - the aggregation
      Returns:
      the DefaultQueryParams builder
    • suggestedRefinements

      public DefaultQueryParams.Builder suggestedRefinements​(DefaultQueryParamsSuggestedRefinements suggestedRefinements)
      Set the suggestedRefinements.
      Parameters:
      suggestedRefinements - the suggestedRefinements
      Returns:
      the DefaultQueryParams builder
    • spellingSuggestions

      public DefaultQueryParams.Builder spellingSuggestions​(Boolean spellingSuggestions)
      Set the spellingSuggestions.
      Parameters:
      spellingSuggestions - the spellingSuggestions
      Returns:
      the DefaultQueryParams builder
    • highlight

      public DefaultQueryParams.Builder highlight​(Boolean highlight)
      Set the highlight.
      Parameters:
      highlight - the highlight
      Returns:
      the DefaultQueryParams builder
    • count

      public DefaultQueryParams.Builder count​(long count)
      Set the count.
      Parameters:
      count - the count
      Returns:
      the DefaultQueryParams builder
    • sort

      public DefaultQueryParams.Builder sort​(String sort)
      Set the sort.
      Parameters:
      sort - the sort
      Returns:
      the DefaultQueryParams builder
    • xReturn

      public DefaultQueryParams.Builder xReturn​(List<String> xReturn)
      Set the xReturn. Existing xReturn will be replaced.
      Parameters:
      xReturn - the xReturn
      Returns:
      the DefaultQueryParams builder