public class TopicRulePayload extends Object implements Serializable, Cloneable
Describes a rule.
Constructor and Description |
---|
TopicRulePayload() |
Modifier and Type | Method and Description |
---|---|
TopicRulePayload |
clone() |
boolean |
equals(Object obj) |
List<Action> |
getActions()
The actions associated with the rule.
|
String |
getAwsIotSqlVersion()
The version of the SQL rules engine to use when evaluating the rule.
|
String |
getDescription()
The description of the rule.
|
Boolean |
getRuleDisabled()
Specifies whether the rule is disabled.
|
String |
getSql()
The SQL statement used to query the topic.
|
int |
hashCode() |
Boolean |
isRuleDisabled()
Specifies whether the rule is disabled.
|
void |
setActions(Collection<Action> actions)
The actions associated with the rule.
|
void |
setAwsIotSqlVersion(String awsIotSqlVersion)
The version of the SQL rules engine to use when evaluating the rule.
|
void |
setDescription(String description)
The description of the rule.
|
void |
setRuleDisabled(Boolean ruleDisabled)
Specifies whether the rule is disabled.
|
void |
setSql(String sql)
The SQL statement used to query the topic.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TopicRulePayload |
withActions(Action... actions)
The actions associated with the rule.
|
TopicRulePayload |
withActions(Collection<Action> actions)
The actions associated with the rule.
|
TopicRulePayload |
withAwsIotSqlVersion(String awsIotSqlVersion)
The version of the SQL rules engine to use when evaluating the rule.
|
TopicRulePayload |
withDescription(String description)
The description of the rule.
|
TopicRulePayload |
withRuleDisabled(Boolean ruleDisabled)
Specifies whether the rule is disabled.
|
TopicRulePayload |
withSql(String sql)
The SQL statement used to query the topic.
|
public void setSql(String sql)
The SQL statement used to query the topic. For more information, see AWS IoT SQL Reference in the AWS IoT Developer Guide.
sql
- The SQL statement used to query the topic. For more information,
see AWS IoT SQL Reference in the AWS IoT Developer Guide.public String getSql()
The SQL statement used to query the topic. For more information, see AWS IoT SQL Reference in the AWS IoT Developer Guide.
public TopicRulePayload withSql(String sql)
The SQL statement used to query the topic. For more information, see AWS IoT SQL Reference in the AWS IoT Developer Guide.
sql
- The SQL statement used to query the topic. For more information,
see AWS IoT SQL Reference in the AWS IoT Developer Guide.public void setDescription(String description)
The description of the rule.
description
- The description of the rule.public String getDescription()
The description of the rule.
public TopicRulePayload withDescription(String description)
The description of the rule.
description
- The description of the rule.public List<Action> getActions()
The actions associated with the rule.
public void setActions(Collection<Action> actions)
The actions associated with the rule.
actions
- The actions associated with the rule.public TopicRulePayload withActions(Action... actions)
The actions associated with the rule.
NOTE: This method appends the values to the existing list (if
any). Use setActions(java.util.Collection)
or
withActions(java.util.Collection)
if you want to override the
existing values.
actions
- The actions associated with the rule.public TopicRulePayload withActions(Collection<Action> actions)
The actions associated with the rule.
actions
- The actions associated with the rule.public void setRuleDisabled(Boolean ruleDisabled)
Specifies whether the rule is disabled.
ruleDisabled
- Specifies whether the rule is disabled.public Boolean getRuleDisabled()
Specifies whether the rule is disabled.
public TopicRulePayload withRuleDisabled(Boolean ruleDisabled)
Specifies whether the rule is disabled.
ruleDisabled
- Specifies whether the rule is disabled.public Boolean isRuleDisabled()
Specifies whether the rule is disabled.
public void setAwsIotSqlVersion(String awsIotSqlVersion)
The version of the SQL rules engine to use when evaluating the rule.
awsIotSqlVersion
- The version of the SQL rules engine to use when evaluating the
rule.public String getAwsIotSqlVersion()
The version of the SQL rules engine to use when evaluating the rule.
public TopicRulePayload withAwsIotSqlVersion(String awsIotSqlVersion)
The version of the SQL rules engine to use when evaluating the rule.
awsIotSqlVersion
- The version of the SQL rules engine to use when evaluating the
rule.public String toString()
toString
in class Object
Object.toString()
public TopicRulePayload clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.