Class GetDocumentOptions.Builder

    • Constructor Detail

      • Builder

        public Builder()
        Instantiates a new builder.
      • Builder

        public Builder​(String db,
                       String docId)
        Instantiates a new builder with required properties.
        Parameters:
        db - the db
        docId - the docId
    • Method Detail

      • build

        public GetDocumentOptions build()
        Builds a GetDocumentOptions.
        Returns:
        the new GetDocumentOptions instance
      • addAttsSince

        public GetDocumentOptions.Builder addAttsSince​(String attsSince)
        Adds an attsSince to attsSince.
        Parameters:
        attsSince - the new attsSince
        Returns:
        the GetDocumentOptions builder
      • addOpenRevs

        public GetDocumentOptions.Builder addOpenRevs​(String openRevs)
        Adds an openRevs to openRevs.
        Parameters:
        openRevs - the new openRevs
        Returns:
        the GetDocumentOptions builder
      • ifNoneMatch

        public GetDocumentOptions.Builder ifNoneMatch​(String ifNoneMatch)
        Set the ifNoneMatch.
        Parameters:
        ifNoneMatch - the ifNoneMatch
        Returns:
        the GetDocumentOptions builder
      • attachments

        public GetDocumentOptions.Builder attachments​(Boolean attachments)
        Set the attachments.
        Parameters:
        attachments - the attachments
        Returns:
        the GetDocumentOptions builder
      • attEncodingInfo

        public GetDocumentOptions.Builder attEncodingInfo​(Boolean attEncodingInfo)
        Set the attEncodingInfo.
        Parameters:
        attEncodingInfo - the attEncodingInfo
        Returns:
        the GetDocumentOptions builder
      • attsSince

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

        public GetDocumentOptions.Builder conflicts​(Boolean conflicts)
        Set the conflicts.
        Parameters:
        conflicts - the conflicts
        Returns:
        the GetDocumentOptions builder
      • deletedConflicts

        public GetDocumentOptions.Builder deletedConflicts​(Boolean deletedConflicts)
        Set the deletedConflicts.
        Parameters:
        deletedConflicts - the deletedConflicts
        Returns:
        the GetDocumentOptions builder
      • localSeq

        public GetDocumentOptions.Builder localSeq​(Boolean localSeq)
        Set the localSeq.
        Parameters:
        localSeq - the localSeq
        Returns:
        the GetDocumentOptions builder
      • openRevs

        public GetDocumentOptions.Builder openRevs​(List<String> openRevs)
        Set the openRevs. Existing openRevs will be replaced.
        Parameters:
        openRevs - the openRevs
        Returns:
        the GetDocumentOptions builder
      • revsInfo

        public GetDocumentOptions.Builder revsInfo​(Boolean revsInfo)
        Set the revsInfo.
        Parameters:
        revsInfo - the revsInfo
        Returns:
        the GetDocumentOptions builder