/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Route53RecoveryControlConfig { namespace Model { /** *

A new assertion rule for a control panel.

See Also:

AWS * API Reference

*/ class NewAssertionRule { public: AWS_ROUTE53RECOVERYCONTROLCONFIG_API NewAssertionRule(); AWS_ROUTE53RECOVERYCONTROLCONFIG_API NewAssertionRule(Aws::Utils::Json::JsonView jsonValue); AWS_ROUTE53RECOVERYCONTROLCONFIG_API NewAssertionRule& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ROUTE53RECOVERYCONTROLCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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::Vector& GetAssertedControls() const{ return m_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.

*/ 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::Vector& value) { m_assertedControlsHasBeenSet = true; m_assertedControls = value; } /** *

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(Aws::Vector&& value) { m_assertedControlsHasBeenSet = true; m_assertedControls = std::move(value); } /** *

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 NewAssertionRule& WithAssertedControls(const Aws::Vector& value) { SetAssertedControls(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 NewAssertionRule& WithAssertedControls(Aws::Vector&& value) { SetAssertedControls(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 NewAssertionRule& 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 NewAssertionRule& 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 NewAssertionRule& AddAssertedControls(const char* value) { m_assertedControlsHasBeenSet = true; m_assertedControls.push_back(value); return *this; } /** *

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

*/ inline const Aws::String& GetControlPanelArn() const{ return m_controlPanelArn; } /** *

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

*/ inline bool ControlPanelArnHasBeenSet() const { return m_controlPanelArnHasBeenSet; } /** *

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

*/ inline void SetControlPanelArn(const Aws::String& value) { m_controlPanelArnHasBeenSet = true; m_controlPanelArn = value; } /** *

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

*/ inline void SetControlPanelArn(Aws::String&& value) { m_controlPanelArnHasBeenSet = true; m_controlPanelArn = std::move(value); } /** *

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

*/ inline void SetControlPanelArn(const char* value) { m_controlPanelArnHasBeenSet = true; m_controlPanelArn.assign(value); } /** *

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

*/ inline NewAssertionRule& WithControlPanelArn(const Aws::String& value) { SetControlPanelArn(value); return *this;} /** *

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

*/ inline NewAssertionRule& WithControlPanelArn(Aws::String&& value) { SetControlPanelArn(std::move(value)); return *this;} /** *

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

*/ inline NewAssertionRule& WithControlPanelArn(const char* value) { SetControlPanelArn(value); return *this;} /** *

The 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; } /** *

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

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The 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; } /** *

The 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); } /** *

The 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); } /** *

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

*/ inline NewAssertionRule& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

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

*/ inline NewAssertionRule& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

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

*/ inline NewAssertionRule& WithName(const char* value) { SetName(value); return *this;} /** *

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.

*/ inline const RuleConfig& GetRuleConfig() const{ return m_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.

*/ inline bool RuleConfigHasBeenSet() const { return m_ruleConfigHasBeenSet; } /** *

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.

*/ inline void SetRuleConfig(const RuleConfig& value) { m_ruleConfigHasBeenSet = true; m_ruleConfig = value; } /** *

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.

*/ inline void SetRuleConfig(RuleConfig&& value) { m_ruleConfigHasBeenSet = true; m_ruleConfig = std::move(value); } /** *

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.

*/ inline NewAssertionRule& WithRuleConfig(const RuleConfig& value) { SetRuleConfig(value); return *this;} /** *

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.

*/ inline NewAssertionRule& WithRuleConfig(RuleConfig&& value) { SetRuleConfig(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 NewAssertionRule& WithWaitPeriodMs(int value) { SetWaitPeriodMs(value); return *this;} private: Aws::Vector m_assertedControls; bool m_assertedControlsHasBeenSet = false; Aws::String m_controlPanelArn; bool m_controlPanelArnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; RuleConfig m_ruleConfig; bool m_ruleConfigHasBeenSet = false; int m_waitPeriodMs; bool m_waitPeriodMsHasBeenSet = false; }; } // namespace Model } // namespace Route53RecoveryControlConfig } // namespace Aws