@Generated(value="software.amazon.awssdk:codegen") public final class Rule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Rule.Builder,Rule>
A safety rule. A safety rule can be an assertion rule or a gating rule.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Rule.Builder |
| Modifier and Type | Method and Description |
|---|---|
AssertionRule |
assertion()
An assertion rule enforces that, when a routing control state is changed, the criteria set by the rule
configuration is met.
|
static Rule.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
GatingRule |
gating()
A gating rule verifies that a gating routing control or set of gating rounting controls, evaluates as true, based
on a rule configuration that you specify, which allows a set of routing control state changes to complete.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends Rule.Builder> |
serializableBuilderClass() |
Rule.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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 transation so that traffic continues to flow to at least one cell for the application. This ensures that you avoid a fail-open scenario.
public final GatingRule gating()
A gating rule verifies that a gating routing control or set of gating rounting 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.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Rule.Builder,Rule>public static Rule.Builder builder()
public static Class<? extends Rule.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.