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>
,Supplier<TimeValidator.TimeConfig>
- Enclosing class:
- TimeValidator.TimeConfig
public static final class TimeValidator.TimeConfig.Builder extends Object implements Builder<TimeValidator.TimeConfig>
Fluent API builder forTimeValidator.TimeConfig
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimeValidator.TimeConfig.Builder
addBetween(LocalTime from, LocalTime to)
Add a new "between time" configuration.TimeValidator.TimeConfig.Builder
addDaysOfWeek(DayOfWeek... daysOfWeek)
Add a new "day of week" configuration.TimeValidator.TimeConfig.Builder
addDaysOfWeek(List<DayOfWeek> daysOfWeek)
Add a new "day of week" configuration.TimeValidator.TimeConfig
build()
Build the instance from this builder.TimeValidator.TimeConfig.Builder
from(TimeValidator.TimeConfig timeConfig)
Update this builder from an existing configuration instance.
-
-
-
Method Detail
-
build
public TimeValidator.TimeConfig build()
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<TimeValidator.TimeConfig>
- Returns:
- instance of the built type
-
addBetween
public TimeValidator.TimeConfig.Builder addBetween(LocalTime from, LocalTime to)
Add a new "between time" configuration.- Parameters:
from
- from whento
- until when- Returns:
- updated builder instance
-
addDaysOfWeek
public TimeValidator.TimeConfig.Builder addDaysOfWeek(DayOfWeek... daysOfWeek)
Add a new "day of week" configuration.- Parameters:
daysOfWeek
- days to add- Returns:
- updated builder instance
-
addDaysOfWeek
public TimeValidator.TimeConfig.Builder addDaysOfWeek(List<DayOfWeek> daysOfWeek)
Add a new "day of week" configuration.- Parameters:
daysOfWeek
- days to add- Returns:
- updated builder instance
-
from
public TimeValidator.TimeConfig.Builder from(TimeValidator.TimeConfig timeConfig)
Update this builder from an existing configuration instance.- Parameters:
timeConfig
- time configuration to add to this builder- Returns:
- updated builder instance
-
-