public class ListFolderBuilder
extends java.lang.Object
DbxUserFilesRequests.listFolderBuilder(java.lang.String)
.
Use this class to set optional request parameters and complete the request.
Modifier and Type | Method and Description |
---|---|
ListFolderResult |
start()
Issues the request.
|
ListFolderBuilder |
withIncludeDeleted(java.lang.Boolean includeDeleted)
Set value for optional field.
|
ListFolderBuilder |
withIncludeHasExplicitSharedMembers(java.lang.Boolean includeHasExplicitSharedMembers)
Set value for optional field.
|
ListFolderBuilder |
withIncludeMediaInfo(java.lang.Boolean includeMediaInfo)
Set value for optional field.
|
ListFolderBuilder |
withIncludeMountedFolders(java.lang.Boolean includeMountedFolders)
Set value for optional field.
|
ListFolderBuilder |
withIncludeNonDownloadableFiles(java.lang.Boolean includeNonDownloadableFiles)
Set value for optional field.
|
ListFolderBuilder |
withIncludePropertyGroups(TemplateFilterBase includePropertyGroups)
Set value for optional field.
|
ListFolderBuilder |
withLimit(java.lang.Long limit)
Set value for optional field.
|
ListFolderBuilder |
withRecursive(java.lang.Boolean recursive)
Set value for optional field.
|
ListFolderBuilder |
withSharedLink(SharedLink sharedLink)
Set value for optional field.
|
public ListFolderBuilder withRecursive(java.lang.Boolean recursive)
If left unset or set to null
, defaults to false
.
recursive
- If true, the list folder operation will be applied
recursively to all subfolders and the response will contain contents
of all subfolders. Defaults to false
when set to null
.public ListFolderBuilder withIncludeMediaInfo(java.lang.Boolean includeMediaInfo)
If left unset or set to null
, defaults to false
.
includeMediaInfo
- If true, FileMetadata.getMediaInfo()
is
set for photo and video. This parameter will no longer have an effect
starting December 2, 2019. Defaults to false
when set to
null
.public ListFolderBuilder withIncludeDeleted(java.lang.Boolean includeDeleted)
If left unset or set to null
, defaults to false
.
includeDeleted
- If true, the results will include entries for
files and folders that used to exist but were deleted. Defaults to
false
when set to null
.public ListFolderBuilder withIncludeHasExplicitSharedMembers(java.lang.Boolean includeHasExplicitSharedMembers)
If left unset or set to null
, defaults to false
.
includeHasExplicitSharedMembers
- If true, the results will include
a flag for each file indicating whether or not that file has any
explicit members. Defaults to false
when set to null
.public ListFolderBuilder withIncludeMountedFolders(java.lang.Boolean includeMountedFolders)
If left unset or set to null
, defaults to true
.
includeMountedFolders
- If true, the results will include entries
under mounted folders which includes app folder, shared folder and
team folder. Defaults to true
when set to null
.public ListFolderBuilder withLimit(java.lang.Long limit)
limit
- The maximum number of results to return per request. Note:
This is an approximate number and there can be slightly more entries
returned in some cases. Must be greater than or equal to 1 and be
less than or equal to 2000.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public ListFolderBuilder withSharedLink(SharedLink sharedLink)
sharedLink
- A shared link to list the contents of. If the link is
password-protected, the password must be provided. If this field is
present, ListFolderArg.getPath()
will be relative to root of
the shared link. Only non-recursive mode is supported for shared
link.public ListFolderBuilder withIncludePropertyGroups(TemplateFilterBase includePropertyGroups)
includePropertyGroups
- If set to a valid list of template IDs,
FileMetadata.getPropertyGroups()
is set if there exists
property data associated with the file and each of the listed
templates.public ListFolderBuilder withIncludeNonDownloadableFiles(java.lang.Boolean includeNonDownloadableFiles)
If left unset or set to null
, defaults to true
.
includeNonDownloadableFiles
- If true, include files that are not
downloadable, i.e. Google Docs. Defaults to true
when set to
null
.public ListFolderResult start() throws ListFolderErrorException, DbxException
ListFolderErrorException
DbxException