Interface ScheduleSpec.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ScheduleSpec.Builder,,ScheduleSpec> SdkBuilder<ScheduleSpec.Builder,,ScheduleSpec> SdkPojo
- Enclosing class:
ScheduleSpec
@Mutable
@NotThreadSafe
public static interface ScheduleSpec.Builder
extends SdkPojo, CopyableBuilder<ScheduleSpec.Builder,ScheduleSpec>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ScheduleSpec.Buildercron(Consumer<CronSchedule.Builder> cron) Runs on an EventBridge cron or rate cadencecron(CronSchedule cron) Runs on an EventBridge cron or rate cadencedefault ScheduleSpec.BuildertimeRange(Consumer<TimeRangeSchedule.Builder> timeRange) Runs within a recurring time-of-day windowtimeRange(TimeRangeSchedule timeRange) Runs within a recurring time-of-day windowMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
cron
Runs on an EventBridge cron or rate cadence
- Parameters:
cron- Runs on an EventBridge cron or rate cadence- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cron
Runs on an EventBridge cron or rate cadence
This is a convenience method that creates an instance of theCronSchedule.Builderavoiding the need to create one manually viaCronSchedule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocron(CronSchedule).- Parameters:
cron- a consumer that will call methods onCronSchedule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
timeRange
Runs within a recurring time-of-day window
- Parameters:
timeRange- Runs within a recurring time-of-day window- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeRange
Runs within a recurring time-of-day window
This is a convenience method that creates an instance of theTimeRangeSchedule.Builderavoiding the need to create one manually viaTimeRangeSchedule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totimeRange(TimeRangeSchedule).- Parameters:
timeRange- a consumer that will call methods onTimeRangeSchedule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-