Class FunctionAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.FunctionAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<FunctionAttributes>
- Enclosing interface:
FunctionAttributes
@Stability(Stable)
public static final class FunctionAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<FunctionAttributes>
A builder for
FunctionAttributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.functionArn(String functionArn) Sets the value ofFunctionAttributes.getFunctionArn()functionName(String functionName) Sets the value ofFunctionAttributes.getFunctionName()functionRuntime(String functionRuntime) Sets the value ofFunctionAttributes.getFunctionRuntime()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
functionArn
Sets the value ofFunctionAttributes.getFunctionArn()- Parameters:
functionArn- The ARN of the function. This parameter is required.- Returns:
this
-
functionName
Sets the value ofFunctionAttributes.getFunctionName()- Parameters:
functionName- The name of the function. This parameter is required.- Returns:
this
-
functionRuntime
Sets the value ofFunctionAttributes.getFunctionRuntime()- Parameters:
functionRuntime- The Runtime of the function.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<FunctionAttributes>- Returns:
- a new instance of
FunctionAttributes - Throws:
NullPointerException- if any required attribute was not provided
-