Class EventBusAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.events.EventBusAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EventBusAttributes>
- Enclosing interface:
EventBusAttributes
@Stability(Stable)
public static final class EventBusAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<EventBusAttributes>
A builder for
EventBusAttributes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.eventBusArn
(String eventBusArn) Sets the value ofEventBusAttributes.getEventBusArn()
eventBusName
(String eventBusName) Sets the value ofEventBusAttributes.getEventBusName()
eventBusPolicy
(String eventBusPolicy) Sets the value ofEventBusAttributes.getEventBusPolicy()
eventSourceName
(String eventSourceName) Sets the value ofEventBusAttributes.getEventSourceName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
eventBusArn
Sets the value ofEventBusAttributes.getEventBusArn()
- Parameters:
eventBusArn
- The ARN of this event bus resource. This parameter is required.- Returns:
this
-
eventBusName
Sets the value ofEventBusAttributes.getEventBusName()
- Parameters:
eventBusName
- The physical ID of this event bus resource. This parameter is required.- Returns:
this
-
eventBusPolicy
Sets the value ofEventBusAttributes.getEventBusPolicy()
- Parameters:
eventBusPolicy
- The JSON policy of this event bus resource. This parameter is required.- Returns:
this
-
eventSourceName
Sets the value ofEventBusAttributes.getEventSourceName()
- Parameters:
eventSourceName
- The partner event source to associate with this event bus resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EventBusAttributes>
- Returns:
- a new instance of
EventBusAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-