Class HttpEventBridgeIntegrationProps.Builder
java.lang.Object
software.amazon.awscdk.aws_apigatewayv2_integrations.HttpEventBridgeIntegrationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HttpEventBridgeIntegrationProps>
- Enclosing interface:
HttpEventBridgeIntegrationProps
@Stability(Stable)
public static final class HttpEventBridgeIntegrationProps.Builder
extends Object
implements software.amazon.jsii.Builder<HttpEventBridgeIntegrationProps>
A builder for
HttpEventBridgeIntegrationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.eventBusRef(EventBusReference eventBusRef) Sets the value ofHttpEventBridgeIntegrationProps.getEventBusRef()parameterMapping(ParameterMapping parameterMapping) Sets the value ofHttpEventBridgeIntegrationProps.getParameterMapping()subtype(HttpIntegrationSubtype subtype) Sets the value ofHttpEventBridgeIntegrationProps.getSubtype()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
eventBusRef
@Stability(Stable) public HttpEventBridgeIntegrationProps.Builder eventBusRef(EventBusReference eventBusRef) Sets the value ofHttpEventBridgeIntegrationProps.getEventBusRef()- Parameters:
eventBusRef- EventBridge event bus that integrates with API Gateway. This parameter is required.- Returns:
this
-
parameterMapping
@Stability(Stable) public HttpEventBridgeIntegrationProps.Builder parameterMapping(ParameterMapping parameterMapping) Sets the value ofHttpEventBridgeIntegrationProps.getParameterMapping()- Parameters:
parameterMapping- Specifies how to transform HTTP requests before sending them to the backend. When not provided, a default mapping will be used that expects the incoming request body to contain the fieldsDetail,DetailType, andSource.- Returns:
this
-
subtype
@Stability(Stable) public HttpEventBridgeIntegrationProps.Builder subtype(HttpIntegrationSubtype subtype) Sets the value ofHttpEventBridgeIntegrationProps.getSubtype()- Parameters:
subtype- The subtype of the HTTP integration. Only subtypes starting with EVENTBRIDGE_ can be specified.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<HttpEventBridgeIntegrationProps>- Returns:
- a new instance of
HttpEventBridgeIntegrationProps - Throws:
NullPointerException- if any required attribute was not provided
-