Class LambdaRuntimeProps.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.LambdaRuntimeProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LambdaRuntimeProps>
- Enclosing interface:
LambdaRuntimeProps
@Stability(Stable)
public static final class LambdaRuntimeProps.Builder
extends Object
implements software.amazon.jsii.Builder<LambdaRuntimeProps>
A builder for
LambdaRuntimeProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.bundlingDockerImage(String bundlingDockerImage) Sets the value ofLambdaRuntimeProps.getBundlingDockerImage()isVariable(Boolean isVariable) Sets the value ofLambdaRuntimeProps.getIsVariable()supportsCodeGuruProfiling(Boolean supportsCodeGuruProfiling) Sets the value ofLambdaRuntimeProps.getSupportsCodeGuruProfiling()supportsInlineCode(Boolean supportsInlineCode) Sets the value ofLambdaRuntimeProps.getSupportsInlineCode()supportsSnapStart(Boolean supportsSnapStart) Sets the value ofLambdaRuntimeProps.getSupportsSnapStart()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bundlingDockerImage
@Stability(Stable) public LambdaRuntimeProps.Builder bundlingDockerImage(String bundlingDockerImage) Sets the value ofLambdaRuntimeProps.getBundlingDockerImage()- Parameters:
bundlingDockerImage- The Docker image name to be used for bundling in this runtime.- Returns:
this
-
isVariable
Sets the value ofLambdaRuntimeProps.getIsVariable()- Parameters:
isVariable- Whether the runtime enum is meant to change over time, IE NODEJS_LATEST.- Returns:
this
-
supportsCodeGuruProfiling
@Stability(Stable) public LambdaRuntimeProps.Builder supportsCodeGuruProfiling(Boolean supportsCodeGuruProfiling) Sets the value ofLambdaRuntimeProps.getSupportsCodeGuruProfiling()- Parameters:
supportsCodeGuruProfiling- Whether this runtime is integrated with and supported for profiling using Amazon CodeGuru Profiler.- Returns:
this
-
supportsInlineCode
Sets the value ofLambdaRuntimeProps.getSupportsInlineCode()- Parameters:
supportsInlineCode- Whether theZipFile(aka inline code) property can be used with this runtime.- Returns:
this
-
supportsSnapStart
Sets the value ofLambdaRuntimeProps.getSupportsSnapStart()- Parameters:
supportsSnapStart- Whether this runtime supports SnapStart.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LambdaRuntimeProps>- Returns:
- a new instance of
LambdaRuntimeProps - Throws:
NullPointerException- if any required attribute was not provided
-