Class SearchOptions.Builder
java.lang.Object
codes.grow.packages.betterstack.logging.SearchOptions.Builder
- Enclosing class:
SearchOptions
Builder for
SearchOptions.-
Method Details
-
start
Sets the range start.- Parameters:
start- inclusive start ornull- Returns:
- this builder
-
end
Sets the range end.- Parameters:
end- exclusive end ornull- Returns:
- this builder
-
limit
Sets the page size.- Parameters:
limit- at least 1- Returns:
- this builder
-
order
Sets the order.- Parameters:
order- order- Returns:
- this builder
-
cursor
Sets the page cursor.- Parameters:
cursor- cursor ornull- Returns:
- this builder
-
build
Builds the options.- Returns:
- options
- Throws:
ValidationException- when the limit is below 1 or the range is reversed
-