Class CfnFunction.SnapStartResponseProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnFunction.SnapStartResponseProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunction.SnapStartResponseProperty>
- Enclosing interface:
CfnFunction.SnapStartResponseProperty
@Stability(Stable)
public static final class CfnFunction.SnapStartResponseProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFunction.SnapStartResponseProperty>
A builder for
CfnFunction.SnapStartResponseProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnFunction.SnapStartResponseProperty.getApplyOn()
build()
Builds the configured instance.optimizationStatus
(String optimizationStatus) Sets the value ofCfnFunction.SnapStartResponseProperty.getOptimizationStatus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
applyOn
Sets the value ofCfnFunction.SnapStartResponseProperty.getApplyOn()
- Parameters:
applyOn
- When set toPublishedVersions
, Lambda creates a snapshot of the execution environment when you publish a function version.- Returns:
this
-
optimizationStatus
@Stability(Stable) public CfnFunction.SnapStartResponseProperty.Builder optimizationStatus(String optimizationStatus) Sets the value ofCfnFunction.SnapStartResponseProperty.getOptimizationStatus()
- Parameters:
optimizationStatus
- When you provide a qualified Amazon Resource Name (ARN) , this response element indicates whether SnapStart is activated for the specified function version.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFunction.SnapStartResponseProperty>
- Returns:
- a new instance of
CfnFunction.SnapStartResponseProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-