Package org.cdk8s
Class CronOptions.Builder
- java.lang.Object
-
- org.cdk8s.CronOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CronOptions>
- Enclosing interface:
- CronOptions
@Stability(Stable) public static final class CronOptions.Builder extends Object implements software.amazon.jsii.Builder<CronOptions>
A builder forCronOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CronOptions
build()
Builds the configured instance.CronOptions.Builder
day(String day)
Sets the value ofCronOptions.getDay()
CronOptions.Builder
hour(String hour)
Sets the value ofCronOptions.getHour()
CronOptions.Builder
minute(String minute)
Sets the value ofCronOptions.getMinute()
CronOptions.Builder
month(String month)
Sets the value ofCronOptions.getMonth()
CronOptions.Builder
weekDay(String weekDay)
Sets the value ofCronOptions.getWeekDay()
-
-
-
Method Detail
-
day
@Stability(Stable) public CronOptions.Builder day(String day)
Sets the value ofCronOptions.getDay()
- Parameters:
day
- The day of the month to run this rule at.- Returns:
this
-
hour
@Stability(Stable) public CronOptions.Builder hour(String hour)
Sets the value ofCronOptions.getHour()
- Parameters:
hour
- The hour to run this rule at.- Returns:
this
-
minute
@Stability(Stable) public CronOptions.Builder minute(String minute)
Sets the value ofCronOptions.getMinute()
- Parameters:
minute
- The minute to run this rule at.- Returns:
this
-
month
@Stability(Stable) public CronOptions.Builder month(String month)
Sets the value ofCronOptions.getMonth()
- Parameters:
month
- The month to run this rule at.- Returns:
this
-
weekDay
@Stability(Stable) public CronOptions.Builder weekDay(String weekDay)
Sets the value ofCronOptions.getWeekDay()
- Parameters:
weekDay
- The day of the week to run this rule at.- Returns:
this
-
build
@Stability(Stable) public CronOptions build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CronOptions>
- Returns:
- a new instance of
CronOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-
-