Class QueryNoticesOptions.Builder

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

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

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

    • build

      public QueryNoticesOptions build()
      Builds a QueryNoticesOptions.
      Returns:
      the new QueryNoticesOptions instance
    • projectId

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

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

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

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

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

      public QueryNoticesOptions.Builder offset​(long offset)
      Set the offset.
      Parameters:
      offset - the offset
      Returns:
      the QueryNoticesOptions builder