Class EventBusReference.Builder
java.lang.Object
software.amazon.awscdk.interfaces.events.EventBusReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EventBusReference>
- Enclosing interface:
EventBusReference
@Stability(Stable)
public static final class EventBusReference.Builder
extends Object
implements software.amazon.jsii.Builder<EventBusReference>
A builder for
EventBusReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.eventBusArn(String eventBusArn) Sets the value ofEventBusReference.getEventBusArn()eventBusName(String eventBusName) Sets the value ofEventBusReference.getEventBusName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
eventBusArn
Sets the value ofEventBusReference.getEventBusArn()- Parameters:
eventBusArn- The ARN of the EventBus resource. This parameter is required.- Returns:
this
-
eventBusName
Sets the value ofEventBusReference.getEventBusName()- Parameters:
eventBusName- The Name of the EventBus resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EventBusReference>- Returns:
- a new instance of
EventBusReference - Throws:
NullPointerException- if any required attribute was not provided
-