Interface WaitActivity.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<WaitActivity.Builder,
,WaitActivity> SdkBuilder<WaitActivity.Builder,
,WaitActivity> SdkPojo
- Enclosing class:
WaitActivity
public static interface WaitActivity.Builder
extends SdkPojo, CopyableBuilder<WaitActivity.Builder,WaitActivity>
-
Method Summary
Modifier and TypeMethodDescriptionnextActivity
(String nextActivity) The unique identifier for the next activity to perform, after performing the wait activity.default WaitActivity.Builder
waitTime
(Consumer<WaitTime.Builder> waitTime) The amount of time to wait or the date and time when the activity moves participants to the next activity in the journey.The amount of time to wait or the date and time when the activity moves participants to the next activity in the journey.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
-
nextActivity
The unique identifier for the next activity to perform, after performing the wait activity.
- Parameters:
nextActivity
- The unique identifier for the next activity to perform, after performing the wait activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
waitTime
The amount of time to wait or the date and time when the activity moves participants to the next activity in the journey.
- Parameters:
waitTime
- The amount of time to wait or the date and time when the activity moves participants to the next activity in the journey.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
waitTime
The amount of time to wait or the date and time when the activity moves participants to the next activity in the journey.
This is a convenience method that creates an instance of theWaitTime.Builder
avoiding the need to create one manually viaWaitTime.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed towaitTime(WaitTime)
.- Parameters:
waitTime
- a consumer that will call methods onWaitTime.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-