Class EventBusProps.Builder
java.lang.Object
software.amazon.awscdk.services.events.EventBusProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EventBusProps>
- Enclosing interface:
EventBusProps
@Stability(Stable)
public static final class EventBusProps.Builder
extends Object
implements software.amazon.jsii.Builder<EventBusProps>
A builder for
EventBusProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.deadLetterQueue
(IQueue deadLetterQueue) Sets the value ofEventBusProps.getDeadLetterQueue()
description
(String description) Sets the value ofEventBusProps.getDescription()
eventBusName
(String eventBusName) Sets the value ofEventBusProps.getEventBusName()
eventSourceName
(String eventSourceName) Sets the value ofEventBusProps.getEventSourceName()
Sets the value ofEventBusProps.getKmsKey()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deadLetterQueue
Sets the value ofEventBusProps.getDeadLetterQueue()
- Parameters:
deadLetterQueue
- Dead-letter queue for the event bus.- Returns:
this
-
description
Sets the value ofEventBusProps.getDescription()
- Parameters:
description
- The event bus description. The description can be up to 512 characters long.- Returns:
this
-
eventBusName
Sets the value ofEventBusProps.getEventBusName()
- Parameters:
eventBusName
- The name of the event bus you are creating Note: If 'eventSourceName' is passed in, you cannot set this.- Returns:
this
-
eventSourceName
Sets the value ofEventBusProps.getEventSourceName()
- Parameters:
eventSourceName
- The partner event source to associate with this event bus resource Note: If 'eventBusName' is passed in, you cannot set this.- Returns:
this
-
kmsKey
Sets the value ofEventBusProps.getKmsKey()
- Parameters:
kmsKey
- The customer managed key that encrypt events on this event bus.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EventBusProps>
- Returns:
- a new instance of
EventBusProps
- Throws:
NullPointerException
- if any required attribute was not provided
-