Interface WaitActivity.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<WaitActivity.Builder,,WaitActivity> SdkBuilder<WaitActivity.Builder,,WaitActivity> SdkPojo
- Enclosing class:
WaitActivity
@Mutable
@NotThreadSafe
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.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.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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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.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:
-