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