Class Schedule


  • public class Schedule
    extends java.lang.Object
    • Constructor Detail

      • Schedule

        public Schedule()
    • Method Detail

      • getType

        public ScheduleType getType()
        Get the schedule type
        Returns:
        type
      • getStartAt

        public java.util.Date getStartAt()
        Get the date, time and time zone at which the first delivery will start
        Returns:
        startAt
      • setStartAt

        public Schedule setStartAt​(java.util.Date startAt)
        Set the date, time and time zone at which the first delivery will start
      • getEndAt

        public java.util.Date getEndAt()
        Get the date, time and time zone at which the delivery schedule will end
        Returns:
        endAt
      • setEndAt

        public Schedule setEndAt​(java.util.Date endAt)
        Set the date, time and time zone at which the delivery schedule will end
      • getDayOfMonth

        public java.lang.Integer getDayOfMonth()
        Get the day within the month
        Returns:
        dayOfMonth
      • setDayOfMonth

        public Schedule setDayOfMonth​(java.lang.Integer dayOfMonth)
        Set the day within the month
      • getDayOrdinal

        public DayOrdinal getDayOrdinal()
        Get the day ordinal
        Returns:
        dayOrdinal
      • setDayOrdinal

        public Schedule setDayOrdinal​(DayOrdinal dayOrdinal)
        Set the day ordinal
      • getDayDescriptors

        public java.util.List<DayDescriptor> getDayDescriptors()
        Get an array of day descriptors
        Returns:
        dayDescriptors
      • setDayDescriptors

        public Schedule setDayDescriptors​(java.util.List<DayDescriptor> dayDescriptors)
        Set the array of day descriptors
      • getRepeatEvery

        public java.lang.Integer getRepeatEvery()
        Get the frequency on which the request will be delivered.
        Returns:
        repeatEvery
      • setRepeatEvery

        public Schedule setRepeatEvery​(java.lang.Integer repeatEvery)
        Set the frequency on which the request will be delivered.
      • getLastSentAt

        public java.util.Date getLastSentAt()
        Get the date and time for when the last request was sent.
        Returns:
        lastSentAt
      • setLastSentAt

        public Schedule setLastSentAt​(java.util.Date lastSentAt)
        Set the date and time for when the last request was sent.
      • getNextSendAt

        public java.util.Date getNextSendAt()
        Get the date and time for when the next request is scheduled to send.
        Returns:
        nextSendAt
      • sentNextSendAt

        public Schedule sentNextSendAt​(java.util.Date nextSendAt)
        Set the date and time for when the next request is schedule to send.