Package com.dropbox.core.v2.files
Class SearchBuilder
- java.lang.Object
- 
- com.dropbox.core.v2.files.SearchBuilder
 
- 
 public class SearchBuilder extends java.lang.ObjectThe request builder returned byDbxUserFilesRequests.searchBuilder(java.lang.String, java.lang.String).Use this class to set optional request parameters and complete the request. 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchResultstart()Issues the request.SearchBuilderwithMaxResults(java.lang.Long maxResults)Set value for optional field.SearchBuilderwithMode(SearchMode mode)Set value for optional field.SearchBuilderwithStart(java.lang.Long start)Set value for optional field.
 
- 
- 
- 
Method Detail- 
withStartpublic SearchBuilder withStart(java.lang.Long start) Set value for optional field.If left unset or set to null, defaults to0L.- Parameters:
- start- The starting index within the search results (used for paging). Must be less than or equal to 9999. Defaults to- 0Lwhen set to- null.
- Returns:
- this builder
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
withMaxResultspublic SearchBuilder withMaxResults(java.lang.Long maxResults) Set value for optional field.If left unset or set to null, defaults to100L.- Parameters:
- 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- 100Lwhen set to- null.
- Returns:
- this builder
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
withModepublic SearchBuilder withMode(SearchMode mode) Set value for optional field.If left unset or set to null, defaults toSearchMode.FILENAME.- Parameters:
- 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.FILENAMEwhen set to- null.
- Returns:
- this builder
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
startpublic SearchResult start() throws SearchErrorException, DbxException Issues the request.- Throws:
- SearchErrorException
- DbxException
 
 
- 
 
-