public class SearchBuilder
extends java.lang.Object
DbxUserFilesRequests.searchBuilder(java.lang.String, java.lang.String)
.
Use this class to set optional request parameters and complete the request.
Modifier and Type | Method and Description |
---|---|
SearchResult |
start()
Issues the request.
|
SearchBuilder |
withMaxResults(java.lang.Long maxResults)
Set value for optional field.
|
SearchBuilder |
withMode(SearchMode mode)
Set value for optional field.
|
SearchBuilder |
withStart(java.lang.Long start)
Set value for optional field.
|
public SearchBuilder withStart(java.lang.Long start)
If left unset or set to null
, defaults to 0L
.
start
- The starting index within the search results (used for
paging). Must be less than or equal to 9999. Defaults to 0L
when set to null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public SearchBuilder withMaxResults(java.lang.Long maxResults)
If left unset or set to null
, defaults to 100L
.
maxResults
- The maximum number of search results to return. Must
be greater than or equal to 1 and be less than or equal to 1000.
Defaults to 100L
when set to null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public SearchBuilder withMode(SearchMode mode)
If left unset or set to null
, defaults to SearchMode.FILENAME
.
mode
- The search mode (filename, filename_and_content, or
deleted_filename). Note that searching file content is only available
for Dropbox Business accounts. Must not be null
. Defaults to
SearchMode.FILENAME
when set to null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public SearchResult start() throws SearchErrorException, DbxException
SearchErrorException
DbxException