Class PostChangesOptions.Builder

    • Constructor Detail

      • Builder

        public Builder()
        Instantiates a new builder.
      • Builder

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

      • build

        public PostChangesOptions build()
        Builds a PostChangesOptions.
        Returns:
        the new PostChangesOptions instance
      • addDocIds

        public PostChangesOptions.Builder addDocIds​(String docIds)
        Adds an docIds to docIds.
        Parameters:
        docIds - the new docIds
        Returns:
        the PostChangesOptions builder
      • addFields

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

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

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

        public PostChangesOptions.Builder lastEventId​(String lastEventId)
        Set the lastEventId.
        Parameters:
        lastEventId - the lastEventId
        Returns:
        the PostChangesOptions builder
      • attEncodingInfo

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

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

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

        public PostChangesOptions.Builder descending​(Boolean descending)
        Set the descending.
        Parameters:
        descending - the descending
        Returns:
        the PostChangesOptions builder
      • heartbeat

        public PostChangesOptions.Builder heartbeat​(long heartbeat)
        Set the heartbeat.
        Parameters:
        heartbeat - the heartbeat
        Returns:
        the PostChangesOptions builder
      • includeDocs

        public PostChangesOptions.Builder includeDocs​(Boolean includeDocs)
        Set the includeDocs.
        Parameters:
        includeDocs - the includeDocs
        Returns:
        the PostChangesOptions builder
      • limit

        public PostChangesOptions.Builder limit​(long limit)
        Set the limit.
        Parameters:
        limit - the limit
        Returns:
        the PostChangesOptions builder
      • seqInterval

        public PostChangesOptions.Builder seqInterval​(long seqInterval)
        Set the seqInterval.
        Parameters:
        seqInterval - the seqInterval
        Returns:
        the PostChangesOptions builder
      • timeout

        public PostChangesOptions.Builder timeout​(long timeout)
        Set the timeout.
        Parameters:
        timeout - the timeout
        Returns:
        the PostChangesOptions builder