Package io.temporal.client.schedules
Class ScheduleCalendarSpec.Builder
- java.lang.Object
-
- io.temporal.client.schedules.ScheduleCalendarSpec.Builder
-
- Enclosing class:
- ScheduleCalendarSpec
public static final class ScheduleCalendarSpec.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScheduleCalendarSpec
build()
ScheduleCalendarSpec.Builder
setComment(java.lang.String comment)
Set the description of this specification.ScheduleCalendarSpec.Builder
setDayOfMonth(java.util.List<ScheduleRange> dayOfMonth)
Set the day of month ranges to provided values.ScheduleCalendarSpec.Builder
setDayOfWeek(java.util.List<ScheduleRange> dayOfWeek)
Set the day of week ranges to provided values.ScheduleCalendarSpec.Builder
setHour(java.util.List<ScheduleRange> hour)
Set the hour ranges to provided values.ScheduleCalendarSpec.Builder
setMinutes(java.util.List<ScheduleRange> minutes)
Set the minutes ranges to provided values.ScheduleCalendarSpec.Builder
setMonth(java.util.List<ScheduleRange> month)
Set the month ranges to provided values.ScheduleCalendarSpec.Builder
setSeconds(java.util.List<ScheduleRange> seconds)
Set the second ranges to provided values.ScheduleCalendarSpec.Builder
setYear(java.util.List<ScheduleRange> year)
Set the optional year ranges to provided values.
-
-
-
Method Detail
-
setSeconds
public ScheduleCalendarSpec.Builder setSeconds(java.util.List<ScheduleRange> seconds)
Set the second ranges to provided values. Values must be within the range 0-59.Default matches 0.
-
setMinutes
public ScheduleCalendarSpec.Builder setMinutes(java.util.List<ScheduleRange> minutes)
Set the minutes ranges to provided values. Values must be within the range 0-59.Default matches 0.
-
setHour
public ScheduleCalendarSpec.Builder setHour(java.util.List<ScheduleRange> hour)
Set the hour ranges to provided values. Values must be within the range 0-23.Default matches 0.
-
setDayOfMonth
public ScheduleCalendarSpec.Builder setDayOfMonth(java.util.List<ScheduleRange> dayOfMonth)
Set the day of month ranges to provided values. Values must be within the range 1-31.Default matches all days.
-
setMonth
public ScheduleCalendarSpec.Builder setMonth(java.util.List<ScheduleRange> month)
Set the month ranges to provided values. Values must be within the range 1-12.Default matches all months.
-
setYear
public ScheduleCalendarSpec.Builder setYear(java.util.List<ScheduleRange> year)
Set the optional year ranges to provided values.Default of empty matches all years.
-
setDayOfWeek
public ScheduleCalendarSpec.Builder setDayOfWeek(java.util.List<ScheduleRange> dayOfWeek)
Set the day of week ranges to provided values. Values must be within the range 0-6, 0 is Sunday.Default matches all days.
-
setComment
public ScheduleCalendarSpec.Builder setComment(java.lang.String comment)
Set the description of this specification.
-
build
public ScheduleCalendarSpec build()
-
-