Class DefaultQueryParamsPassages.Builder

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

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

    • Builder

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

    • build

      Builds a DefaultQueryParamsPassages.
      Returns:
      the new DefaultQueryParamsPassages instance
    • addFields

      public DefaultQueryParamsPassages.Builder addFields​(String fields)
      Adds an fields to fields.
      Parameters:
      fields - the new fields
      Returns:
      the DefaultQueryParamsPassages builder
    • enabled

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

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

      public DefaultQueryParamsPassages.Builder fields​(List<String> fields)
      Set the fields. Existing fields will be replaced.
      Parameters:
      fields - the fields
      Returns:
      the DefaultQueryParamsPassages builder
    • characters

      public DefaultQueryParamsPassages.Builder characters​(long characters)
      Set the characters.
      Parameters:
      characters - the characters
      Returns:
      the DefaultQueryParamsPassages builder
    • perDocument

      public DefaultQueryParamsPassages.Builder perDocument​(Boolean perDocument)
      Set the perDocument.
      Parameters:
      perDocument - the perDocument
      Returns:
      the DefaultQueryParamsPassages builder
    • maxPerDocument

      public DefaultQueryParamsPassages.Builder maxPerDocument​(long maxPerDocument)
      Set the maxPerDocument.
      Parameters:
      maxPerDocument - the maxPerDocument
      Returns:
      the DefaultQueryParamsPassages builder