Class FunctionProps.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.FunctionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<FunctionProps>
- Enclosing interface:
- FunctionProps
@Stability(Stable)
public static final class FunctionProps.Builder
extends Object
implements software.amazon.jsii.Builder<FunctionProps>
A builder for
FunctionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.code
(FunctionCode code) Sets the value ofFunctionProps.getCode()
Sets the value ofFunctionProps.getComment()
functionName
(String functionName) Sets the value ofFunctionProps.getFunctionName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
code
Sets the value ofFunctionProps.getCode()
- Parameters:
code
- The source code of the function. This parameter is required.- Returns:
this
-
comment
Sets the value ofFunctionProps.getComment()
- Parameters:
comment
- A comment to describe the function.- Returns:
this
-
functionName
Sets the value ofFunctionProps.getFunctionName()
- Parameters:
functionName
- A name to identify the function.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<FunctionProps>
- Returns:
- a new instance of
FunctionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-