public class DocsListBuilder
extends java.lang.Object
DbxUserPaperRequests.docsListBuilder()
.
Use this class to set optional request parameters and complete the request.
Modifier and Type | Method and 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.
|
public DocsListBuilder withFilterBy(ListPaperDocsFilterBy filterBy)
If left unset or set to null
, defaults to ListPaperDocsFilterBy.DOCS_ACCESSED
.
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
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public DocsListBuilder withSortBy(ListPaperDocsSortBy sortBy)
If left unset or set to null
, defaults to ListPaperDocsSortBy.ACCESSED
.
sortBy
- Allows user to specify how the Paper docs should be
sorted. Must not be null
. Defaults to ListPaperDocsSortBy.ACCESSED
when set to null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public DocsListBuilder withSortOrder(ListPaperDocsSortOrder sortOrder)
If left unset or set to null
, defaults to ListPaperDocsSortOrder.ASCENDING
.
sortOrder
- Allows user to specify the sort order of the result.
Must not be null
. Defaults to ListPaperDocsSortOrder.ASCENDING
when set to null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public DocsListBuilder withLimit(java.lang.Integer limit)
If left unset or set to null
, defaults to 1000
.
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
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public ListPaperDocsResponse start() throws DbxApiException, DbxException
DbxApiException
DbxException