Class ScheduleEntry


  • public final class ScheduleEntry
    extends Object
    Patch schedule entry for a Premium Redis Cache.
    • Constructor Detail

      • ScheduleEntry

        public ScheduleEntry()
    • Method Detail

      • dayOfWeek

        public DayOfWeek dayOfWeek()
        Get the dayOfWeek property: Day of the week when a cache can be patched.
        Returns:
        the dayOfWeek value.
      • withDayOfWeek

        public ScheduleEntry withDayOfWeek​(DayOfWeek dayOfWeek)
        Set the dayOfWeek property: Day of the week when a cache can be patched.
        Parameters:
        dayOfWeek - the dayOfWeek value to set.
        Returns:
        the ScheduleEntry object itself.
      • startHourUtc

        public int startHourUtc()
        Get the startHourUtc property: Start hour after which cache patching can start.
        Returns:
        the startHourUtc value.
      • withStartHourUtc

        public ScheduleEntry withStartHourUtc​(int startHourUtc)
        Set the startHourUtc property: Start hour after which cache patching can start.
        Parameters:
        startHourUtc - the startHourUtc value to set.
        Returns:
        the ScheduleEntry object itself.
      • maintenanceWindow

        public Duration maintenanceWindow()
        Get the maintenanceWindow property: ISO8601 timespan specifying how much time cache patching can take.
        Returns:
        the maintenanceWindow value.
      • withMaintenanceWindow

        public ScheduleEntry withMaintenanceWindow​(Duration maintenanceWindow)
        Set the maintenanceWindow property: ISO8601 timespan specifying how much time cache patching can take.
        Parameters:
        maintenanceWindow - the maintenanceWindow value to set.
        Returns:
        the ScheduleEntry object itself.
      • validate

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