Class DesignDocument.Builder

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

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

    • Builder

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

    • build

      public DesignDocument build()
      Builds a DesignDocument.
      Returns:
      the new DesignDocument instance
    • addConflicts

      public DesignDocument.Builder addConflicts(String conflicts)
      Adds a new element to conflicts.
      Parameters:
      conflicts - the new element to be added
      Returns:
      the DesignDocument builder
    • addDeletedConflicts

      public DesignDocument.Builder addDeletedConflicts(String deletedConflicts)
      Adds a new element to deletedConflicts.
      Parameters:
      deletedConflicts - the new element to be added
      Returns:
      the DesignDocument builder
    • addRevsInfo

      public DesignDocument.Builder addRevsInfo(DocumentRevisionStatus revsInfo)
      Adds a new element to revsInfo.
      Parameters:
      revsInfo - the new element to be added
      Returns:
      the DesignDocument builder
    • attachments

      public DesignDocument.Builder attachments(Map<String,Attachment> attachments)
      Set the attachments.
      Parameters:
      attachments - the attachments
      Returns:
      the DesignDocument builder
    • conflicts

      public DesignDocument.Builder conflicts(List<String> conflicts)
      Set the conflicts. Existing conflicts will be replaced.
      Parameters:
      conflicts - the conflicts
      Returns:
      the DesignDocument builder
    • deleted

      public DesignDocument.Builder deleted(Boolean deleted)
      Set the deleted.
      Parameters:
      deleted - the deleted
      Returns:
      the DesignDocument builder
    • deletedConflicts

      public DesignDocument.Builder deletedConflicts(List<String> deletedConflicts)
      Set the deletedConflicts. Existing deletedConflicts will be replaced.
      Parameters:
      deletedConflicts - the deletedConflicts
      Returns:
      the DesignDocument builder
    • id

      Set the id.
      Parameters:
      id - the id
      Returns:
      the DesignDocument builder
    • localSeq

      public DesignDocument.Builder localSeq(String localSeq)
      Set the localSeq.
      Parameters:
      localSeq - the localSeq
      Returns:
      the DesignDocument builder
    • rev

      public DesignDocument.Builder rev(String rev)
      Set the rev.
      Parameters:
      rev - the rev
      Returns:
      the DesignDocument builder
    • revisions

      public DesignDocument.Builder revisions(Revisions revisions)
      Set the revisions.
      Parameters:
      revisions - the revisions
      Returns:
      the DesignDocument builder
    • revsInfo

      public DesignDocument.Builder revsInfo(List<DocumentRevisionStatus> revsInfo)
      Set the revsInfo. Existing revsInfo will be replaced.
      Parameters:
      revsInfo - the revsInfo
      Returns:
      the DesignDocument builder
    • autoupdate

      public DesignDocument.Builder autoupdate(Boolean autoupdate)
      Set the autoupdate.
      Parameters:
      autoupdate - the autoupdate
      Returns:
      the DesignDocument builder
    • filters

      public DesignDocument.Builder filters(Map<String,String> filters)
      Set the filters.
      Parameters:
      filters - the filters
      Returns:
      the DesignDocument builder
    • indexes

      Set the indexes.
      Parameters:
      indexes - the indexes
      Returns:
      the DesignDocument builder
    • language

      public DesignDocument.Builder language(String language)
      Set the language.
      Parameters:
      language - the language
      Returns:
      the DesignDocument builder
    • options

      Set the options.
      Parameters:
      options - the options
      Returns:
      the DesignDocument builder
    • validateDocUpdate

      public DesignDocument.Builder validateDocUpdate(String validateDocUpdate)
      Set the validateDocUpdate.
      Parameters:
      validateDocUpdate - the validateDocUpdate
      Returns:
      the DesignDocument builder
    • views

      Set the views.
      Parameters:
      views - the views
      Returns:
      the DesignDocument builder
    • add

      public DesignDocument.Builder add(String name, Object value)
      Add an arbitrary property.
      Parameters:
      name - the name of the property to add
      value - the value of the property to add
      Returns:
      the DesignDocument builder