Package io.gdcc.spi.export
Class FileExportQuery.Builder
java.lang.Object
io.gdcc.spi.export.FileExportQuery.Builder
- Enclosing class:
- FileExportQuery
Builder for
FileExportQuery.
Obtain an instance via FileExportQuery.builder() or
from(FileExportQuery) to derive a new query from an existing one.
-
Method Summary
Modifier and TypeMethodDescriptionaddFilePredicate(FileMetadataPredicates predicate) Adds a file metadata predicate to the builder's collection of predicates.build()Builds an immutableFileExportQuery.filePredicates(FileMetadataPredicates... predicates) Sets the file metadata predicates, replacing any previously set predicates.filePredicates(Collection<FileMetadataPredicates> predicates) Sets the file metadata predicates, replacing any previously set predicates.from(FileExportQuery source) Copies the properties from the givenFileExportQueryinstance into a newBuilder.
-
Method Details
-
filePredicates
Sets the file metadata predicates, replacing any previously set predicates.- Parameters:
predicates- the file metadata predicates to set- Returns:
- this builder instance
-
filePredicates
Sets the file metadata predicates, replacing any previously set predicates.- Parameters:
predicates- the file metadata predicates to set- Returns:
- this builder instance
-
addFilePredicate
Adds a file metadata predicate to the builder's collection of predicates.- Parameters:
predicate- the file metadata predicate to add- Returns:
- this builder instance
-
build
Builds an immutableFileExportQuery.- Returns:
- validated context
- Throws:
IllegalArgumentException- if validation fails
-
from
Copies the properties from the givenFileExportQueryinstance into a newBuilder.- Parameters:
source- theFileExportQueryinstance from which to copy properties- Returns:
- a new
Builderinstance with properties copied from the provided query
-