Interface OnInputLifecycle.Builder

    • Method Detail

      • events

        OnInputLifecycle.Builder events​(Collection<Event> events)

        Specifies the actions performed when the condition evaluates to TRUE.

        Parameters:
        events - Specifies the actions performed when the condition evaluates to TRUE.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • events

        OnInputLifecycle.Builder events​(Event... events)

        Specifies the actions performed when the condition evaluates to TRUE.

        Parameters:
        events - Specifies the actions performed when the condition evaluates to TRUE.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • events

        OnInputLifecycle.Builder events​(Consumer<Event.Builder>... events)

        Specifies the actions performed when the condition evaluates to TRUE.

        This is a convenience method that creates an instance of the Event.Builder avoiding the need to create one manually via Event.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #events(List).

        Parameters:
        events - a consumer that will call methods on Event.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #events(java.util.Collection)
      • transitionEvents

        OnInputLifecycle.Builder transitionEvents​(Collection<TransitionEvent> transitionEvents)

        Specifies the actions performed, and the next state entered, when a condition evaluates to TRUE.

        Parameters:
        transitionEvents - Specifies the actions performed, and the next state entered, when a condition evaluates to TRUE.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • transitionEvents

        OnInputLifecycle.Builder transitionEvents​(TransitionEvent... transitionEvents)

        Specifies the actions performed, and the next state entered, when a condition evaluates to TRUE.

        Parameters:
        transitionEvents - Specifies the actions performed, and the next state entered, when a condition evaluates to TRUE.
        Returns:
        Returns a reference to this object so that method calls can be chained together.