public class TopicRule extends Object implements Serializable
Describes a rule.
| Constructor and Description |
|---|
TopicRule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<Action> |
getActions()
The actions associated with the rule.
|
Date |
getCreatedAt()
The date and time the rule was created.
|
String |
getDescription()
The description of the rule.
|
Boolean |
getRuleDisabled()
Specifies whether the rule is disabled.
|
String |
getRuleName()
The name of the rule.
|
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 |
setCreatedAt(Date createdAt)
The date and time the rule was created.
|
void |
setDescription(String description)
The description of the rule.
|
void |
setRuleDisabled(Boolean ruleDisabled)
Specifies whether the rule is disabled.
|
void |
setRuleName(String ruleName)
The name of the rule.
|
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.
|
TopicRule |
withActions(Action... actions)
The actions associated with the rule.
|
TopicRule |
withActions(Collection<Action> actions)
The actions associated with the rule.
|
TopicRule |
withCreatedAt(Date createdAt)
The date and time the rule was created.
|
TopicRule |
withDescription(String description)
The description of the rule.
|
TopicRule |
withRuleDisabled(Boolean ruleDisabled)
Specifies whether the rule is disabled.
|
TopicRule |
withRuleName(String ruleName)
The name of the rule.
|
TopicRule |
withSql(String sql)
The SQL statement used to query the topic.
|
public String getRuleName()
Constraints:
Length: 1 - 128
Pattern: ^[a-zA-Z0-9_]+$
public void setRuleName(String ruleName)
Constraints:
Length: 1 - 128
Pattern: ^[a-zA-Z0-9_]+$
ruleName - The name of the rule.public TopicRule withRuleName(String ruleName)
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 String getSql()
public void setSql(String sql)
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(String sql)
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 String getDescription()
public void setDescription(String description)
description - The description of the rule.public TopicRule withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
description - The description of the rule.public Date getCreatedAt()
public void setCreatedAt(Date createdAt)
createdAt - The date and time the rule was created.public TopicRule withCreatedAt(Date createdAt)
Returns a reference to this object so that method calls can be chained together.
createdAt - The date and time the rule was created.public List<Action> getActions()
Constraints:
Length: 0 - 10
public void setActions(Collection<Action> actions)
Constraints:
Length: 0 - 10
actions - The actions associated with the rule.public TopicRule withActions(Action... actions)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 10
actions - The actions associated with the rule.public TopicRule withActions(Collection<Action> actions)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 10
actions - The actions associated with the rule.public Boolean isRuleDisabled()
public void setRuleDisabled(Boolean ruleDisabled)
ruleDisabled - Specifies whether the rule is disabled.public TopicRule withRuleDisabled(Boolean ruleDisabled)
Returns a reference to this object so that method calls can be chained together.
ruleDisabled - Specifies whether the rule is disabled.public Boolean getRuleDisabled()
public String toString()
toString in class ObjectObject.toString()Copyright © 2016. All rights reserved.