Package org.cdk8s
Class Cron.Builder
- java.lang.Object
-
- org.cdk8s.Cron.Builder
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Cron
build()
static Cron.Builder
create()
Cron.Builder
day(String day)
The day of the month to run this rule at.Cron.Builder
hour(String hour)
The hour to run this rule at.Cron.Builder
minute(String minute)
The minute to run this rule at.Cron.Builder
month(String month)
The month to run this rule at.Cron.Builder
weekDay(String weekDay)
The day of the week to run this rule at.
-
-
-
Method Detail
-
create
@Stability(Stable) public static Cron.Builder create()
- Returns:
- a new instance of
Cron.Builder
.
-
day
@Stability(Stable) public Cron.Builder day(String day)
The day of the month to run this rule at.Default: - Every day of the month
- Parameters:
day
- The day of the month to run this rule at. This parameter is required.- Returns:
this
-
hour
@Stability(Stable) public Cron.Builder hour(String hour)
The hour to run this rule at.Default: - Every hour
- Parameters:
hour
- The hour to run this rule at. This parameter is required.- Returns:
this
-
minute
@Stability(Stable) public Cron.Builder minute(String minute)
The minute to run this rule at.Default: - Every minute
- Parameters:
minute
- The minute to run this rule at. This parameter is required.- Returns:
this
-
month
@Stability(Stable) public Cron.Builder month(String month)
The month to run this rule at.Default: - Every month
- Parameters:
month
- The month to run this rule at. This parameter is required.- Returns:
this
-
weekDay
@Stability(Stable) public Cron.Builder weekDay(String weekDay)
The day of the week to run this rule at.Default: - Any day of the week
- Parameters:
weekDay
- The day of the week to run this rule at. This parameter is required.- Returns:
this
-
-