Class DocsListBuilder


  • public class DocsListBuilder
    extends java.lang.Object
    The request builder returned by DbxUserPaperRequests.docsListBuilder().

    Use this class to set optional request parameters and complete the request.

    • Method Detail

      • withFilterBy

        public DocsListBuilder withFilterBy​(ListPaperDocsFilterBy filterBy)
        Set value for optional field.

        If left unset or set to null, defaults to ListPaperDocsFilterBy.DOCS_ACCESSED.

        Parameters:
        filterBy - Allows user to specify how the Paper docs should be filtered. Must not be null. Defaults to ListPaperDocsFilterBy.DOCS_ACCESSED when set to null.
        Returns:
        this builder
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • withSortBy

        public DocsListBuilder withSortBy​(ListPaperDocsSortBy sortBy)
        Set value for optional field.

        If left unset or set to null, defaults to ListPaperDocsSortBy.ACCESSED.

        Parameters:
        sortBy - Allows user to specify how the Paper docs should be sorted. Must not be null. Defaults to ListPaperDocsSortBy.ACCESSED when set to null.
        Returns:
        this builder
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • withSortOrder

        public DocsListBuilder withSortOrder​(ListPaperDocsSortOrder sortOrder)
        Set value for optional field.

        If left unset or set to null, defaults to ListPaperDocsSortOrder.ASCENDING.

        Parameters:
        sortOrder - Allows user to specify the sort order of the result. Must not be null. Defaults to ListPaperDocsSortOrder.ASCENDING when set to null.
        Returns:
        this builder
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • withLimit

        public DocsListBuilder withLimit​(java.lang.Integer limit)
        Set value for optional field.

        If left unset or set to null, defaults to 1000.

        Parameters:
        limit - Size limit per batch. The maximum number of docs that can be retrieved per batch is 1000. Higher value results in invalid arguments error. Must be greater than or equal to 1 and be less than or equal to 1000. Defaults to 1000 when set to null.
        Returns:
        this builder
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.