Class CfnAlarmModel.LambdaProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotevents.CfnAlarmModel.LambdaProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlarmModel.LambdaProperty>
- Enclosing interface:
CfnAlarmModel.LambdaProperty
@Stability(Stable)
public static final class CfnAlarmModel.LambdaProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAlarmModel.LambdaProperty>
A builder for
CfnAlarmModel.LambdaProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.functionArn
(String functionArn) Sets the value ofCfnAlarmModel.LambdaProperty.getFunctionArn()
payload
(IResolvable payload) Sets the value ofCfnAlarmModel.LambdaProperty.getPayload()
payload
(CfnAlarmModel.PayloadProperty payload) Sets the value ofCfnAlarmModel.LambdaProperty.getPayload()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
functionArn
Sets the value ofCfnAlarmModel.LambdaProperty.getFunctionArn()
- Parameters:
functionArn
- The ARN of the Lambda function that is executed. This parameter is required.- Returns:
this
-
payload
Sets the value ofCfnAlarmModel.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 CfnAlarmModel.LambdaProperty.Builder payload(CfnAlarmModel.PayloadProperty payload) Sets the value ofCfnAlarmModel.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<CfnAlarmModel.LambdaProperty>
- Returns:
- a new instance of
CfnAlarmModel.LambdaProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-