Class ApiLambdaFunction.Builder
java.lang.Object
software.amazon.awsconstructs.services.openapigatewaylambda.ApiLambdaFunction.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ApiLambdaFunction>
- Enclosing interface:
ApiLambdaFunction
public static final class ApiLambdaFunction.Builder
extends Object
implements software.amazon.jsii.Builder<ApiLambdaFunction>
A builder for
ApiLambdaFunction-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofApiLambdaFunction.getId()lambdaFunction(software.amazon.awscdk.services.lambda.Function lambdaFunction) Sets the value ofApiLambdaFunction.getLambdaFunction()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Sets the value ofApiLambdaFunction.getId()- Parameters:
id- Id of the ApiIntegration, used to correlate this lambda function to the api integration in the open api definition. This parameter is required.- Returns:
this
-
lambdaFunction
public ApiLambdaFunction.Builder lambdaFunction(software.amazon.awscdk.services.lambda.Function lambdaFunction) Sets the value ofApiLambdaFunction.getLambdaFunction()- Parameters:
lambdaFunction- The instantiated lambda.Function. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ApiLambdaFunction>- Returns:
- a new instance of
ApiLambdaFunction - Throws:
NullPointerException- if any required attribute was not provided
-