Class AbstractScheduleCreationRequest<T extends AbstractScheduleCreationRequest<?>>

    • Field Detail

      • schedule

        @FieldProperty(displayName="schedule",
                       required=false)
        protected java.lang.String schedule
      • state

        @FieldProperty(displayName="state",
                       maxLength=50,
                       required=true)
        protected JobStatus state
      • effectiveDate

        protected com.carfey.jdk.lang.DateTime effectiveDate
      • endDate

        protected com.carfey.jdk.lang.DateTime endDate
    • Constructor Detail

      • AbstractScheduleCreationRequest

        public AbstractScheduleCreationRequest()
    • Method Detail

      • getState

        public JobStatus getState()
        Required field. The job schedule state. See JobStatus.
        Returns:
        job status
      • setState

        public void setState​(JobStatus state)
      • withState

        public T withState​(JobStatus state)
      • getSchedule

        public java.lang.String getSchedule()
        Required in some cases. The job schedule pattern , if applicable for the state.
        Returns:
        schedule
      • setSchedule

        public void setSchedule​(java.lang.String schedule)
      • withSchedule

        public T withSchedule​(java.lang.String schedule)
      • getEffectiveDate

        public com.carfey.jdk.lang.DateTime getEffectiveDate()
        The initial schedule effective date, if not effective immediately.
        Returns:
        effective date
      • setEffectiveDate

        public void setEffectiveDate​(com.carfey.jdk.lang.DateTime effectiveDate)
      • withEffectiveDate

        public T withEffectiveDate​(com.carfey.jdk.lang.DateTime effectiveDate)
      • getEndDate

        public com.carfey.jdk.lang.DateTime getEndDate()
        The schedule end date, if not effective forever.
        Returns:
        end date
      • setEndDate

        public void setEndDate​(com.carfey.jdk.lang.DateTime endDate)
      • withEndDate

        public T withEndDate​(com.carfey.jdk.lang.DateTime endDate)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object