public class TopicRule
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a rule.
Modifier and Type | Field and Description |
---|---|
private java.util.List<Action> |
actions
The actions associated with the rule.
|
private java.lang.String |
awsIotSqlVersion
The version of the SQL rules engine to use when evaluating the rule.
|
private java.util.Date |
createdAt
The date and time the rule was created.
|
private java.lang.String |
description
The description of the rule.
|
private java.lang.Boolean |
ruleDisabled
Specifies whether the rule is disabled.
|
private java.lang.String |
ruleName
The name of the rule.
|
private java.lang.String |
sql
The SQL statement used to query the topic.
|
Constructor and Description |
---|
TopicRule() |
Modifier and Type | Method and Description |
---|---|
TopicRule |
clone() |
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.util.Date |
getCreatedAt()
The date and time the rule was created.
|
java.lang.String |
getDescription()
The description of the rule.
|
java.lang.Boolean |
getRuleDisabled()
Specifies whether the rule is disabled.
|
java.lang.String |
getRuleName()
The name of the rule.
|
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 |
setCreatedAt(java.util.Date createdAt)
The date and time the rule was created.
|
void |
setDescription(java.lang.String description)
The description of the rule.
|
void |
setRuleDisabled(java.lang.Boolean ruleDisabled)
Specifies whether the rule is disabled.
|
void |
setRuleName(java.lang.String ruleName)
The name of the rule.
|
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.
|
TopicRule |
withActions(Action... actions)
The actions associated with the rule.
|
TopicRule |
withActions(java.util.Collection<Action> actions)
The actions associated with the rule.
|
TopicRule |
withAwsIotSqlVersion(java.lang.String awsIotSqlVersion)
The version of the SQL rules engine to use when evaluating the rule.
|
TopicRule |
withCreatedAt(java.util.Date createdAt)
The date and time the rule was created.
|
TopicRule |
withDescription(java.lang.String description)
The description of the rule.
|
TopicRule |
withRuleDisabled(java.lang.Boolean ruleDisabled)
Specifies whether the rule is disabled.
|
TopicRule |
withRuleName(java.lang.String ruleName)
The name of the rule.
|
TopicRule |
withSql(java.lang.String sql)
The SQL statement used to query the topic.
|
private java.lang.String ruleName
The name of the rule.
private java.lang.String sql
The SQL statement used to query the topic. When using a SQL query with multiple lines, be sure to escape the newline characters.
private java.lang.String description
The description of the rule.
private java.util.Date createdAt
The date and time the rule was created.
private java.util.List<Action> actions
The actions associated with the rule.
private java.lang.Boolean ruleDisabled
Specifies whether the rule is disabled.
private java.lang.String awsIotSqlVersion
The version of the SQL rules engine to use when evaluating the rule.
public void setRuleName(java.lang.String ruleName)
The name of the rule.
ruleName
- The name of the rule.public java.lang.String getRuleName()
The name of the rule.
public TopicRule withRuleName(java.lang.String ruleName)
The name of the rule.
ruleName
- The name of the rule.public void setSql(java.lang.String sql)
The SQL statement used to query the topic. When using a SQL query with multiple lines, be sure to escape the newline characters.
sql
- The SQL statement used to query the topic. When using a SQL query
with multiple lines, be sure to escape the newline characters.public java.lang.String getSql()
The SQL statement used to query the topic. When using a SQL query with multiple lines, be sure to escape the newline characters.
public TopicRule withSql(java.lang.String sql)
The SQL statement used to query the topic. When using a SQL query with multiple lines, be sure to escape the newline characters.
sql
- The SQL statement used to query the topic. When using a SQL query
with multiple lines, be sure to escape the newline characters.public void setDescription(java.lang.String description)
The description of the rule.
description
- The description of the rule.public java.lang.String getDescription()
The description of the rule.
public TopicRule withDescription(java.lang.String description)
The description of the rule.
description
- The description of the rule.public void setCreatedAt(java.util.Date createdAt)
The date and time the rule was created.
createdAt
- The date and time the rule was created.public java.util.Date getCreatedAt()
The date and time the rule was created.
public TopicRule withCreatedAt(java.util.Date createdAt)
The date and time the rule was created.
createdAt
- The date and time the rule was created.public java.util.List<Action> getActions()
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 TopicRule 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 TopicRule withActions(java.util.Collection<Action> actions)
The actions associated with the rule.
actions
- The actions associated with the rule.public void setRuleDisabled(java.lang.Boolean ruleDisabled)
Specifies whether the rule is disabled.
ruleDisabled
- Specifies whether the rule is disabled.public java.lang.Boolean getRuleDisabled()
Specifies whether the rule is disabled.
public TopicRule withRuleDisabled(java.lang.Boolean ruleDisabled)
Specifies whether the rule is disabled.
ruleDisabled
- Specifies whether the rule is disabled.public java.lang.Boolean isRuleDisabled()
Specifies whether the rule is disabled.
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 java.lang.String getAwsIotSqlVersion()
The version of the SQL rules engine to use when evaluating the rule.
public TopicRule withAwsIotSqlVersion(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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public TopicRule clone()
clone
in class java.lang.Object