Class WeeklySchedule


  • public final class WeeklySchedule
    extends Object
    The WeeklySchedule model.
    • Constructor Detail

      • WeeklySchedule

        public WeeklySchedule()
    • Method Detail

      • scheduleRunDays

        public List<DayOfWeek> scheduleRunDays()
        Get the scheduleRunDays property: The scheduleRunDays property.
        Returns:
        the scheduleRunDays value.
      • withScheduleRunDays

        public WeeklySchedule withScheduleRunDays​(List<DayOfWeek> scheduleRunDays)
        Set the scheduleRunDays property: The scheduleRunDays property.
        Parameters:
        scheduleRunDays - the scheduleRunDays value to set.
        Returns:
        the WeeklySchedule object itself.
      • scheduleRunTimes

        public List<OffsetDateTime> scheduleRunTimes()
        Get the scheduleRunTimes property: List of times of day this schedule has to be run.
        Returns:
        the scheduleRunTimes value.
      • withScheduleRunTimes

        public WeeklySchedule withScheduleRunTimes​(List<OffsetDateTime> scheduleRunTimes)
        Set the scheduleRunTimes property: List of times of day this schedule has to be run.
        Parameters:
        scheduleRunTimes - the scheduleRunTimes value to set.
        Returns:
        the WeeklySchedule object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.