Class CfnEventBusProps.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • name

      @Stability(Stable) public CfnEventBusProps.Builder name(String name)
      Sets the value of CfnEventBusProps.getName()
      Parameters:
      name - The name of the new event bus. This parameter is required. Custom event bus names can't contain the / character, but you can use the / character in partner event bus names. In addition, for partner event buses, the name must exactly match the name of the partner event source that this event bus is matched to.

      You can't use the name default for a custom event bus, as this name is already used for your account's default event bus.

      Returns:
      this
    • eventSourceName

      @Stability(Stable) public CfnEventBusProps.Builder eventSourceName(String eventSourceName)
      Parameters:
      eventSourceName - If you are creating a partner event bus, this specifies the partner event source that the new event bus will be matched with.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnEventBusProps.Builder tags(List<? extends CfnEventBus.TagEntryProperty> tags)
      Sets the value of CfnEventBusProps.getTags()
      Parameters:
      tags - Tags to associate with the event bus.
      Returns:
      this
    • build

      @Stability(Stable) public CfnEventBusProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnEventBusProps>
      Returns:
      a new instance of CfnEventBusProps
      Throws:
      NullPointerException - if any required attribute was not provided