Class EventBus.Builder

java.lang.Object
software.amazon.awscdk.services.events.EventBus.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<EventBus>
Enclosing class:
EventBus

@Stability(Stable) public static final class EventBus.Builder extends Object implements software.amazon.jsii.Builder<EventBus>
A fluent builder for EventBus.
  • Method Details

    • create

      @Stability(Stable) public static EventBus.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of EventBus.Builder.
    • eventBusName

      @Stability(Stable) public EventBus.Builder eventBusName(String eventBusName)
      The name of the event bus you are creating Note: If 'eventSourceName' is passed in, you cannot set this.

      Default: - automatically generated name

      Parameters:
      eventBusName - The name of the event bus you are creating Note: If 'eventSourceName' is passed in, you cannot set this. This parameter is required.
      Returns:
      this
    • eventSourceName

      @Stability(Stable) public EventBus.Builder eventSourceName(String eventSourceName)
      The partner event source to associate with this event bus resource Note: If 'eventBusName' is passed in, you cannot set this.

      Default: - no partner event source

      Parameters:
      eventSourceName - The partner event source to associate with this event bus resource Note: If 'eventBusName' is passed in, you cannot set this. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public EventBus build()
      Specified by:
      build in interface software.amazon.jsii.Builder<EventBus>
      Returns:
      a newly built instance of EventBus.