Package com.smartsheet.api.models
Class Schedule
- java.lang.Object
-
- com.smartsheet.api.models.Schedule
-
public class Schedule extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Schedule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<DayDescriptor>
getDayDescriptors()
Get an array of day descriptorsjava.lang.Integer
getDayOfMonth()
Get the day within the monthDayOrdinal
getDayOrdinal()
Get the day ordinaljava.util.Date
getEndAt()
Get the date, time and time zone at which the delivery schedule will endjava.util.Date
getLastSentAt()
Get the date and time for when the last request was sent.java.util.Date
getNextSendAt()
Get the date and time for when the next request is scheduled to send.java.lang.Integer
getRepeatEvery()
Get the frequency on which the request will be delivered.java.util.Date
getStartAt()
Get the date, time and time zone at which the first delivery will startScheduleType
getType()
Get the schedule typeSchedule
sentNextSendAt(java.util.Date nextSendAt)
Set the date and time for when the next request is schedule to send.Schedule
setDayDescriptors(java.util.List<DayDescriptor> dayDescriptors)
Set the array of day descriptorsSchedule
setDayOfMonth(java.lang.Integer dayOfMonth)
Set the day within the monthSchedule
setDayOrdinal(DayOrdinal dayOrdinal)
Set the day ordinalSchedule
setEndAt(java.util.Date endAt)
Set the date, time and time zone at which the delivery schedule will endSchedule
setLastSentAt(java.util.Date lastSentAt)
Set the date and time for when the last request was sent.Schedule
setRepeatEvery(java.lang.Integer repeatEvery)
Set the frequency on which the request will be delivered.Schedule
setStartAt(java.util.Date startAt)
Set the date, time and time zone at which the first delivery will startSchedule
setType(ScheduleType type)
Set the schedule type
-
-
-
Method Detail
-
getType
public ScheduleType getType()
Get the schedule type- Returns:
- type
-
setType
public Schedule setType(ScheduleType type)
Set the schedule 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.
-
-