Interface GetScheduleResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetScheduleResponse.Builder,
,GetScheduleResponse> SchedulerResponse.Builder
,SdkBuilder<GetScheduleResponse.Builder,
,GetScheduleResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetScheduleResponse
-
Method Summary
Modifier and TypeMethodDescriptionactionAfterCompletion
(String actionAfterCompletion) Indicates the action that EventBridge Scheduler applies to the schedule after the schedule completes invoking the target.actionAfterCompletion
(ActionAfterCompletion actionAfterCompletion) Indicates the action that EventBridge Scheduler applies to the schedule after the schedule completes invoking the target.The Amazon Resource Name (ARN) of the schedule.creationDate
(Instant creationDate) The time at which the schedule was created.description
(String description) The description of the schedule.The date, in UTC, before which the schedule can invoke its target.default GetScheduleResponse.Builder
flexibleTimeWindow
(Consumer<FlexibleTimeWindow.Builder> flexibleTimeWindow) Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.flexibleTimeWindow
(FlexibleTimeWindow flexibleTimeWindow) Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.The name of the schedule group associated with this schedule.The ARN for a customer managed KMS Key that is be used to encrypt and decrypt your data.lastModificationDate
(Instant lastModificationDate) The time at which the schedule was last modified.The name of the schedule.scheduleExpression
(String scheduleExpression) The expression that defines when the schedule runs.scheduleExpressionTimezone
(String scheduleExpressionTimezone) The timezone in which the scheduling expression is evaluated.The date, in UTC, after which the schedule can begin invoking its target.Specifies whether the schedule is enabled or disabled.state
(ScheduleState state) Specifies whether the schedule is enabled or disabled.default GetScheduleResponse.Builder
target
(Consumer<Target.Builder> target) The schedule target.The schedule target.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.scheduler.model.SchedulerResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
actionAfterCompletion
Indicates the action that EventBridge Scheduler applies to the schedule after the schedule completes invoking the target.
- Parameters:
actionAfterCompletion
- Indicates the action that EventBridge Scheduler applies to the schedule after the schedule completes invoking the target.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
actionAfterCompletion
Indicates the action that EventBridge Scheduler applies to the schedule after the schedule completes invoking the target.
- Parameters:
actionAfterCompletion
- Indicates the action that EventBridge Scheduler applies to the schedule after the schedule completes invoking the target.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
arn
The Amazon Resource Name (ARN) of the schedule.
- Parameters:
arn
- The Amazon Resource Name (ARN) of the schedule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationDate
The time at which the schedule was created.
- Parameters:
creationDate
- The time at which the schedule was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the schedule.
- Parameters:
description
- The description of the schedule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endDate
The date, in UTC, before which the schedule can invoke its target. Depending on the schedule's recurrence expression, invocations might stop on, or before, the
EndDate
you specify. EventBridge Scheduler ignoresEndDate
for one-time schedules.- Parameters:
endDate
- The date, in UTC, before which the schedule can invoke its target. Depending on the schedule's recurrence expression, invocations might stop on, or before, theEndDate
you specify. EventBridge Scheduler ignoresEndDate
for one-time schedules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
flexibleTimeWindow
Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.
- Parameters:
flexibleTimeWindow
- Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
flexibleTimeWindow
default GetScheduleResponse.Builder flexibleTimeWindow(Consumer<FlexibleTimeWindow.Builder> flexibleTimeWindow) Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.
This is a convenience method that creates an instance of theFlexibleTimeWindow.Builder
avoiding the need to create one manually viaFlexibleTimeWindow.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toflexibleTimeWindow(FlexibleTimeWindow)
.- Parameters:
flexibleTimeWindow
- a consumer that will call methods onFlexibleTimeWindow.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
groupName
The name of the schedule group associated with this schedule.
- Parameters:
groupName
- The name of the schedule group associated with this schedule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kmsKeyArn
The ARN for a customer managed KMS Key that is be used to encrypt and decrypt your data.
- Parameters:
kmsKeyArn
- The ARN for a customer managed KMS Key that is be used to encrypt and decrypt your data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastModificationDate
The time at which the schedule was last modified.
- Parameters:
lastModificationDate
- The time at which the schedule was last modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the schedule.
- Parameters:
name
- The name of the schedule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scheduleExpression
The expression that defines when the schedule runs. The following formats are supported.
-
at
expression -at(yyyy-mm-ddThh:mm:ss)
-
rate
expression -rate(value unit)
-
cron
expression -cron(fields)
You can use
at
expressions to create one-time schedules that invoke a target once, at the time and in the time zone, that you specify. You can userate
andcron
expressions to create recurring schedules. Rate-based schedules are useful when you want to invoke a target at regular intervals, such as every 15 minutes or every five days. Cron-based schedules are useful when you want to invoke a target periodically at a specific time, such as at 8:00 am (UTC+0) every 1st day of the month.A
cron
expression consists of six fields separated by white spaces:(minutes hours day_of_month month day_of_week year)
.A
rate
expression consists of a value as a positive integer, and a unit with the following options:minute
|minutes
|hour
|hours
|day
|days
For more information and examples, see Schedule types on EventBridge Scheduler in the EventBridge Scheduler User Guide.
- Parameters:
scheduleExpression
- The expression that defines when the schedule runs. The following formats are supported.-
at
expression -at(yyyy-mm-ddThh:mm:ss)
-
rate
expression -rate(value unit)
-
cron
expression -cron(fields)
You can use
at
expressions to create one-time schedules that invoke a target once, at the time and in the time zone, that you specify. You can userate
andcron
expressions to create recurring schedules. Rate-based schedules are useful when you want to invoke a target at regular intervals, such as every 15 minutes or every five days. Cron-based schedules are useful when you want to invoke a target periodically at a specific time, such as at 8:00 am (UTC+0) every 1st day of the month.A
cron
expression consists of six fields separated by white spaces:(minutes hours day_of_month month day_of_week year)
.A
rate
expression consists of a value as a positive integer, and a unit with the following options:minute
|minutes
|hour
|hours
|day
|days
For more information and examples, see Schedule types on EventBridge Scheduler in the EventBridge Scheduler User Guide.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
scheduleExpressionTimezone
The timezone in which the scheduling expression is evaluated.
- Parameters:
scheduleExpressionTimezone
- The timezone in which the scheduling expression is evaluated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startDate
The date, in UTC, after which the schedule can begin invoking its target. Depending on the schedule's recurrence expression, invocations might occur on, or after, the
StartDate
you specify. EventBridge Scheduler ignoresStartDate
for one-time schedules.- Parameters:
startDate
- The date, in UTC, after which the schedule can begin invoking its target. Depending on the schedule's recurrence expression, invocations might occur on, or after, theStartDate
you specify. EventBridge Scheduler ignoresStartDate
for one-time schedules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
Specifies whether the schedule is enabled or disabled.
- Parameters:
state
- Specifies whether the schedule is enabled or disabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
Specifies whether the schedule is enabled or disabled.
- Parameters:
state
- Specifies whether the schedule is enabled or disabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
target
The schedule target.
- Parameters:
target
- The schedule target.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
target
The schedule target.
This is a convenience method that creates an instance of theTarget.Builder
avoiding the need to create one manually viaTarget.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totarget(Target)
.- Parameters:
target
- a consumer that will call methods onTarget.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-