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