Interface NewAssertionRule.Builder

  • Method Details

    • assertedControls

      NewAssertionRule.Builder assertedControls(Collection<String> assertedControls)

      The routing controls that are part of transactions that are evaluated to determine if a request to change a routing control state is allowed. For example, you might include three routing controls, one for each of three Amazon Web Services Regions.

      Parameters:
      assertedControls - The routing controls that are part of transactions that are evaluated to determine if a request to change a routing control state is allowed. For example, you might include three routing controls, one for each of three Amazon Web Services Regions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • assertedControls

      NewAssertionRule.Builder assertedControls(String... assertedControls)

      The routing controls that are part of transactions that are evaluated to determine if a request to change a routing control state is allowed. For example, you might include three routing controls, one for each of three Amazon Web Services Regions.

      Parameters:
      assertedControls - The routing controls that are part of transactions that are evaluated to determine if a request to change a routing control state is allowed. For example, you might include three routing controls, one for each of three Amazon Web Services Regions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • controlPanelArn

      NewAssertionRule.Builder controlPanelArn(String controlPanelArn)

      The Amazon Resource Name (ARN) for the control panel.

      Parameters:
      controlPanelArn - The Amazon Resource Name (ARN) for the control panel.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the assertion rule. You can use any non-white space character in the name.

      Parameters:
      name - The name of the assertion rule. You can use any non-white space character in the name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ruleConfig

      NewAssertionRule.Builder ruleConfig(RuleConfig ruleConfig)

      The criteria that you set for specific assertion controls (routing controls) that designate how many control states must be ON as the result of a transaction. For example, if you have three assertion controls, you might specify ATLEAST 2 for your rule configuration. This means that at least two assertion controls must be ON, so that at least two Amazon Web Services Regions have traffic flowing to them.

      Parameters:
      ruleConfig - The criteria that you set for specific assertion controls (routing controls) that designate how many control states must be ON as the result of a transaction. For example, if you have three assertion controls, you might specify ATLEAST 2 for your rule configuration. This means that at least two assertion controls must be ON, so that at least two Amazon Web Services Regions have traffic flowing to them.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ruleConfig

      default NewAssertionRule.Builder ruleConfig(Consumer<RuleConfig.Builder> ruleConfig)

      The criteria that you set for specific assertion controls (routing controls) that designate how many control states must be ON as the result of a transaction. For example, if you have three assertion controls, you might specify ATLEAST 2 for your rule configuration. This means that at least two assertion controls must be ON, so that at least two Amazon Web Services Regions have traffic flowing to them.

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

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

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

      NewAssertionRule.Builder waitPeriodMs(Integer waitPeriodMs)

      An evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. This helps prevent "flapping" of state. The wait period is 5000 ms by default, but you can choose a custom value.

      Parameters:
      waitPeriodMs - An evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. This helps prevent "flapping" of state. The wait period is 5000 ms by default, but you can choose a custom value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.