Class CfnVersion.RuntimePolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnVersion.RuntimePolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVersion.RuntimePolicyProperty>
- Enclosing interface:
CfnVersion.RuntimePolicyProperty
@Stability(Stable)
public static final class CfnVersion.RuntimePolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVersion.RuntimePolicyProperty>
A builder for
CfnVersion.RuntimePolicyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.runtimeVersionArn(String runtimeVersionArn) Sets the value ofCfnVersion.RuntimePolicyProperty.getRuntimeVersionArn()updateRuntimeOn(String updateRuntimeOn) Sets the value ofCfnVersion.RuntimePolicyProperty.getUpdateRuntimeOn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
updateRuntimeOn
@Stability(Stable) public CfnVersion.RuntimePolicyProperty.Builder updateRuntimeOn(String updateRuntimeOn) Sets the value ofCfnVersion.RuntimePolicyProperty.getUpdateRuntimeOn()- Parameters:
updateRuntimeOn- The runtime update mode. This parameter is required.- Returns:
this
-
runtimeVersionArn
@Stability(Stable) public CfnVersion.RuntimePolicyProperty.Builder runtimeVersionArn(String runtimeVersionArn) Sets the value ofCfnVersion.RuntimePolicyProperty.getRuntimeVersionArn()- Parameters:
runtimeVersionArn- The ARN of the runtime the function is configured to use. If the runtime update mode is manual, the ARN is returned, otherwise null is returned.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVersion.RuntimePolicyProperty>- Returns:
- a new instance of
CfnVersion.RuntimePolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-