Interface ComponentEvent.Builder

All Superinterfaces:
Buildable, CopyableBuilder<ComponentEvent.Builder,ComponentEvent>, SdkBuilder<ComponentEvent.Builder,ComponentEvent>, SdkPojo
Enclosing class:
ComponentEvent

public static interface ComponentEvent.Builder extends SdkPojo, CopyableBuilder<ComponentEvent.Builder,ComponentEvent>
  • Method Details

    • action

      The action to perform when a specific event is raised.

      Parameters:
      action - The action to perform when a specific event is raised.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • parameters

      ComponentEvent.Builder parameters(ActionParameters parameters)

      Describes information about the action.

      Parameters:
      parameters - Describes information about the action.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • parameters

      default ComponentEvent.Builder parameters(Consumer<ActionParameters.Builder> parameters)

      Describes information about the action.

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

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

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

      ComponentEvent.Builder bindingEvent(String bindingEvent)

      Binds an event to an action on a component. When you specify a bindingEvent, the event is called when the action is performed.

      Parameters:
      bindingEvent - Binds an event to an action on a component. When you specify a bindingEvent, the event is called when the action is performed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.