public static final class CronOptions.Builder
extends java.lang.Object
CronOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CronOptions |
build()
Builds the configured instance.
|
CronOptions.Builder |
day(java.lang.String day)
Sets the value of
CronOptions.getDay() |
CronOptions.Builder |
hour(java.lang.String hour)
Sets the value of
CronOptions.getHour() |
CronOptions.Builder |
minute(java.lang.String minute)
Sets the value of
CronOptions.getMinute() |
CronOptions.Builder |
month(java.lang.String month)
Sets the value of
CronOptions.getMonth() |
CronOptions.Builder |
weekDay(java.lang.String weekDay)
Sets the value of
CronOptions.getWeekDay() |
public CronOptions.Builder day(java.lang.String day)
CronOptions.getDay()
day
- The day of the month to run this rule at.this
public CronOptions.Builder hour(java.lang.String hour)
CronOptions.getHour()
hour
- The hour to run this rule at.this
public CronOptions.Builder minute(java.lang.String minute)
CronOptions.getMinute()
minute
- The minute to run this rule at.this
public CronOptions.Builder month(java.lang.String month)
CronOptions.getMonth()
month
- The month to run this rule at.this
public CronOptions.Builder weekDay(java.lang.String weekDay)
CronOptions.getWeekDay()
weekDay
- The day of the week to run this rule at.this
public CronOptions build()
CronOptions
java.lang.NullPointerException
- if any required attribute was not provided