Class CfnAlarmModel.DynamoDBv2Property.Builder
java.lang.Object
software.amazon.awscdk.services.iotevents.CfnAlarmModel.DynamoDBv2Property.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlarmModel.DynamoDBv2Property>
- Enclosing interface:
CfnAlarmModel.DynamoDBv2Property
@Stability(Stable)
public static final class CfnAlarmModel.DynamoDBv2Property.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAlarmModel.DynamoDBv2Property>
A builder for
CfnAlarmModel.DynamoDBv2Property
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.payload
(IResolvable payload) Sets the value ofCfnAlarmModel.DynamoDBv2Property.getPayload()
payload
(CfnAlarmModel.PayloadProperty payload) Sets the value ofCfnAlarmModel.DynamoDBv2Property.getPayload()
Sets the value ofCfnAlarmModel.DynamoDBv2Property.getTableName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
tableName
Sets the value ofCfnAlarmModel.DynamoDBv2Property.getTableName()
- Parameters:
tableName
- The name of the DynamoDB table. This parameter is required.- Returns:
this
-
payload
Sets the value ofCfnAlarmModel.DynamoDBv2Property.getPayload()
- Parameters:
payload
- Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can usecontentExpression
.- Returns:
this
-
payload
@Stability(Stable) public CfnAlarmModel.DynamoDBv2Property.Builder payload(CfnAlarmModel.PayloadProperty payload) Sets the value ofCfnAlarmModel.DynamoDBv2Property.getPayload()
- Parameters:
payload
- Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can usecontentExpression
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAlarmModel.DynamoDBv2Property>
- Returns:
- a new instance of
CfnAlarmModel.DynamoDBv2Property
- Throws:
NullPointerException
- if any required attribute was not provided
-