All Superinterfaces:
Buildable, CopyableBuilder<Rule.Builder,Rule>, SdkBuilder<Rule.Builder,Rule>, SdkPojo
Enclosing class:
Rule

public static interface Rule.Builder extends SdkPojo, CopyableBuilder<Rule.Builder,Rule>
  • Method Summary

    Modifier and Type
    Method
    Description
    default Rule.Builder
    An assertion rule enforces that, when a routing control state is changed, the criteria set by the rule configuration is met.
    An assertion rule enforces that, when a routing control state is changed, the criteria set by the rule configuration is met.
    default Rule.Builder
    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.
    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.

    Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder

    copy

    Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder

    applyMutation, build

    Methods inherited from interface software.amazon.awssdk.core.SdkPojo

    equalsBySdkFields, sdkFields
  • Method Details

    • assertion

      Rule.Builder assertion(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.

      Parameters:
      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • assertion

      default Rule.Builder assertion(Consumer<AssertionRule.Builder> 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.

      This is a convenience method that creates an instance of the AssertionRule.Builder avoiding the need to create one manually via AssertionRule.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to assertion(AssertionRule).

      Parameters:
      assertion - a consumer that will call methods on AssertionRule.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • gating

      Rule.Builder gating(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.

      Parameters:
      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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • gating

      default Rule.Builder gating(Consumer<GatingRule.Builder> 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.

      This is a convenience method that creates an instance of the GatingRule.Builder avoiding the need to create one manually via GatingRule.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to gating(GatingRule).

      Parameters:
      gating - a consumer that will call methods on GatingRule.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: