Class CronSchedule


  • public final class CronSchedule
    extends ScheduleBase
    Cron schedule definition.
    • Constructor Detail

      • CronSchedule

        public CronSchedule()
    • Method Detail

      • expression

        public String expression()
        Get the expression property: [Required] Specifies cron expression of schedule. The expression should follow NCronTab format.
        Returns:
        the expression value.
      • withExpression

        public CronSchedule withExpression​(String expression)
        Set the expression property: [Required] Specifies cron expression of schedule. The expression should follow NCronTab format.
        Parameters:
        expression - the expression value to set.
        Returns:
        the CronSchedule object itself.
      • withEndTime

        public CronSchedule withEndTime​(OffsetDateTime endTime)
        Set the endTime property: Specifies end time of schedule in ISO 8601 format. If not present, the schedule will run indefinitely.
        Overrides:
        withEndTime in class ScheduleBase
        Parameters:
        endTime - the endTime value to set.
        Returns:
        the ScheduleBase object itself.
      • withScheduleStatus

        public CronSchedule withScheduleStatus​(ScheduleStatus scheduleStatus)
        Set the scheduleStatus property: Specifies the schedule's status.
        Overrides:
        withScheduleStatus in class ScheduleBase
        Parameters:
        scheduleStatus - the scheduleStatus value to set.
        Returns:
        the ScheduleBase object itself.
      • withStartTime

        public CronSchedule withStartTime​(OffsetDateTime startTime)
        Set the startTime property: Specifies start time of schedule in ISO 8601 format.
        Overrides:
        withStartTime in class ScheduleBase
        Parameters:
        startTime - the startTime value to set.
        Returns:
        the ScheduleBase object itself.
      • withTimeZone

        public CronSchedule withTimeZone​(String timeZone)
        Set the timeZone property: Specifies time zone in which the schedule runs. TimeZone should follow Windows time zone format.
        Overrides:
        withTimeZone in class ScheduleBase
        Parameters:
        timeZone - the timeZone value to set.
        Returns:
        the ScheduleBase object itself.