Class CfnTopicRule.TopicRulePayloadProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnTopicRule.TopicRulePayloadProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicRule.TopicRulePayloadProperty>
- Enclosing interface:
CfnTopicRule.TopicRulePayloadProperty
@Stability(Stable)
public static final class CfnTopicRule.TopicRulePayloadProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopicRule.TopicRulePayloadProperty>
A builder for
CfnTopicRule.TopicRulePayloadProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnTopicRule.TopicRulePayloadProperty.getActions()actions(IResolvable actions) Sets the value ofCfnTopicRule.TopicRulePayloadProperty.getActions()awsIotSqlVersion(String awsIotSqlVersion) Sets the value ofCfnTopicRule.TopicRulePayloadProperty.getAwsIotSqlVersion()build()Builds the configured instance.description(String description) Sets the value ofCfnTopicRule.TopicRulePayloadProperty.getDescription()errorAction(IResolvable errorAction) Sets the value ofCfnTopicRule.TopicRulePayloadProperty.getErrorAction()errorAction(CfnTopicRule.ActionProperty errorAction) Sets the value ofCfnTopicRule.TopicRulePayloadProperty.getErrorAction()ruleDisabled(Boolean ruleDisabled) Sets the value ofCfnTopicRule.TopicRulePayloadProperty.getRuleDisabled()ruleDisabled(IResolvable ruleDisabled) Sets the value ofCfnTopicRule.TopicRulePayloadProperty.getRuleDisabled()Sets the value ofCfnTopicRule.TopicRulePayloadProperty.getSql()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actions
@Stability(Stable) public CfnTopicRule.TopicRulePayloadProperty.Builder actions(IResolvable actions) Sets the value ofCfnTopicRule.TopicRulePayloadProperty.getActions()- Parameters:
actions- The actions associated with the rule. This parameter is required.- Returns:
this
-
actions
@Stability(Stable) public CfnTopicRule.TopicRulePayloadProperty.Builder actions(List<? extends Object> actions) Sets the value ofCfnTopicRule.TopicRulePayloadProperty.getActions()- Parameters:
actions- The actions associated with the rule. This parameter is required.- Returns:
this
-
sql
Sets the value ofCfnTopicRule.TopicRulePayloadProperty.getSql()- Parameters:
sql- The SQL statement used to query the topic. This parameter is required. For more information, see AWS IoT SQL Reference in the AWS IoT Developer Guide .- Returns:
this
-
awsIotSqlVersion
@Stability(Stable) public CfnTopicRule.TopicRulePayloadProperty.Builder awsIotSqlVersion(String awsIotSqlVersion) Sets the value ofCfnTopicRule.TopicRulePayloadProperty.getAwsIotSqlVersion()- Parameters:
awsIotSqlVersion- The version of the SQL rules engine to use when evaluating the rule. The default value is 2015-10-08.- Returns:
this
-
description
@Stability(Stable) public CfnTopicRule.TopicRulePayloadProperty.Builder description(String description) Sets the value ofCfnTopicRule.TopicRulePayloadProperty.getDescription()- Parameters:
description- The description of the rule.- Returns:
this
-
errorAction
@Stability(Stable) public CfnTopicRule.TopicRulePayloadProperty.Builder errorAction(IResolvable errorAction) Sets the value ofCfnTopicRule.TopicRulePayloadProperty.getErrorAction()- Parameters:
errorAction- The action to take when an error occurs.- Returns:
this
-
errorAction
@Stability(Stable) public CfnTopicRule.TopicRulePayloadProperty.Builder errorAction(CfnTopicRule.ActionProperty errorAction) Sets the value ofCfnTopicRule.TopicRulePayloadProperty.getErrorAction()- Parameters:
errorAction- The action to take when an error occurs.- Returns:
this
-
ruleDisabled
@Stability(Stable) public CfnTopicRule.TopicRulePayloadProperty.Builder ruleDisabled(Boolean ruleDisabled) Sets the value ofCfnTopicRule.TopicRulePayloadProperty.getRuleDisabled()- Parameters:
ruleDisabled- Specifies whether the rule is disabled.- Returns:
this
-
ruleDisabled
@Stability(Stable) public CfnTopicRule.TopicRulePayloadProperty.Builder ruleDisabled(IResolvable ruleDisabled) Sets the value ofCfnTopicRule.TopicRulePayloadProperty.getRuleDisabled()- Parameters:
ruleDisabled- Specifies whether the rule is disabled.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTopicRule.TopicRulePayloadProperty>- Returns:
- a new instance of
CfnTopicRule.TopicRulePayloadProperty - Throws:
NullPointerException- if any required attribute was not provided
-