/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An assertion rule enforces that, when you change a routing control state,
* that the criteria that you set in the rule configuration is met. Otherwise, the
* change to the routing control 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.See Also:
AWS
* API Reference
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.
*/ inline const Aws::VectorThe 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.
*/ inline bool AssertedControlsHasBeenSet() const { return m_assertedControlsHasBeenSet; } /** *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.
*/ inline void SetAssertedControls(const Aws::VectorThe 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.
*/ inline void SetAssertedControls(Aws::VectorThe 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.
*/ inline AssertionRule& WithAssertedControls(const Aws::VectorThe 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.
*/ inline AssertionRule& WithAssertedControls(Aws::VectorThe 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.
*/ inline AssertionRule& AddAssertedControls(const Aws::String& value) { m_assertedControlsHasBeenSet = true; m_assertedControls.push_back(value); return *this; } /** *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.
*/ inline AssertionRule& AddAssertedControls(Aws::String&& value) { m_assertedControlsHasBeenSet = true; m_assertedControls.push_back(std::move(value)); return *this; } /** *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.
*/ inline AssertionRule& AddAssertedControls(const char* value) { m_assertedControlsHasBeenSet = true; m_assertedControls.push_back(value); return *this; } /** *The Amazon Resource Name (ARN) of the control panel.
*/ inline const Aws::String& GetControlPanelArn() const{ return m_controlPanelArn; } /** *The Amazon Resource Name (ARN) of the control panel.
*/ inline bool ControlPanelArnHasBeenSet() const { return m_controlPanelArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the control panel.
*/ inline void SetControlPanelArn(const Aws::String& value) { m_controlPanelArnHasBeenSet = true; m_controlPanelArn = value; } /** *The Amazon Resource Name (ARN) of the control panel.
*/ inline void SetControlPanelArn(Aws::String&& value) { m_controlPanelArnHasBeenSet = true; m_controlPanelArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the control panel.
*/ inline void SetControlPanelArn(const char* value) { m_controlPanelArnHasBeenSet = true; m_controlPanelArn.assign(value); } /** *The Amazon Resource Name (ARN) of the control panel.
*/ inline AssertionRule& WithControlPanelArn(const Aws::String& value) { SetControlPanelArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the control panel.
*/ inline AssertionRule& WithControlPanelArn(Aws::String&& value) { SetControlPanelArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the control panel.
*/ inline AssertionRule& WithControlPanelArn(const char* value) { SetControlPanelArn(value); return *this;} /** *Name of the assertion rule. You can use any non-white space character in the * name.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *Name of the assertion rule. You can use any non-white space character in the * name.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *Name of the assertion rule. You can use any non-white space character in the * name.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *Name of the assertion rule. You can use any non-white space character in the * name.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *Name of the assertion rule. You can use any non-white space character in the * name.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *Name of the assertion rule. You can use any non-white space character in the * name.
*/ inline AssertionRule& WithName(const Aws::String& value) { SetName(value); return *this;} /** *Name of the assertion rule. You can use any non-white space character in the * name.
*/ inline AssertionRule& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *Name of the assertion rule. You can use any non-white space character in the * name.
*/ inline AssertionRule& WithName(const char* value) { SetName(value); return *this;} /** *The criteria that you set for specific assertion routing controls * (AssertedControls) that designate how many routing control states must be ON as * the result of a transaction. For example, if you have three assertion routing * controls, you might specify ATLEAST 2 for your rule configuration. This means * that at least two assertion routing control states must be ON, so that at least * two Amazon Web Services Regions have traffic flowing to them.
*/ inline const RuleConfig& GetRuleConfig() const{ return m_ruleConfig; } /** *The criteria that you set for specific assertion routing controls * (AssertedControls) that designate how many routing control states must be ON as * the result of a transaction. For example, if you have three assertion routing * controls, you might specify ATLEAST 2 for your rule configuration. This means * that at least two assertion routing control states must be ON, so that at least * two Amazon Web Services Regions have traffic flowing to them.
*/ inline bool RuleConfigHasBeenSet() const { return m_ruleConfigHasBeenSet; } /** *The criteria that you set for specific assertion routing controls * (AssertedControls) that designate how many routing control states must be ON as * the result of a transaction. For example, if you have three assertion routing * controls, you might specify ATLEAST 2 for your rule configuration. This means * that at least two assertion routing control states must be ON, so that at least * two Amazon Web Services Regions have traffic flowing to them.
*/ inline void SetRuleConfig(const RuleConfig& value) { m_ruleConfigHasBeenSet = true; m_ruleConfig = value; } /** *The criteria that you set for specific assertion routing controls * (AssertedControls) that designate how many routing control states must be ON as * the result of a transaction. For example, if you have three assertion routing * controls, you might specify ATLEAST 2 for your rule configuration. This means * that at least two assertion routing control states must be ON, so that at least * two Amazon Web Services Regions have traffic flowing to them.
*/ inline void SetRuleConfig(RuleConfig&& value) { m_ruleConfigHasBeenSet = true; m_ruleConfig = std::move(value); } /** *The criteria that you set for specific assertion routing controls * (AssertedControls) that designate how many routing control states must be ON as * the result of a transaction. For example, if you have three assertion routing * controls, you might specify ATLEAST 2 for your rule configuration. This means * that at least two assertion routing control states must be ON, so that at least * two Amazon Web Services Regions have traffic flowing to them.
*/ inline AssertionRule& WithRuleConfig(const RuleConfig& value) { SetRuleConfig(value); return *this;} /** *The criteria that you set for specific assertion routing controls * (AssertedControls) that designate how many routing control states must be ON as * the result of a transaction. For example, if you have three assertion routing * controls, you might specify ATLEAST 2 for your rule configuration. This means * that at least two assertion routing control states must be ON, so that at least * two Amazon Web Services Regions have traffic flowing to them.
*/ inline AssertionRule& WithRuleConfig(RuleConfig&& value) { SetRuleConfig(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the assertion rule.
*/ inline const Aws::String& GetSafetyRuleArn() const{ return m_safetyRuleArn; } /** *The Amazon Resource Name (ARN) of the assertion rule.
*/ inline bool SafetyRuleArnHasBeenSet() const { return m_safetyRuleArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the assertion rule.
*/ inline void SetSafetyRuleArn(const Aws::String& value) { m_safetyRuleArnHasBeenSet = true; m_safetyRuleArn = value; } /** *The Amazon Resource Name (ARN) of the assertion rule.
*/ inline void SetSafetyRuleArn(Aws::String&& value) { m_safetyRuleArnHasBeenSet = true; m_safetyRuleArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the assertion rule.
*/ inline void SetSafetyRuleArn(const char* value) { m_safetyRuleArnHasBeenSet = true; m_safetyRuleArn.assign(value); } /** *The Amazon Resource Name (ARN) of the assertion rule.
*/ inline AssertionRule& WithSafetyRuleArn(const Aws::String& value) { SetSafetyRuleArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the assertion rule.
*/ inline AssertionRule& WithSafetyRuleArn(Aws::String&& value) { SetSafetyRuleArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the assertion rule.
*/ inline AssertionRule& WithSafetyRuleArn(const char* value) { SetSafetyRuleArn(value); return *this;} /** *The deployment status of an assertion rule. Status can be one of the * following: PENDING, DEPLOYED, PENDING_DELETION.
*/ inline const Status& GetStatus() const{ return m_status; } /** *The deployment status of an assertion rule. Status can be one of the * following: PENDING, DEPLOYED, PENDING_DELETION.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The deployment status of an assertion rule. Status can be one of the * following: PENDING, DEPLOYED, PENDING_DELETION.
*/ inline void SetStatus(const Status& value) { m_statusHasBeenSet = true; m_status = value; } /** *The deployment status of an assertion rule. Status can be one of the * following: PENDING, DEPLOYED, PENDING_DELETION.
*/ inline void SetStatus(Status&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The deployment status of an assertion rule. Status can be one of the * following: PENDING, DEPLOYED, PENDING_DELETION.
*/ inline AssertionRule& WithStatus(const Status& value) { SetStatus(value); return *this;} /** *The deployment status of an assertion rule. Status can be one of the * following: PENDING, DEPLOYED, PENDING_DELETION.
*/ inline AssertionRule& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;} /** *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.
*/ inline int GetWaitPeriodMs() const{ return m_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.
*/ inline bool WaitPeriodMsHasBeenSet() const { return m_waitPeriodMsHasBeenSet; } /** *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.
*/ inline void SetWaitPeriodMs(int value) { m_waitPeriodMsHasBeenSet = true; m_waitPeriodMs = value; } /** *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.
*/ inline AssertionRule& WithWaitPeriodMs(int value) { SetWaitPeriodMs(value); return *this;} private: Aws::Vector