Class TopicRuleProps.Builder
java.lang.Object
software.amazon.awscdk.services.iot.TopicRuleProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TopicRuleProps>
- Enclosing interface:
- TopicRuleProps
@Stability(Experimental)
public static final class TopicRuleProps.Builder
extends Object
implements software.amazon.jsii.Builder<TopicRuleProps>
A builder for
TopicRuleProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofTopicRuleProps.getActions()
build()
Builds the configured instance.description
(String description) Sets the value ofTopicRuleProps.getDescription()
Sets the value ofTopicRuleProps.getEnabled()
errorAction
(IAction errorAction) Sets the value ofTopicRuleProps.getErrorAction()
Sets the value ofTopicRuleProps.getSql()
topicRuleName
(String topicRuleName) Sets the value ofTopicRuleProps.getTopicRuleName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sql
Sets the value ofTopicRuleProps.getSql()
- Parameters:
sql
- A simplified SQL syntax to filter messages received on an MQTT topic and push the data elsewhere. This parameter is required.- Returns:
this
-
actions
Sets the value ofTopicRuleProps.getActions()
- Parameters:
actions
- The actions associated with the topic rule.- Returns:
this
-
description
Sets the value ofTopicRuleProps.getDescription()
- Parameters:
description
- A textual description of the topic rule.- Returns:
this
-
enabled
Sets the value ofTopicRuleProps.getEnabled()
- Parameters:
enabled
- Specifies whether the rule is enabled.- Returns:
this
-
errorAction
Sets the value ofTopicRuleProps.getErrorAction()
- Parameters:
errorAction
- The action AWS IoT performs when it is unable to perform a rule's action.- Returns:
this
-
topicRuleName
Sets the value ofTopicRuleProps.getTopicRuleName()
- Parameters:
topicRuleName
- The name of the topic rule.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<TopicRuleProps>
- Returns:
- a new instance of
TopicRuleProps
- Throws:
NullPointerException
- if any required attribute was not provided
-