Class CfnDetectorModel.LambdaProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotevents.CfnDetectorModel.LambdaProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDetectorModel.LambdaProperty>
- Enclosing interface:
CfnDetectorModel.LambdaProperty
@Stability(Stable)
public static final class CfnDetectorModel.LambdaProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDetectorModel.LambdaProperty>
A builder for
CfnDetectorModel.LambdaProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.functionArn
(String functionArn) Sets the value ofCfnDetectorModel.LambdaProperty.getFunctionArn()
payload
(IResolvable payload) Sets the value ofCfnDetectorModel.LambdaProperty.getPayload()
payload
(CfnDetectorModel.PayloadProperty payload) Sets the value ofCfnDetectorModel.LambdaProperty.getPayload()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
functionArn
Sets the value ofCfnDetectorModel.LambdaProperty.getFunctionArn()
- Parameters:
functionArn
- The ARN of the Lambda function that is executed. This parameter is required.- Returns:
this
-
payload
Sets the value ofCfnDetectorModel.LambdaProperty.getPayload()
- Parameters:
payload
- You can configure the action payload when you send a message to a Lambda function.- Returns:
this
-
payload
@Stability(Stable) public CfnDetectorModel.LambdaProperty.Builder payload(CfnDetectorModel.PayloadProperty payload) Sets the value ofCfnDetectorModel.LambdaProperty.getPayload()
- Parameters:
payload
- You can configure the action payload when you send a message to a Lambda function.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDetectorModel.LambdaProperty>
- Returns:
- a new instance of
CfnDetectorModel.LambdaProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-