Class CfnFunctionPropsMixin.SnapStartResponseProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lambda.CfnFunctionPropsMixin.SnapStartResponseProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunctionPropsMixin.SnapStartResponseProperty>
- Enclosing interface:
CfnFunctionPropsMixin.SnapStartResponseProperty
@Stability(Stable)
public static final class CfnFunctionPropsMixin.SnapStartResponseProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFunctionPropsMixin.SnapStartResponseProperty>
A builder for
CfnFunctionPropsMixin.SnapStartResponseProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnFunctionPropsMixin.SnapStartResponseProperty.getApplyOn()build()Builds the configured instance.optimizationStatus(String optimizationStatus) Sets the value ofCfnFunctionPropsMixin.SnapStartResponseProperty.getOptimizationStatus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
applyOn
@Stability(Stable) public CfnFunctionPropsMixin.SnapStartResponseProperty.Builder applyOn(String applyOn) Sets the value ofCfnFunctionPropsMixin.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 CfnFunctionPropsMixin.SnapStartResponseProperty.Builder optimizationStatus(String optimizationStatus) Sets the value ofCfnFunctionPropsMixin.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnFunctionPropsMixin.SnapStartResponseProperty>- Returns:
- a new instance of
CfnFunctionPropsMixin.SnapStartResponseProperty - Throws:
NullPointerException- if any required attribute was not provided
-