Class PostExplainOptions.Builder

java.lang.Object
com.ibm.cloud.cloudant.v1.model.PostExplainOptions.Builder
Enclosing class:
PostExplainOptions

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder(String db, Map<String,Object> selector)
      Instantiates a new builder with required properties.
      Parameters:
      db - the db
      selector - the selector
  • Method Details

    • build

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

      public PostExplainOptions.Builder addFields(String fields)
      Adds a new element to fields.
      Parameters:
      fields - the new element to be added
      Returns:
      the PostExplainOptions builder
    • addSort

      public PostExplainOptions.Builder addSort(Map<String,String> sort)
      Adds a new element to sort.
      Parameters:
      sort - the new element to be added
      Returns:
      the PostExplainOptions builder
    • addUseIndex

      public PostExplainOptions.Builder addUseIndex(String useIndex)
      Adds a new element to useIndex.
      Parameters:
      useIndex - the new element to be added
      Returns:
      the PostExplainOptions builder
    • db

      Set the db.
      Parameters:
      db - the db
      Returns:
      the PostExplainOptions builder
    • selector

      public PostExplainOptions.Builder selector(Map<String,Object> selector)
      Set the selector.
      Parameters:
      selector - the selector
      Returns:
      the PostExplainOptions builder
    • bookmark

      public PostExplainOptions.Builder bookmark(String bookmark)
      Set the bookmark.
      Parameters:
      bookmark - the bookmark
      Returns:
      the PostExplainOptions builder
    • conflicts

      public PostExplainOptions.Builder conflicts(Boolean conflicts)
      Set the conflicts.
      Parameters:
      conflicts - the conflicts
      Returns:
      the PostExplainOptions builder
    • executionStats

      public PostExplainOptions.Builder executionStats(Boolean executionStats)
      Set the executionStats.
      Parameters:
      executionStats - the executionStats
      Returns:
      the PostExplainOptions builder
    • fields

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

      public PostExplainOptions.Builder limit(long limit)
      Set the limit.
      Parameters:
      limit - the limit
      Returns:
      the PostExplainOptions builder
    • skip

      public PostExplainOptions.Builder skip(long skip)
      Set the skip.
      Parameters:
      skip - the skip
      Returns:
      the PostExplainOptions builder
    • sort

      Set the sort. Existing sort will be replaced.
      Parameters:
      sort - the sort
      Returns:
      the PostExplainOptions builder
    • stable

      public PostExplainOptions.Builder stable(Boolean stable)
      Set the stable.
      Parameters:
      stable - the stable
      Returns:
      the PostExplainOptions builder
    • update

      public PostExplainOptions.Builder update(String update)
      Set the update.
      Parameters:
      update - the update
      Returns:
      the PostExplainOptions builder
    • useIndex

      public PostExplainOptions.Builder useIndex(List<String> useIndex)
      Set the useIndex. Existing useIndex will be replaced.
      Parameters:
      useIndex - the useIndex
      Returns:
      the PostExplainOptions builder
    • r

      public PostExplainOptions.Builder r(long r)
      Set the r.
      Parameters:
      r - the r
      Returns:
      the PostExplainOptions builder