@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Rule extends Object implements Serializable, Cloneable, StructuredPojo
A safety rule. A safety rule can be an assertion rule or a gating rule.
| Constructor and Description | 
|---|
| Rule() | 
| Modifier and Type | Method and Description | 
|---|---|
| Rule | clone() | 
| boolean | equals(Object obj) | 
| AssertionRule | getASSERTION()
 An assertion rule enforces that, when a routing control state is changed, the criteria set by the rule
 configuration is met. | 
| GatingRule | getGATING()
 A gating rule verifies that a gating routing control or set of gating routing controls, evaluates as true, based
 on a rule configuration that you specify, which allows a set of routing control state changes to complete. | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller)Marshalls this structured data using the given  ProtocolMarshaller. | 
| void | setASSERTION(AssertionRule aSSERTION)
 An assertion rule enforces that, when a routing control state is changed, the criteria set by the rule
 configuration is met. | 
| void | setGATING(GatingRule gATING)
 A gating rule verifies that a gating routing control or set of gating routing controls, evaluates as true, based
 on a rule configuration that you specify, which allows a set of routing control state changes to complete. | 
| String | toString()Returns a string representation of this object. | 
| Rule | withASSERTION(AssertionRule aSSERTION)
 An assertion rule enforces that, when a routing control state is changed, the criteria set by the rule
 configuration is met. | 
| Rule | withGATING(GatingRule gATING)
 A gating rule verifies that a gating routing control or set of gating routing controls, evaluates as true, based
 on a rule configuration that you specify, which allows a set of routing control state changes to complete. | 
public void setASSERTION(AssertionRule aSSERTION)
An assertion rule enforces that, when a routing control state is changed, the criteria set by the rule configuration is met. Otherwise, the change to the routing control state is not accepted. For example, the criteria might be that at least one routing control state is On after the transaction so that traffic continues to flow to at least one cell for the application. This ensures that you avoid a fail-open scenario.
aSSERTION - An assertion rule enforces that, when a routing control state is changed, the criteria set by the rule
        configuration is met. Otherwise, the change to the routing control state is not accepted. For example, the
        criteria might be that at least one routing control state is On after the transaction so that traffic
        continues to flow to at least one cell for the application. This ensures that you avoid a fail-open
        scenario.public AssertionRule getASSERTION()
An assertion rule enforces that, when a routing control state is changed, the criteria set by the rule configuration is met. Otherwise, the change to the routing control state is not accepted. For example, the criteria might be that at least one routing control state is On after the transaction so that traffic continues to flow to at least one cell for the application. This ensures that you avoid a fail-open scenario.
public Rule withASSERTION(AssertionRule aSSERTION)
An assertion rule enforces that, when a routing control state is changed, the criteria set by the rule configuration is met. Otherwise, the change to the routing control state is not accepted. For example, the criteria might be that at least one routing control state is On after the transaction so that traffic continues to flow to at least one cell for the application. This ensures that you avoid a fail-open scenario.
aSSERTION - An assertion rule enforces that, when a routing control state is changed, the criteria set by the rule
        configuration is met. Otherwise, the change to the routing control state is not accepted. For example, the
        criteria might be that at least one routing control state is On after the transaction so that traffic
        continues to flow to at least one cell for the application. This ensures that you avoid a fail-open
        scenario.public void setGATING(GatingRule gATING)
A gating rule verifies that a gating routing control or set of gating routing controls, evaluates as true, based on a rule configuration that you specify, which allows a set of routing control state changes to complete.
For example, if you specify one gating routing control and you set the Type in the rule configuration to OR, that indicates that you must set the gating routing control to On for the rule to evaluate as true; that is, for the gating control "switch" to be "On". When you do that, then you can update the routing control states for the target routing controls that you specify in the gating rule.
gATING - A gating rule verifies that a gating routing control or set of gating routing controls, evaluates as true,
        based on a rule configuration that you specify, which allows a set of routing control state changes to
        complete.
        For example, if you specify one gating routing control and you set the Type in the rule configuration to OR, that indicates that you must set the gating routing control to On for the rule to evaluate as true; that is, for the gating control "switch" to be "On". When you do that, then you can update the routing control states for the target routing controls that you specify in the gating rule.
public GatingRule getGATING()
A gating rule verifies that a gating routing control or set of gating routing controls, evaluates as true, based on a rule configuration that you specify, which allows a set of routing control state changes to complete.
For example, if you specify one gating routing control and you set the Type in the rule configuration to OR, that indicates that you must set the gating routing control to On for the rule to evaluate as true; that is, for the gating control "switch" to be "On". When you do that, then you can update the routing control states for the target routing controls that you specify in the gating rule.
For example, if you specify one gating routing control and you set the Type in the rule configuration to OR, that indicates that you must set the gating routing control to On for the rule to evaluate as true; that is, for the gating control "switch" to be "On". When you do that, then you can update the routing control states for the target routing controls that you specify in the gating rule.
public Rule withGATING(GatingRule gATING)
A gating rule verifies that a gating routing control or set of gating routing controls, evaluates as true, based on a rule configuration that you specify, which allows a set of routing control state changes to complete.
For example, if you specify one gating routing control and you set the Type in the rule configuration to OR, that indicates that you must set the gating routing control to On for the rule to evaluate as true; that is, for the gating control "switch" to be "On". When you do that, then you can update the routing control states for the target routing controls that you specify in the gating rule.
gATING - A gating rule verifies that a gating routing control or set of gating routing controls, evaluates as true,
        based on a rule configuration that you specify, which allows a set of routing control state changes to
        complete.
        For example, if you specify one gating routing control and you set the Type in the rule configuration to OR, that indicates that you must set the gating routing control to On for the rule to evaluate as true; that is, for the gating control "switch" to be "On". When you do that, then you can update the routing control states for the target routing controls that you specify in the gating rule.
public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.