Class ScheduleProps.Builder
java.lang.Object
software.amazon.awscdk.services.scheduler.alpha.ScheduleProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ScheduleProps>
- Enclosing interface:
ScheduleProps
@Stability(Experimental)
public static final class ScheduleProps.Builder
extends Object
implements software.amazon.jsii.Builder<ScheduleProps>
A builder for
ScheduleProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofScheduleProps.getDescription()
Sets the value ofScheduleProps.getEnabled()
Sets the value ofScheduleProps.getEnd()
Sets the value ofScheduleProps.getGroup()
Sets the value ofScheduleProps.getKey()
schedule
(ScheduleExpression schedule) Sets the value ofScheduleProps.getSchedule()
scheduleName
(String scheduleName) Sets the value ofScheduleProps.getScheduleName()
Sets the value ofScheduleProps.getStart()
target
(IScheduleTarget target) Sets the value ofScheduleProps.getTarget()
timeWindow
(TimeWindow timeWindow) Sets the value ofScheduleProps.getTimeWindow()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
schedule
Sets the value ofScheduleProps.getSchedule()
- Parameters:
schedule
- The expression that defines when the schedule runs. This parameter is required. Can be either aat
,rate
orcron
expression.- Returns:
this
-
target
Sets the value ofScheduleProps.getTarget()
- Parameters:
target
- The schedule's target details. This parameter is required.- Returns:
this
-
description
Sets the value ofScheduleProps.getDescription()
- Parameters:
description
- The description you specify for the schedule.- Returns:
this
-
enabled
Sets the value ofScheduleProps.getEnabled()
- Parameters:
enabled
- Indicates whether the schedule is enabled.- Returns:
this
-
end
Sets the value ofScheduleProps.getEnd()
- Parameters:
end
- The date, in UTC, before which the schedule can invoke its target. EventBridge Scheduler ignores end for one-time schedules.- Returns:
this
-
group
Sets the value ofScheduleProps.getGroup()
- Parameters:
group
- The schedule's group.- Returns:
this
-
key
Sets the value ofScheduleProps.getKey()
- Parameters:
key
- The customer managed KMS key that EventBridge Scheduler will use to encrypt and decrypt your data.- Returns:
this
-
scheduleName
Sets the value ofScheduleProps.getScheduleName()
- Parameters:
scheduleName
- The name of the schedule. Up to 64 letters (uppercase and lowercase), numbers, hyphens, underscores and dots are allowed.- Returns:
this
-
start
Sets the value ofScheduleProps.getStart()
- Parameters:
start
- The date, in UTC, after which the schedule can begin invoking its target. EventBridge Scheduler ignores start for one-time schedules.- Returns:
this
-
timeWindow
Sets the value ofScheduleProps.getTimeWindow()
- Parameters:
timeWindow
- A time window during which EventBridge Scheduler invokes the schedule.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ScheduleProps>
- Returns:
- a new instance of
ScheduleProps
- Throws:
NullPointerException
- if any required attribute was not provided
-