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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description WaitActivity.BuildernextActivity(String nextActivity)The unique identifier for the next activity to perform, after performing the wait activity.default WaitActivity.BuilderwaitTime(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.WaitActivity.BuilderwaitTime(WaitTime waitTime)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 Detail
-
nextActivity
WaitActivity.Builder nextActivity(String 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
WaitActivity.Builder waitTime(WaitTime 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
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.
This is a convenience method that creates an instance of theWaitTime.Builderavoiding the need to create one manually viaWaitTime.builder().When the
Consumercompletes,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:
waitTime(WaitTime)
-
-