Interface CreateScheduleRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateScheduleRequest.Builder,CreateScheduleRequest>,SchedulerRequest.Builder,SdkBuilder<CreateScheduleRequest.Builder,CreateScheduleRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateScheduleRequest
public static interface CreateScheduleRequest.Builder extends SchedulerRequest.Builder, SdkPojo, CopyableBuilder<CreateScheduleRequest.Builder,CreateScheduleRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateScheduleRequest.BuilderactionAfterCompletion(String actionAfterCompletion)Specifies the action that EventBridge Scheduler applies to the schedule after the schedule completes invoking the target.CreateScheduleRequest.BuilderactionAfterCompletion(ActionAfterCompletion actionAfterCompletion)Specifies the action that EventBridge Scheduler applies to the schedule after the schedule completes invoking the target.CreateScheduleRequest.BuilderclientToken(String clientToken)Unique, case-sensitive identifier you provide to ensure the idempotency of the request.CreateScheduleRequest.Builderdescription(String description)The description you specify for the schedule.CreateScheduleRequest.BuilderendDate(Instant endDate)The date, in UTC, before which the schedule can invoke its target.default CreateScheduleRequest.BuilderflexibleTimeWindow(Consumer<FlexibleTimeWindow.Builder> flexibleTimeWindow)Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.CreateScheduleRequest.BuilderflexibleTimeWindow(FlexibleTimeWindow flexibleTimeWindow)Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.CreateScheduleRequest.BuildergroupName(String groupName)The name of the schedule group to associate with this schedule.CreateScheduleRequest.BuilderkmsKeyArn(String kmsKeyArn)The Amazon Resource Name (ARN) for the customer managed KMS key that EventBridge Scheduler will use to encrypt and decrypt your data.CreateScheduleRequest.Buildername(String name)The name of the schedule that you are creating.CreateScheduleRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateScheduleRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateScheduleRequest.BuilderscheduleExpression(String scheduleExpression)The expression that defines when the schedule runs.CreateScheduleRequest.BuilderscheduleExpressionTimezone(String scheduleExpressionTimezone)The timezone in which the scheduling expression is evaluated.CreateScheduleRequest.BuilderstartDate(Instant startDate)The date, in UTC, after which the schedule can begin invoking its target.CreateScheduleRequest.Builderstate(String state)Specifies whether the schedule is enabled or disabled.CreateScheduleRequest.Builderstate(ScheduleState state)Specifies whether the schedule is enabled or disabled.default CreateScheduleRequest.Buildertarget(Consumer<Target.Builder> target)The schedule's target.CreateScheduleRequest.Buildertarget(Target target)The schedule's target.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.scheduler.model.SchedulerRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
actionAfterCompletion
CreateScheduleRequest.Builder actionAfterCompletion(String actionAfterCompletion)
Specifies the action that EventBridge Scheduler applies to the schedule after the schedule completes invoking the target.
- Parameters:
actionAfterCompletion- Specifies 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,ActionAfterCompletion
-
actionAfterCompletion
CreateScheduleRequest.Builder actionAfterCompletion(ActionAfterCompletion actionAfterCompletion)
Specifies the action that EventBridge Scheduler applies to the schedule after the schedule completes invoking the target.
- Parameters:
actionAfterCompletion- Specifies 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,ActionAfterCompletion
-
clientToken
CreateScheduleRequest.Builder clientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. If you do not specify a client token, EventBridge Scheduler uses a randomly generated token for the request to ensure idempotency.
- Parameters:
clientToken- Unique, case-sensitive identifier you provide to ensure the idempotency of the request. If you do not specify a client token, EventBridge Scheduler uses a randomly generated token for the request to ensure idempotency.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
CreateScheduleRequest.Builder description(String description)
The description you specify for the schedule.
- Parameters:
description- The description you specify for the schedule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endDate
CreateScheduleRequest.Builder endDate(Instant 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
EndDateyou specify. EventBridge Scheduler ignoresEndDatefor 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, theEndDateyou specify. EventBridge Scheduler ignoresEndDatefor one-time schedules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
flexibleTimeWindow
CreateScheduleRequest.Builder flexibleTimeWindow(FlexibleTimeWindow 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 CreateScheduleRequest.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.Builderavoiding the need to create one manually viaFlexibleTimeWindow.builder().When the
Consumercompletes,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:
flexibleTimeWindow(FlexibleTimeWindow)
-
groupName
CreateScheduleRequest.Builder groupName(String groupName)
The name of the schedule group to associate with this schedule. If you omit this, the default schedule group is used.
- Parameters:
groupName- The name of the schedule group to associate with this schedule. If you omit this, the default schedule group is used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kmsKeyArn
CreateScheduleRequest.Builder kmsKeyArn(String kmsKeyArn)
The Amazon Resource Name (ARN) for the customer managed KMS key that EventBridge Scheduler will use to encrypt and decrypt your data.
- Parameters:
kmsKeyArn- The Amazon Resource Name (ARN) for the customer managed KMS key that EventBridge Scheduler will use to encrypt and decrypt your data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
CreateScheduleRequest.Builder name(String name)
The name of the schedule that you are creating.
- Parameters:
name- The name of the schedule that you are creating.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scheduleExpression
CreateScheduleRequest.Builder scheduleExpression(String scheduleExpression)
The expression that defines when the schedule runs. The following formats are supported.
-
atexpression -at(yyyy-mm-ddThh:mm:ss) -
rateexpression -rate(value unit) -
cronexpression -cron(fields)
You can use
atexpressions to create one-time schedules that invoke a target once, at the time and in the time zone, that you specify. You can userateandcronexpressions 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
cronexpression consists of six fields separated by white spaces:(minutes hours day_of_month month day_of_week year).A
rateexpression consists of a value as a positive integer, and a unit with the following options:minute|minutes|hour|hours|day|daysFor 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.-
atexpression -at(yyyy-mm-ddThh:mm:ss) -
rateexpression -rate(value unit) -
cronexpression -cron(fields)
You can use
atexpressions to create one-time schedules that invoke a target once, at the time and in the time zone, that you specify. You can userateandcronexpressions 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
cronexpression consists of six fields separated by white spaces:(minutes hours day_of_month month day_of_week year).A
rateexpression consists of a value as a positive integer, and a unit with the following options:minute|minutes|hour|hours|day|daysFor 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
CreateScheduleRequest.Builder scheduleExpressionTimezone(String 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
CreateScheduleRequest.Builder startDate(Instant 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
StartDateyou specify. EventBridge Scheduler ignoresStartDatefor 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, theStartDateyou specify. EventBridge Scheduler ignoresStartDatefor one-time schedules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
CreateScheduleRequest.Builder state(String 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:
ScheduleState,ScheduleState
-
state
CreateScheduleRequest.Builder state(ScheduleState 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:
ScheduleState,ScheduleState
-
target
CreateScheduleRequest.Builder target(Target target)
The schedule's target.
- Parameters:
target- The schedule's target.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
target
default CreateScheduleRequest.Builder target(Consumer<Target.Builder> target)
The schedule's target.
This is a convenience method that creates an instance of theTarget.Builderavoiding the need to create one manually viaTarget.builder().When the
Consumercompletes,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:
target(Target)
-
overrideConfiguration
CreateScheduleRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateScheduleRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-