public static class ListFoldersArgs.Builder extends Object
ListFoldersArgs
.Modifier and Type | Field and Description |
---|---|
protected List<FolderAction> |
actions |
protected long |
limit |
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
Modifier and Type | Method and Description |
---|---|
ListFoldersArgs |
build()
Builds an instance of
ListFoldersArgs configured with this
builder's values |
ListFoldersArgs.Builder |
withActions(List<FolderAction> actions)
Set value for optional field.
|
ListFoldersArgs.Builder |
withLimit(Long limit)
Set value for optional field.
|
protected long limit
protected List<FolderAction> actions
public ListFoldersArgs.Builder withLimit(Long limit)
If left unset or set to null
, defaults to 1000L
.
limit
- The maximum number of results to return per request.
Must be greater than or equal to 1 and be less than or equal to
1000. Defaults to 1000L
when set to null
.IllegalArgumentException
- If any argument does not meet its
preconditions.public ListFoldersArgs.Builder withActions(List<FolderAction> actions)
actions
- This is a list indicating whether each returned
folder data entry will include a boolean field FolderPermission.getAllow()
that describes whether the current
user can perform the `FolderAction` on the folder. Must not
contain a null
item.IllegalArgumentException
- If any argument does not meet its
preconditions.public ListFoldersArgs build()
ListFoldersArgs
configured with this
builder's valuesListFoldersArgs