Class QueryLogOptions.Builder

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

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

    • Builder

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

    • build

      public QueryLogOptions build()
      Builds a QueryLogOptions.
      Returns:
      the new QueryLogOptions instance
    • addSort

      public QueryLogOptions.Builder addSort​(String sort)
      Adds an sort to sort.
      Parameters:
      sort - the new sort
      Returns:
      the QueryLogOptions builder
    • filter

      public QueryLogOptions.Builder filter​(String filter)
      Set the filter.
      Parameters:
      filter - the filter
      Returns:
      the QueryLogOptions builder
    • query

      public QueryLogOptions.Builder query​(String query)
      Set the query.
      Parameters:
      query - the query
      Returns:
      the QueryLogOptions builder
    • count

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

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

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