Class CfnFunction.FunctionConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnFunction.FunctionConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunction.FunctionConfigProperty>
- Enclosing interface:
- CfnFunction.FunctionConfigProperty
@Stability(Stable)
public static final class CfnFunction.FunctionConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFunction.FunctionConfigProperty>
A builder for
CfnFunction.FunctionConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnFunction.FunctionConfigProperty.getComment()Sets the value ofCfnFunction.FunctionConfigProperty.getRuntime()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
comment
Sets the value ofCfnFunction.FunctionConfigProperty.getComment()- Parameters:
comment- A comment to describe the function. This parameter is required.- Returns:
this
-
runtime
Sets the value ofCfnFunction.FunctionConfigProperty.getRuntime()- Parameters:
runtime- The function's runtime environment. This parameter is required. The only valid value iscloudfront-js-1.0.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFunction.FunctionConfigProperty>- Returns:
- a new instance of
CfnFunction.FunctionConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-