Package io.helidon.security.abac.time
Class TimeValidator.TimeConfig.Builder
java.lang.Object
io.helidon.security.abac.time.TimeValidator.TimeConfig.Builder
- All Implemented Interfaces:
Builder<TimeValidator.TimeConfig.Builder,
,TimeValidator.TimeConfig> Supplier<TimeValidator.TimeConfig>
- Enclosing class:
TimeValidator.TimeConfig
public static final class TimeValidator.TimeConfig.Builder
extends Object
implements Builder<TimeValidator.TimeConfig.Builder,TimeValidator.TimeConfig>
Fluent API builder for
TimeValidator.TimeConfig
.-
Method Summary
Modifier and TypeMethodDescriptionaddBetween
(LocalTime from, LocalTime to) Add a new "between time" configuration.addDaysOfWeek
(DayOfWeek... daysOfWeek) Add a new "day of week" configuration.addDaysOfWeek
(List<DayOfWeek> daysOfWeek) Add a new "day of week" configuration.build()
Build the instance from this builder.from
(TimeValidator.TimeConfig timeConfig) Update this builder from an existing configuration instance.
-
Method Details
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<TimeValidator.TimeConfig.Builder,
TimeValidator.TimeConfig> - Returns:
- instance of the built type
-
addBetween
Add a new "between time" configuration.- Parameters:
from
- from whento
- until when- Returns:
- updated builder instance
-
addDaysOfWeek
Add a new "day of week" configuration.- Parameters:
daysOfWeek
- days to add- Returns:
- updated builder instance
-
addDaysOfWeek
Add a new "day of week" configuration.- Parameters:
daysOfWeek
- days to add- Returns:
- updated builder instance
-
from
Update this builder from an existing configuration instance.- Parameters:
timeConfig
- time configuration to add to this builder- Returns:
- updated builder instance
-