public class FilesQueryBuilder extends java.lang.Object implements PaginatedQueryBuilder<File>
File
Constructor and Description |
---|
FilesQueryBuilder(Client client)
Initializes a new builder for the given client.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<File> |
asIterable()
Returns a resource iterable for lazy loading.
|
java.util.List<File> |
asList()
Iterates through all resources and returns a complete list.
|
FilesQueryBuilder |
from(java.util.Date from)
Adds a filter for datetime from objects will be returned.
|
FilesQueryBuilder |
removed(boolean removed)
Adds a filter for removed files.
|
FilesQueryBuilder |
stored(boolean stored)
Adds a filter for stored files.
|
FilesQueryBuilder |
to(java.util.Date to)
Adds a filter for datetime to which objects will be returned.
|
public FilesQueryBuilder(Client client)
public FilesQueryBuilder removed(boolean removed)
removed
- If true
, accepts removed files, otherwise declines them.public FilesQueryBuilder stored(boolean stored)
stored
- If true
, accepts stored files, otherwise declines them.public FilesQueryBuilder from(java.util.Date from)
from
- A uploading datetime from which objects will be returned.public FilesQueryBuilder to(java.util.Date to)
to
- A uploading datetime to which objects will be returned.public java.lang.Iterable<File> asIterable()
PaginatedQueryBuilder
asIterable
in interface PaginatedQueryBuilder<File>
public java.util.List<File> asList()
PaginatedQueryBuilder
asList
in interface PaginatedQueryBuilder<File>