Interface ScheduleAction.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ScheduleAction.Builder,
,ScheduleAction> SdkBuilder<ScheduleAction.Builder,
,ScheduleAction> SdkPojo
- Enclosing class:
ScheduleAction
public static interface ScheduleAction.Builder
extends SdkPojo, CopyableBuilder<ScheduleAction.Builder,ScheduleAction>
-
Method Summary
Modifier and TypeMethodDescriptionactionName
(String actionName) The name of the action, must be unique within the schedule.default ScheduleAction.Builder
scheduleActionSettings
(Consumer<ScheduleActionSettings.Builder> scheduleActionSettings) Settings for this schedule action.scheduleActionSettings
(ScheduleActionSettings scheduleActionSettings) Settings for this schedule action.default ScheduleAction.Builder
scheduleActionStartSettings
(Consumer<ScheduleActionStartSettings.Builder> scheduleActionStartSettings) The time for the action to start in the channel.scheduleActionStartSettings
(ScheduleActionStartSettings scheduleActionStartSettings) The time for the action to start in the channel.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
actionName
The name of the action, must be unique within the schedule. This name provides the main reference to an action once it is added to the schedule. A name is unique if it is no longer in the schedule. The schedule is automatically cleaned up to remove actions with a start time of more than 1 hour ago (approximately) so at that point a name can be reused.- Parameters:
actionName
- The name of the action, must be unique within the schedule. This name provides the main reference to an action once it is added to the schedule. A name is unique if it is no longer in the schedule. The schedule is automatically cleaned up to remove actions with a start time of more than 1 hour ago (approximately) so at that point a name can be reused.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scheduleActionSettings
Settings for this schedule action.- Parameters:
scheduleActionSettings
- Settings for this schedule action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scheduleActionSettings
default ScheduleAction.Builder scheduleActionSettings(Consumer<ScheduleActionSettings.Builder> scheduleActionSettings) Settings for this schedule action. This is a convenience method that creates an instance of theScheduleActionSettings.Builder
avoiding the need to create one manually viaScheduleActionSettings.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toscheduleActionSettings(ScheduleActionSettings)
.- Parameters:
scheduleActionSettings
- a consumer that will call methods onScheduleActionSettings.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scheduleActionStartSettings
ScheduleAction.Builder scheduleActionStartSettings(ScheduleActionStartSettings scheduleActionStartSettings) The time for the action to start in the channel.- Parameters:
scheduleActionStartSettings
- The time for the action to start in the channel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scheduleActionStartSettings
default ScheduleAction.Builder scheduleActionStartSettings(Consumer<ScheduleActionStartSettings.Builder> scheduleActionStartSettings) The time for the action to start in the channel. This is a convenience method that creates an instance of theScheduleActionStartSettings.Builder
avoiding the need to create one manually viaScheduleActionStartSettings.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toscheduleActionStartSettings(ScheduleActionStartSettings)
.- Parameters:
scheduleActionStartSettings
- a consumer that will call methods onScheduleActionStartSettings.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-