/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Update to a gating rule. You can update the name or the evaluation period
* (wait period). If you don't specify one of the items to update, the item is
* unchanged.See Also:
AWS
* API Reference
The name for the gating rule. You can use any non-white space character in * the name.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name for the gating rule. You can use any non-white space character in * the name.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name for the gating 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 for the gating 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 for the gating 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 for the gating rule. You can use any non-white space character in * the name.
*/ inline GatingRuleUpdate& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name for the gating rule. You can use any non-white space character in * the name.
*/ inline GatingRuleUpdate& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name for the gating rule. You can use any non-white space character in * the name.
*/ inline GatingRuleUpdate& WithName(const char* value) { SetName(value); return *this;} /** *The Amazon Resource Name (ARN) of the gating rule.
*/ inline const Aws::String& GetSafetyRuleArn() const{ return m_safetyRuleArn; } /** *The Amazon Resource Name (ARN) of the gating rule.
*/ inline bool SafetyRuleArnHasBeenSet() const { return m_safetyRuleArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the gating rule.
*/ inline void SetSafetyRuleArn(const Aws::String& value) { m_safetyRuleArnHasBeenSet = true; m_safetyRuleArn = value; } /** *The Amazon Resource Name (ARN) of the gating rule.
*/ inline void SetSafetyRuleArn(Aws::String&& value) { m_safetyRuleArnHasBeenSet = true; m_safetyRuleArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the gating rule.
*/ inline void SetSafetyRuleArn(const char* value) { m_safetyRuleArnHasBeenSet = true; m_safetyRuleArn.assign(value); } /** *The Amazon Resource Name (ARN) of the gating rule.
*/ inline GatingRuleUpdate& WithSafetyRuleArn(const Aws::String& value) { SetSafetyRuleArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the gating rule.
*/ inline GatingRuleUpdate& WithSafetyRuleArn(Aws::String&& value) { SetSafetyRuleArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the gating rule.
*/ inline GatingRuleUpdate& WithSafetyRuleArn(const char* value) { SetSafetyRuleArn(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 GatingRuleUpdate& WithWaitPeriodMs(int value) { SetWaitPeriodMs(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_safetyRuleArn; bool m_safetyRuleArnHasBeenSet = false; int m_waitPeriodMs; bool m_waitPeriodMsHasBeenSet = false; }; } // namespace Model } // namespace Route53RecoveryControlConfig } // namespace Aws