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