Class QueryLargePassages.Builder

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

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

    • Builder

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

    • build

      public QueryLargePassages build()
      Builds a QueryLargePassages.
      Returns:
      the new QueryLargePassages instance
    • addFields

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

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

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

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

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

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

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

      public QueryLargePassages.Builder findAnswers​(Boolean findAnswers)
      Set the findAnswers.
      Parameters:
      findAnswers - the findAnswers
      Returns:
      the QueryLargePassages builder
    • maxAnswersPerPassage

      public QueryLargePassages.Builder maxAnswersPerPassage​(long maxAnswersPerPassage)
      Set the maxAnswersPerPassage.
      Parameters:
      maxAnswersPerPassage - the maxAnswersPerPassage
      Returns:
      the QueryLargePassages builder