Class GetGeoOptions.Builder

  • Enclosing class:
    GetGeoOptions

    public static class GetGeoOptions.Builder
    extends Object
    Builder.
    • Constructor Detail

      • Builder

        public Builder()
        Instantiates a new builder.
      • Builder

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

      • build

        public GetGeoOptions build()
        Builds a GetGeoOptions.
        Returns:
        the new GetGeoOptions instance
      • ddoc

        public GetGeoOptions.Builder ddoc​(String ddoc)
        Set the ddoc.
        Parameters:
        ddoc - the ddoc
        Returns:
        the GetGeoOptions builder
      • index

        public GetGeoOptions.Builder index​(String index)
        Set the index.
        Parameters:
        index - the index
        Returns:
        the GetGeoOptions builder
      • bbox

        public GetGeoOptions.Builder bbox​(String bbox)
        Set the bbox.
        Parameters:
        bbox - the bbox
        Returns:
        the GetGeoOptions builder
      • bookmark

        public GetGeoOptions.Builder bookmark​(String bookmark)
        Set the bookmark.
        Parameters:
        bookmark - the bookmark
        Returns:
        the GetGeoOptions builder
      • format

        public GetGeoOptions.Builder format​(String format)
        Set the format.
        Parameters:
        format - the format
        Returns:
        the GetGeoOptions builder
      • includeDocs

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

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

        public GetGeoOptions.Builder nearest​(Boolean nearest)
        Set the nearest.
        Parameters:
        nearest - the nearest
        Returns:
        the GetGeoOptions builder
      • radius

        public GetGeoOptions.Builder radius​(Double radius)
        Set the radius.
        Parameters:
        radius - the radius
        Returns:
        the GetGeoOptions builder
      • rangex

        public GetGeoOptions.Builder rangex​(Double rangex)
        Set the rangex.
        Parameters:
        rangex - the rangex
        Returns:
        the GetGeoOptions builder
      • rangey

        public GetGeoOptions.Builder rangey​(Double rangey)
        Set the rangey.
        Parameters:
        rangey - the rangey
        Returns:
        the GetGeoOptions builder
      • relation

        public GetGeoOptions.Builder relation​(String relation)
        Set the relation.
        Parameters:
        relation - the relation
        Returns:
        the GetGeoOptions builder
      • skip

        public GetGeoOptions.Builder skip​(long skip)
        Set the skip.
        Parameters:
        skip - the skip
        Returns:
        the GetGeoOptions builder
      • stale

        public GetGeoOptions.Builder stale​(String stale)
        Set the stale.
        Parameters:
        stale - the stale
        Returns:
        the GetGeoOptions builder