Class HttpLambdaIntegrationProps.Builder
java.lang.Object
software.amazon.awscdk.aws_apigatewayv2_integrations.HttpLambdaIntegrationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HttpLambdaIntegrationProps>
- Enclosing interface:
HttpLambdaIntegrationProps
@Stability(Stable)
public static final class HttpLambdaIntegrationProps.Builder
extends Object
implements software.amazon.jsii.Builder<HttpLambdaIntegrationProps>
A builder for
HttpLambdaIntegrationProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.parameterMapping
(ParameterMapping parameterMapping) Sets the value ofHttpLambdaIntegrationProps.getParameterMapping()
payloadFormatVersion
(PayloadFormatVersion payloadFormatVersion) Sets the value ofHttpLambdaIntegrationProps.getPayloadFormatVersion()
Sets the value ofHttpLambdaIntegrationProps.getTimeout()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
parameterMapping
@Stability(Stable) public HttpLambdaIntegrationProps.Builder parameterMapping(ParameterMapping parameterMapping) Sets the value ofHttpLambdaIntegrationProps.getParameterMapping()
- Parameters:
parameterMapping
- Specifies how to transform HTTP requests before sending them to the backend.- Returns:
this
-
payloadFormatVersion
@Stability(Stable) public HttpLambdaIntegrationProps.Builder payloadFormatVersion(PayloadFormatVersion payloadFormatVersion) Sets the value ofHttpLambdaIntegrationProps.getPayloadFormatVersion()
- Parameters:
payloadFormatVersion
- Version of the payload sent to the lambda handler.- Returns:
this
-
timeout
Sets the value ofHttpLambdaIntegrationProps.getTimeout()
- Parameters:
timeout
- The maximum amount of time an integration will run before it returns without a response. Must be between 50 milliseconds and 29 seconds.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<HttpLambdaIntegrationProps>
- Returns:
- a new instance of
HttpLambdaIntegrationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-