public class TopicRule
extends java.lang.Object
implements java.io.Serializable
Describes a rule.
Constructor and Description |
---|
TopicRule() |
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.util.Date |
getCreatedAt()
The date and time the rule was created.
|
java.lang.String |
getDescription()
The description of the rule.
|
Action |
getErrorAction()
The action to perform when an error occurs.
|
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 |
setErrorAction(Action errorAction)
The action to perform when an error occurs.
|
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 |
withErrorAction(Action errorAction)
The action to perform when an error occurs.
|
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.
|
public java.lang.String getRuleName()
The name of the rule.
Constraints:
Length: 1 - 128
Pattern: ^[a-zA-Z0-9_]+$
The name of the rule.
public void setRuleName(java.lang.String ruleName)
The name of the rule.
Constraints:
Length: 1 - 128
Pattern: ^[a-zA-Z0-9_]+$
ruleName
- The name of the rule.
public TopicRule withRuleName(java.lang.String ruleName)
The name of the rule.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: ^[a-zA-Z0-9_]+$
ruleName
- The name of the rule.
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.
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 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 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.
Returns a reference to this object so that method calls can be chained together.
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 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 TopicRule 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.Date getCreatedAt()
The date and time the rule was created.
The date and time the rule was created.
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 TopicRule withCreatedAt(java.util.Date createdAt)
The date and time the rule was created.
Returns a reference to this object so that method calls can be chained together.
createdAt
- The date and time the rule was created.
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 TopicRule 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 TopicRule 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 TopicRule 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 TopicRule 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 perform when an error occurs.
The action to perform when an error occurs.
public void setErrorAction(Action errorAction)
The action to perform when an error occurs.
errorAction
- The action to perform when an error occurs.
public TopicRule withErrorAction(Action errorAction)
The action to perform when an error occurs.
Returns a reference to this object so that method calls can be chained together.
errorAction
- The action to perform 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.