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.IntegergetDayOfMonth()Get the day within the monthDayOrdinalgetDayOrdinal()Get the day ordinaljava.util.DategetEndAt()Get the date, time and time zone at which the delivery schedule will endjava.util.DategetLastSentAt()Get the date and time for when the last request was sent.java.util.DategetNextSendAt()Get the date and time for when the next request is scheduled to send.java.lang.IntegergetRepeatEvery()Get the frequency on which the request will be delivered.java.util.DategetStartAt()Get the date, time and time zone at which the first delivery will startScheduleTypegetType()Get the schedule typeSchedulesentNextSendAt(java.util.Date nextSendAt)Set the date and time for when the next request is schedule to send.SchedulesetDayDescriptors(java.util.List<DayDescriptor> dayDescriptors)Set the array of day descriptorsSchedulesetDayOfMonth(java.lang.Integer dayOfMonth)Set the day within the monthSchedulesetDayOrdinal(DayOrdinal dayOrdinal)Set the day ordinalSchedulesetEndAt(java.util.Date endAt)Set the date, time and time zone at which the delivery schedule will endSchedulesetLastSentAt(java.util.Date lastSentAt)Set the date and time for when the last request was sent.SchedulesetRepeatEvery(java.lang.Integer repeatEvery)Set the frequency on which the request will be delivered.SchedulesetStartAt(java.util.Date startAt)Set the date, time and time zone at which the first delivery will startSchedulesetType(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.
-
-