Class BulkDocs.Builder

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

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder(List<Document> docs)
      Instantiates a new builder with required properties.
      Parameters:
      docs - the docs
  • Method Details

    • build

      public BulkDocs build()
      Builds a BulkDocs.
      Returns:
      the new BulkDocs instance
    • addDocs

      public BulkDocs.Builder addDocs(Document docs)
      Adds a new element to docs.
      Parameters:
      docs - the new element to be added
      Returns:
      the BulkDocs builder
    • docs

      public BulkDocs.Builder docs(List<Document> docs)
      Set the docs. Existing docs will be replaced.
      Parameters:
      docs - the docs
      Returns:
      the BulkDocs builder
    • newEdits

      public BulkDocs.Builder newEdits(Boolean newEdits)
      Set the newEdits.
      Parameters:
      newEdits - the newEdits
      Returns:
      the BulkDocs builder