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