@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 set of gating controls evaluates as true, based on a rule configuration that you
specify.
|
<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 is not accepted.
public final GatingRule gating()
A gating rule verifies that a set of gating controls evaluates as true, based on a rule configuration that you specify. If the gating rule evaluates to true, Amazon Route 53 Application Recovery Controller allows a set of routing control state changes to run and complete against the set of target controls.
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 © 2021. All rights reserved.