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 Details

    • 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 the WaitTime.Builder avoiding the need to create one manually via WaitTime.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to waitTime(WaitTime).

      Parameters:
      waitTime - a consumer that will call methods on WaitTime.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: