/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Action setting to use in the place of a rule action that is configured inside
* the rule group. You specify one override for each rule whose action you want to
* change. You can use overrides for testing, for example you can override
* all of rule actions to Count
and then monitor the resulting count
* metrics to understand how the rule group would handle your web traffic. You can
* also permanently override some or all actions, to modify how the rule group
* manages your web traffic.See Also:
AWS
* API Reference
The name of the rule to override.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the rule to override.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the rule to override.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the rule to override.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the rule to override.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the rule to override.
*/ inline RuleActionOverride& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the rule to override.
*/ inline RuleActionOverride& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the rule to override.
*/ inline RuleActionOverride& WithName(const char* value) { SetName(value); return *this;} /** *The override action to use, in place of the configured action of the rule in * the rule group.
*/ inline const RuleAction& GetActionToUse() const{ return m_actionToUse; } /** *The override action to use, in place of the configured action of the rule in * the rule group.
*/ inline bool ActionToUseHasBeenSet() const { return m_actionToUseHasBeenSet; } /** *The override action to use, in place of the configured action of the rule in * the rule group.
*/ inline void SetActionToUse(const RuleAction& value) { m_actionToUseHasBeenSet = true; m_actionToUse = value; } /** *The override action to use, in place of the configured action of the rule in * the rule group.
*/ inline void SetActionToUse(RuleAction&& value) { m_actionToUseHasBeenSet = true; m_actionToUse = std::move(value); } /** *The override action to use, in place of the configured action of the rule in * the rule group.
*/ inline RuleActionOverride& WithActionToUse(const RuleAction& value) { SetActionToUse(value); return *this;} /** *The override action to use, in place of the configured action of the rule in * the rule group.
*/ inline RuleActionOverride& WithActionToUse(RuleAction&& value) { SetActionToUse(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; RuleAction m_actionToUse; bool m_actionToUseHasBeenSet = false; }; } // namespace Model } // namespace WAFV2 } // namespace Aws