public class TopicRulePayload
extends java.lang.Object
implements java.io.Serializable
Describes a rule.
Constructor and Description |
---|
TopicRulePayload() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<Action> |
getActions()
The actions associated with the rule.
|
java.lang.String |
getAwsIotSqlVersion()
The version of the SQL rules engine to use when evaluating the rule.
|
java.lang.String |
getDescription()
The description of the rule.
|
Action |
getErrorAction()
The action to take when an error occurs.
|
java.lang.Boolean |
getRuleDisabled()
Specifies whether the rule is disabled.
|
java.lang.String |
getSql()
The SQL statement used to query the topic.
|
int |
hashCode() |
java.lang.Boolean |
isRuleDisabled()
Specifies whether the rule is disabled.
|
void |
setActions(java.util.Collection<Action> actions)
The actions associated with the rule.
|
void |
setAwsIotSqlVersion(java.lang.String awsIotSqlVersion)
The version of the SQL rules engine to use when evaluating the rule.
|
void |
setDescription(java.lang.String description)
The description of the rule.
|
void |
setErrorAction(Action errorAction)
The action to take when an error occurs.
|
void |
setRuleDisabled(java.lang.Boolean ruleDisabled)
Specifies whether the rule is disabled.
|
void |
setSql(java.lang.String sql)
The SQL statement used to query the topic.
|
java.lang.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(java.util.Collection<Action> actions)
The actions associated with the rule.
|
TopicRulePayload |
withAwsIotSqlVersion(java.lang.String awsIotSqlVersion)
The version of the SQL rules engine to use when evaluating the rule.
|
TopicRulePayload |
withDescription(java.lang.String description)
The description of the rule.
|
TopicRulePayload |
withErrorAction(Action errorAction)
The action to take when an error occurs.
|
TopicRulePayload |
withRuleDisabled(java.lang.Boolean ruleDisabled)
Specifies whether the rule is disabled.
|
TopicRulePayload |
withSql(java.lang.String sql)
The SQL statement used to query the topic.
|
public java.lang.String getSql()
The SQL statement used to query the topic. For more information, see AWS IoT SQL Reference in the AWS IoT Developer Guide.
The SQL statement used to query the topic. For more information, see AWS IoT SQL Reference in the AWS IoT Developer Guide.
public void setSql(java.lang.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 TopicRulePayload withSql(java.lang.String sql)
The SQL statement used to query the topic. For more information, see AWS IoT SQL Reference in the AWS IoT Developer Guide.
Returns a reference to this object so that method calls can be chained together.
sql
- The SQL statement used to query the topic. For more information, see AWS IoT SQL Reference in the AWS IoT Developer Guide.
public java.lang.String getDescription()
The description of the rule.
The description of the rule.
public void setDescription(java.lang.String description)
The description of the rule.
description
- The description of the rule.
public TopicRulePayload withDescription(java.lang.String description)
The description of the rule.
Returns a reference to this object so that method calls can be chained together.
description
- The description of the rule.
public java.util.List<Action> getActions()
The actions associated with the rule.
The actions associated with the rule.
public void setActions(java.util.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.
Returns a reference to this object so that method calls can be chained together.
actions
- The actions associated with the rule.
public TopicRulePayload withActions(java.util.Collection<Action> actions)
The actions associated with the rule.
Returns a reference to this object so that method calls can be chained together.
actions
- The actions associated with the rule.
public java.lang.Boolean isRuleDisabled()
Specifies whether the rule is disabled.
Specifies whether the rule is disabled.
public java.lang.Boolean getRuleDisabled()
Specifies whether the rule is disabled.
Specifies whether the rule is disabled.
public void setRuleDisabled(java.lang.Boolean ruleDisabled)
Specifies whether the rule is disabled.
ruleDisabled
- Specifies whether the rule is disabled.
public TopicRulePayload withRuleDisabled(java.lang.Boolean ruleDisabled)
Specifies whether the rule is disabled.
Returns a reference to this object so that method calls can be chained together.
ruleDisabled
- Specifies whether the rule is disabled.
public java.lang.String getAwsIotSqlVersion()
The version of the SQL rules engine to use when evaluating the rule.
The version of the SQL rules engine to use when evaluating the rule.
public void setAwsIotSqlVersion(java.lang.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 TopicRulePayload withAwsIotSqlVersion(java.lang.String awsIotSqlVersion)
The version of the SQL rules engine to use when evaluating the rule.
Returns a reference to this object so that method calls can be chained together.
awsIotSqlVersion
- The version of the SQL rules engine to use when evaluating the rule.
public Action getErrorAction()
The action to take when an error occurs.
The action to take when an error occurs.
public void setErrorAction(Action errorAction)
The action to take when an error occurs.
errorAction
- The action to take when an error occurs.
public TopicRulePayload withErrorAction(Action errorAction)
The action to take when an error occurs.
Returns a reference to this object so that method calls can be chained together.
errorAction
- The action to take when an error occurs.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.