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