@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TopicRule extends Object implements Serializable, Cloneable, StructuredPojo
Describes a rule.
Constructor and Description |
---|
TopicRule() |
Modifier and Type | Method and Description |
---|---|
TopicRule |
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.
|
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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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 |
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 |
withAwsIotSqlVersion(String awsIotSqlVersion)
The version of the SQL rules engine to use when evaluating 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 void setRuleName(String ruleName)
The name of the rule.
ruleName
- The name of the rule.public String getRuleName()
The name of the rule.
public TopicRule withRuleName(String ruleName)
The name of the rule.
ruleName
- The name of the rule.public void setSql(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 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(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(String description)
The description of the rule.
description
- The description of the rule.public String getDescription()
The description of the rule.
public TopicRule withDescription(String description)
The description of the rule.
description
- The description of the rule.public void setCreatedAt(Date createdAt)
The date and time the rule was created.
createdAt
- The date and time the rule was created.public Date getCreatedAt()
The date and time the rule was created.
public TopicRule withCreatedAt(Date createdAt)
The date and time the rule was created.
createdAt
- The date and time the rule was created.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 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(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 TopicRule 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 TopicRule 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 void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.