@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SimpleRule extends Object implements Serializable, Cloneable, StructuredPojo
A rule that compares an input property value to a threshold value with a comparison operator.
| Constructor and Description |
|---|
SimpleRule() |
| Modifier and Type | Method and Description |
|---|---|
SimpleRule |
clone() |
boolean |
equals(Object obj) |
String |
getComparisonOperator()
The comparison operator.
|
String |
getInputProperty()
The value on the left side of the comparison operator.
|
String |
getThreshold()
The value on the right side of the comparison operator.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setComparisonOperator(String comparisonOperator)
The comparison operator.
|
void |
setInputProperty(String inputProperty)
The value on the left side of the comparison operator.
|
void |
setThreshold(String threshold)
The value on the right side of the comparison operator.
|
String |
toString()
Returns a string representation of this object.
|
SimpleRule |
withComparisonOperator(ComparisonOperator comparisonOperator)
The comparison operator.
|
SimpleRule |
withComparisonOperator(String comparisonOperator)
The comparison operator.
|
SimpleRule |
withInputProperty(String inputProperty)
The value on the left side of the comparison operator.
|
SimpleRule |
withThreshold(String threshold)
The value on the right side of the comparison operator.
|
public void setInputProperty(String inputProperty)
The value on the left side of the comparison operator. You can specify an AWS IoT Events input attribute as an input property.
inputProperty - The value on the left side of the comparison operator. You can specify an AWS IoT Events input attribute
as an input property.public String getInputProperty()
The value on the left side of the comparison operator. You can specify an AWS IoT Events input attribute as an input property.
public SimpleRule withInputProperty(String inputProperty)
The value on the left side of the comparison operator. You can specify an AWS IoT Events input attribute as an input property.
inputProperty - The value on the left side of the comparison operator. You can specify an AWS IoT Events input attribute
as an input property.public void setComparisonOperator(String comparisonOperator)
The comparison operator.
comparisonOperator - The comparison operator.ComparisonOperatorpublic String getComparisonOperator()
The comparison operator.
ComparisonOperatorpublic SimpleRule withComparisonOperator(String comparisonOperator)
The comparison operator.
comparisonOperator - The comparison operator.ComparisonOperatorpublic SimpleRule withComparisonOperator(ComparisonOperator comparisonOperator)
The comparison operator.
comparisonOperator - The comparison operator.ComparisonOperatorpublic void setThreshold(String threshold)
The value on the right side of the comparison operator. You can enter a number or specify an AWS IoT Events input attribute.
threshold - The value on the right side of the comparison operator. You can enter a number or specify an AWS IoT
Events input attribute.public String getThreshold()
The value on the right side of the comparison operator. You can enter a number or specify an AWS IoT Events input attribute.
public SimpleRule withThreshold(String threshold)
The value on the right side of the comparison operator. You can enter a number or specify an AWS IoT Events input attribute.
threshold - The value on the right side of the comparison operator. You can enter a number or specify an AWS IoT
Events input attribute.public String toString()
toString in class ObjectObject.toString()public SimpleRule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.