Package com.dropbox.core.v2.paper
Class DocsListBuilder
- java.lang.Object
-
- com.dropbox.core.v2.paper.DocsListBuilder
-
public class DocsListBuilder extends java.lang.Object
The request builder returned byDbxUserPaperRequests.docsListBuilder()
.Use this class to set optional request parameters and complete the request.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListPaperDocsResponse
start()
Issues the request.DocsListBuilder
withFilterBy(ListPaperDocsFilterBy filterBy)
Set value for optional field.DocsListBuilder
withLimit(java.lang.Integer limit)
Set value for optional field.DocsListBuilder
withSortBy(ListPaperDocsSortBy sortBy)
Set value for optional field.DocsListBuilder
withSortOrder(ListPaperDocsSortOrder sortOrder)
Set value for optional field.
-
-
-
Method Detail
-
withFilterBy
public DocsListBuilder withFilterBy(ListPaperDocsFilterBy filterBy)
Set value for optional field.If left unset or set to
null
, defaults toListPaperDocsFilterBy.DOCS_ACCESSED
.- Parameters:
filterBy
- Allows user to specify how the Paper docs should be filtered. Must not benull
. Defaults toListPaperDocsFilterBy.DOCS_ACCESSED
when set tonull
.- 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 toListPaperDocsSortBy.ACCESSED
.- Parameters:
sortBy
- Allows user to specify how the Paper docs should be sorted. Must not benull
. Defaults toListPaperDocsSortBy.ACCESSED
when set tonull
.- 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 toListPaperDocsSortOrder.ASCENDING
.- Parameters:
sortOrder
- Allows user to specify the sort order of the result. Must not benull
. Defaults toListPaperDocsSortOrder.ASCENDING
when set tonull
.- 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 to1000
.- 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 to1000
when set tonull
.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
start
public ListPaperDocsResponse start() throws DbxApiException, DbxException
Issues the request.- Throws:
DbxApiException
DbxException
-
-