public class GetFolderItemsQueryParams extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GetFolderItemsQueryParams.Builder |
| Modifier and Type | Field and Description |
|---|---|
EnumWrapper<GetFolderItemsQueryParamsDirectionField> |
direction
The direction to sort results in.
|
List<String> |
fields
A comma-separated list of attributes to include in the response.
|
Long |
limit
The maximum number of items to return per page.
|
String |
marker
Defines the position marker at which to begin returning results.
|
Long |
offset
The offset of the item at which to begin the response.
|
EnumWrapper<GetFolderItemsQueryParamsSortField> |
sort
Defines the **second** attribute by which items are sorted.
|
Boolean |
usemarker
Specifies whether to use marker-based pagination instead of offset-based pagination.
|
| Modifier | Constructor and Description |
|---|---|
|
GetFolderItemsQueryParams() |
protected |
GetFolderItemsQueryParams(GetFolderItemsQueryParams.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
EnumWrapper<GetFolderItemsQueryParamsDirectionField> |
getDirection() |
List<String> |
getFields() |
Long |
getLimit() |
String |
getMarker() |
Long |
getOffset() |
EnumWrapper<GetFolderItemsQueryParamsSortField> |
getSort() |
Boolean |
getUsemarker() |
public List<String> fields
Be aware that specifying this parameter will have the effect that none of the standard fields are returned in the response unless explicitly specified, instead only fields for the mini representation are returned, additional to the fields requested.
Additionally this field can be used to query any metadata applied to the file by specifying the `metadata` field as well as the scope and key of the template to retrieve, for example `?fields=metadata.enterprise_12345.contractTemplate`.
public Boolean usemarker
By setting this value to true, the API will return a `marker` field that can be passed as a parameter to this endpoint to get the next page of the response.
public String marker
This requires `usemarker` to be set to `true`.
public Long offset
Offset-based pagination is not guaranteed to work reliably for high offset values and may fail for large datasets. In those cases, use marker-based pagination by setting `usemarker` to `true`.
public EnumWrapper<GetFolderItemsQueryParamsSortField> sort
The folder type affects the way the items are sorted:
* **Standard folder**: Items are always sorted by their `type` first, with folders listed before files, and files listed before web links.
* **Root folder**: This parameter is not supported for marker-based pagination on the root folder
(the folder with an `id` of `0`).
* **Shared folder with parent path to the associated folder visible to the collaborator**: Items are always sorted by their `type` first, with folders listed before files, and files listed before web links.
public EnumWrapper<GetFolderItemsQueryParamsDirectionField> direction
public GetFolderItemsQueryParams()
protected GetFolderItemsQueryParams(GetFolderItemsQueryParams.Builder builder)
public Boolean getUsemarker()
public EnumWrapper<GetFolderItemsQueryParamsSortField> getSort()
public EnumWrapper<GetFolderItemsQueryParamsDirectionField> getDirection()