Class CfnDetectorModel.ActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotevents.CfnDetectorModel.ActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDetectorModel.ActionProperty>
- Enclosing interface:
CfnDetectorModel.ActionProperty
@Stability(Stable)
public static final class CfnDetectorModel.ActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDetectorModel.ActionProperty>
A builder for
CfnDetectorModel.ActionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.clearTimer
(IResolvable clearTimer) Sets the value ofCfnDetectorModel.ActionProperty.getClearTimer()
clearTimer
(CfnDetectorModel.ClearTimerProperty clearTimer) Sets the value ofCfnDetectorModel.ActionProperty.getClearTimer()
dynamoDb
(IResolvable dynamoDb) Sets the value ofCfnDetectorModel.ActionProperty.getDynamoDb()
dynamoDb
(CfnDetectorModel.DynamoDBProperty dynamoDb) Sets the value ofCfnDetectorModel.ActionProperty.getDynamoDb()
dynamoDBv2
(IResolvable dynamoDBv2) Sets the value ofCfnDetectorModel.ActionProperty.getDynamoDBv2()
dynamoDBv2
(CfnDetectorModel.DynamoDBv2Property dynamoDBv2) Sets the value ofCfnDetectorModel.ActionProperty.getDynamoDBv2()
firehose
(IResolvable firehose) Sets the value ofCfnDetectorModel.ActionProperty.getFirehose()
firehose
(CfnDetectorModel.FirehoseProperty firehose) Sets the value ofCfnDetectorModel.ActionProperty.getFirehose()
iotEvents
(IResolvable iotEvents) Sets the value ofCfnDetectorModel.ActionProperty.getIotEvents()
iotEvents
(CfnDetectorModel.IotEventsProperty iotEvents) Sets the value ofCfnDetectorModel.ActionProperty.getIotEvents()
iotSiteWise
(IResolvable iotSiteWise) Sets the value ofCfnDetectorModel.ActionProperty.getIotSiteWise()
iotSiteWise
(CfnDetectorModel.IotSiteWiseProperty iotSiteWise) Sets the value ofCfnDetectorModel.ActionProperty.getIotSiteWise()
iotTopicPublish
(IResolvable iotTopicPublish) Sets the value ofCfnDetectorModel.ActionProperty.getIotTopicPublish()
iotTopicPublish
(CfnDetectorModel.IotTopicPublishProperty iotTopicPublish) Sets the value ofCfnDetectorModel.ActionProperty.getIotTopicPublish()
lambda
(IResolvable lambda) Sets the value ofCfnDetectorModel.ActionProperty.getLambda()
Sets the value ofCfnDetectorModel.ActionProperty.getLambda()
resetTimer
(IResolvable resetTimer) Sets the value ofCfnDetectorModel.ActionProperty.getResetTimer()
resetTimer
(CfnDetectorModel.ResetTimerProperty resetTimer) Sets the value ofCfnDetectorModel.ActionProperty.getResetTimer()
setTimer
(IResolvable setTimer) Sets the value ofCfnDetectorModel.ActionProperty.getSetTimer()
setTimer
(CfnDetectorModel.SetTimerProperty setTimer) Sets the value ofCfnDetectorModel.ActionProperty.getSetTimer()
setVariable
(IResolvable setVariable) Sets the value ofCfnDetectorModel.ActionProperty.getSetVariable()
setVariable
(CfnDetectorModel.SetVariableProperty setVariable) Sets the value ofCfnDetectorModel.ActionProperty.getSetVariable()
sns
(IResolvable sns) Sets the value ofCfnDetectorModel.ActionProperty.getSns()
Sets the value ofCfnDetectorModel.ActionProperty.getSns()
sqs
(IResolvable sqs) Sets the value ofCfnDetectorModel.ActionProperty.getSqs()
Sets the value ofCfnDetectorModel.ActionProperty.getSqs()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clearTimer
@Stability(Stable) public CfnDetectorModel.ActionProperty.Builder clearTimer(IResolvable clearTimer) Sets the value ofCfnDetectorModel.ActionProperty.getClearTimer()
- Parameters:
clearTimer
- Information needed to clear the timer.- Returns:
this
-
clearTimer
@Stability(Stable) public CfnDetectorModel.ActionProperty.Builder clearTimer(CfnDetectorModel.ClearTimerProperty clearTimer) Sets the value ofCfnDetectorModel.ActionProperty.getClearTimer()
- Parameters:
clearTimer
- Information needed to clear the timer.- Returns:
this
-
dynamoDb
Sets the value ofCfnDetectorModel.ActionProperty.getDynamoDb()
- Parameters:
dynamoDb
- Writes to the DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can customize the payload . One column of the DynamoDB table receives all attribute-value pairs in the payload that you specify. For more information, see Actions in AWS IoT Events Developer Guide .- Returns:
this
-
dynamoDb
@Stability(Stable) public CfnDetectorModel.ActionProperty.Builder dynamoDb(CfnDetectorModel.DynamoDBProperty dynamoDb) Sets the value ofCfnDetectorModel.ActionProperty.getDynamoDb()
- Parameters:
dynamoDb
- Writes to the DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can customize the payload . One column of the DynamoDB table receives all attribute-value pairs in the payload that you specify. For more information, see Actions in AWS IoT Events Developer Guide .- Returns:
this
-
dynamoDBv2
@Stability(Stable) public CfnDetectorModel.ActionProperty.Builder dynamoDBv2(IResolvable dynamoDBv2) Sets the value ofCfnDetectorModel.ActionProperty.getDynamoDBv2()
- Parameters:
dynamoDBv2
- Writes to the DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can customize the payload . A separate column of the DynamoDB table receives one attribute-value pair in the payload that you specify. For more information, see Actions in AWS IoT Events Developer Guide .- Returns:
this
-
dynamoDBv2
@Stability(Stable) public CfnDetectorModel.ActionProperty.Builder dynamoDBv2(CfnDetectorModel.DynamoDBv2Property dynamoDBv2) Sets the value ofCfnDetectorModel.ActionProperty.getDynamoDBv2()
- Parameters:
dynamoDBv2
- Writes to the DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can customize the payload . A separate column of the DynamoDB table receives one attribute-value pair in the payload that you specify. For more information, see Actions in AWS IoT Events Developer Guide .- Returns:
this
-
firehose
Sets the value ofCfnDetectorModel.ActionProperty.getFirehose()
- Parameters:
firehose
- Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.- Returns:
this
-
firehose
@Stability(Stable) public CfnDetectorModel.ActionProperty.Builder firehose(CfnDetectorModel.FirehoseProperty firehose) Sets the value ofCfnDetectorModel.ActionProperty.getFirehose()
- Parameters:
firehose
- Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.- Returns:
this
-
iotEvents
Sets the value ofCfnDetectorModel.ActionProperty.getIotEvents()
- Parameters:
iotEvents
- Sends AWS IoT Events input, which passes information about the detector model instance and the event that triggered the action.- Returns:
this
-
iotEvents
@Stability(Stable) public CfnDetectorModel.ActionProperty.Builder iotEvents(CfnDetectorModel.IotEventsProperty iotEvents) Sets the value ofCfnDetectorModel.ActionProperty.getIotEvents()
- Parameters:
iotEvents
- Sends AWS IoT Events input, which passes information about the detector model instance and the event that triggered the action.- Returns:
this
-
iotSiteWise
@Stability(Stable) public CfnDetectorModel.ActionProperty.Builder iotSiteWise(IResolvable iotSiteWise) Sets the value ofCfnDetectorModel.ActionProperty.getIotSiteWise()
- Parameters:
iotSiteWise
- Sends information about the detector model instance and the event that triggered the action to an asset property in AWS IoT SiteWise .- Returns:
this
-
iotSiteWise
@Stability(Stable) public CfnDetectorModel.ActionProperty.Builder iotSiteWise(CfnDetectorModel.IotSiteWiseProperty iotSiteWise) Sets the value ofCfnDetectorModel.ActionProperty.getIotSiteWise()
- Parameters:
iotSiteWise
- Sends information about the detector model instance and the event that triggered the action to an asset property in AWS IoT SiteWise .- Returns:
this
-
iotTopicPublish
@Stability(Stable) public CfnDetectorModel.ActionProperty.Builder iotTopicPublish(IResolvable iotTopicPublish) Sets the value ofCfnDetectorModel.ActionProperty.getIotTopicPublish()
- Parameters:
iotTopicPublish
- Publishes an MQTT message with the given topic to the AWS IoT message broker.- Returns:
this
-
iotTopicPublish
@Stability(Stable) public CfnDetectorModel.ActionProperty.Builder iotTopicPublish(CfnDetectorModel.IotTopicPublishProperty iotTopicPublish) Sets the value ofCfnDetectorModel.ActionProperty.getIotTopicPublish()
- Parameters:
iotTopicPublish
- Publishes an MQTT message with the given topic to the AWS IoT message broker.- Returns:
this
-
lambda
Sets the value ofCfnDetectorModel.ActionProperty.getLambda()
- Parameters:
lambda
- Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action.- Returns:
this
-
lambda
@Stability(Stable) public CfnDetectorModel.ActionProperty.Builder lambda(CfnDetectorModel.LambdaProperty lambda) Sets the value ofCfnDetectorModel.ActionProperty.getLambda()
- Parameters:
lambda
- Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action.- Returns:
this
-
resetTimer
@Stability(Stable) public CfnDetectorModel.ActionProperty.Builder resetTimer(IResolvable resetTimer) Sets the value ofCfnDetectorModel.ActionProperty.getResetTimer()
- Parameters:
resetTimer
- Information needed to reset the timer.- Returns:
this
-
resetTimer
@Stability(Stable) public CfnDetectorModel.ActionProperty.Builder resetTimer(CfnDetectorModel.ResetTimerProperty resetTimer) Sets the value ofCfnDetectorModel.ActionProperty.getResetTimer()
- Parameters:
resetTimer
- Information needed to reset the timer.- Returns:
this
-
setTimer
Sets the value ofCfnDetectorModel.ActionProperty.getSetTimer()
- Parameters:
setTimer
- Information needed to set the timer.- Returns:
this
-
setTimer
@Stability(Stable) public CfnDetectorModel.ActionProperty.Builder setTimer(CfnDetectorModel.SetTimerProperty setTimer) Sets the value ofCfnDetectorModel.ActionProperty.getSetTimer()
- Parameters:
setTimer
- Information needed to set the timer.- Returns:
this
-
setVariable
@Stability(Stable) public CfnDetectorModel.ActionProperty.Builder setVariable(IResolvable setVariable) Sets the value ofCfnDetectorModel.ActionProperty.getSetVariable()
- Parameters:
setVariable
- Sets a variable to a specified value.- Returns:
this
-
setVariable
@Stability(Stable) public CfnDetectorModel.ActionProperty.Builder setVariable(CfnDetectorModel.SetVariableProperty setVariable) Sets the value ofCfnDetectorModel.ActionProperty.getSetVariable()
- Parameters:
setVariable
- Sets a variable to a specified value.- Returns:
this
-
sns
Sets the value ofCfnDetectorModel.ActionProperty.getSns()
- Parameters:
sns
- Sends an Amazon SNS message.- Returns:
this
-
sns
@Stability(Stable) public CfnDetectorModel.ActionProperty.Builder sns(CfnDetectorModel.SnsProperty sns) Sets the value ofCfnDetectorModel.ActionProperty.getSns()
- Parameters:
sns
- Sends an Amazon SNS message.- Returns:
this
-
sqs
Sets the value ofCfnDetectorModel.ActionProperty.getSqs()
- Parameters:
sqs
- Sends an Amazon SNS message.- Returns:
this
-
sqs
@Stability(Stable) public CfnDetectorModel.ActionProperty.Builder sqs(CfnDetectorModel.SqsProperty sqs) Sets the value ofCfnDetectorModel.ActionProperty.getSqs()
- Parameters:
sqs
- Sends an Amazon SNS message.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDetectorModel.ActionProperty>
- Returns:
- a new instance of
CfnDetectorModel.ActionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-