Class CronOptions.Builder
java.lang.Object
software.amazon.awscdk.services.autoscaling.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 for
CronOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCronOptions.getDay()
Sets the value ofCronOptions.getHour()
Sets the value ofCronOptions.getMinute()
Sets the value ofCronOptions.getMonth()
Sets the value ofCronOptions.getWeekDay()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
day
Sets the value ofCronOptions.getDay()
- Parameters:
day
- The day of the month to run this rule at.- Returns:
this
-
hour
Sets the value ofCronOptions.getHour()
- Parameters:
hour
- The hour to run this rule at.- Returns:
this
-
minute
Sets the value ofCronOptions.getMinute()
- Parameters:
minute
- The minute to run this rule at.- Returns:
this
-
month
Sets the value ofCronOptions.getMonth()
- Parameters:
month
- The month to run this rule at.- Returns:
this
-
weekDay
Sets the value ofCronOptions.getWeekDay()
- Parameters:
weekDay
- The day of the week to run this rule at.- Returns:
this
-
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
-