Class GetRequest.Builder

    • Method Detail

      • setIncludeStart

        public GetRequest.Builder setIncludeStart​(boolean includeStart)
        Sets whether or not to include the object whose ID is specified via the setStartId(String) method.
        Parameters:
        includeStart - whether or not to return the start index
        Returns:
        this builder
      • setLimit

        public GetRequest.Builder setLimit​(Integer limit)
        Sets the maximum number of objects to return.
        Parameters:
        limit - the maximum number of objects to return
        Returns:
        this builder
        Throws:
        IllegalArgumentException - if negative or too large limit is given
      • setReturningIdsOnly

        public GetRequest.Builder setReturningIdsOnly​(boolean returningIdsOnly)
        Sets whether just objects containing just their key are returned, or whether the complete objects are returned.
        Parameters:
        returningIdsOnly - whether to only return object keys
        Returns:
        this builder
      • build

        public GetRequest build()
        Returns:
        builds and returns a brand new instance of a GetRequest using values set on this builder