@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TopicRulePayload extends Object implements Serializable, Cloneable, StructuredPojo
Describes a rule.
Constructor and Description |
---|
TopicRulePayload() |
Modifier and Type | Method and Description |
---|---|
TopicRulePayload |
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.
|
String |
getDescription()
The description of the rule.
|
Action |
getErrorAction()
The action to take when an error occurs.
|
Boolean |
getRuleDisabled()
Specifies whether the rule is disabled.
|
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 |
setDescription(String description)
The description of the rule.
|
void |
setErrorAction(Action errorAction)
The action to take when an error occurs.
|
void |
setRuleDisabled(Boolean ruleDisabled)
Specifies whether the rule is disabled.
|
void |
setSql(String sql)
The SQL statement used to query the topic.
|
String |
toString()
Returns a string representation of this object.
|
TopicRulePayload |
withActions(Action... actions)
The actions associated with the rule.
|
TopicRulePayload |
withActions(Collection<Action> actions)
The actions associated with the rule.
|
TopicRulePayload |
withAwsIotSqlVersion(String awsIotSqlVersion)
The version of the SQL rules engine to use when evaluating the rule.
|
TopicRulePayload |
withDescription(String description)
The description of the rule.
|
TopicRulePayload |
withErrorAction(Action errorAction)
The action to take when an error occurs.
|
TopicRulePayload |
withRuleDisabled(Boolean ruleDisabled)
Specifies whether the rule is disabled.
|
TopicRulePayload |
withSql(String sql)
The SQL statement used to query the topic.
|
public void setSql(String sql)
The SQL statement used to query the topic. For more information, see IoT SQL Reference in the IoT Developer Guide.
sql
- The SQL statement used to query the topic. For more information, see IoT SQL Reference
in the IoT Developer Guide.public String getSql()
The SQL statement used to query the topic. For more information, see IoT SQL Reference in the IoT Developer Guide.
public TopicRulePayload withSql(String sql)
The SQL statement used to query the topic. For more information, see IoT SQL Reference in the IoT Developer Guide.
sql
- The SQL statement used to query the topic. For more information, see IoT SQL Reference
in the IoT Developer Guide.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 TopicRulePayload withDescription(String description)
The description of the rule.
description
- The description of the rule.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 TopicRulePayload 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 TopicRulePayload 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 TopicRulePayload 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 TopicRulePayload 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 void setErrorAction(Action errorAction)
The action to take when an error occurs.
errorAction
- The action to take when an error occurs.public Action getErrorAction()
The action to take when an error occurs.
public TopicRulePayload withErrorAction(Action errorAction)
The action to take when an error occurs.
errorAction
- The action to take when an error occurs.public String toString()
toString
in class Object
Object.toString()
public TopicRulePayload clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.