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

This is AWS WAF Classic documentation. For more information, * see AWS * WAF Classic in the developer guide.

For the latest version of AWS * WAF, use the AWS WAFV2 API and see the AWS * WAF Developer Guide. With the latest version, AWS WAF has a single set of * endpoints for regional and global use.

The action to take if any * rule within the RuleGroup matches a request.

See * Also:

AWS * API Reference

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

COUNT overrides the action specified by the individual rule * within a RuleGroup . If set to NONE, the rule's action * will take place.

*/ inline const WafOverrideActionType& GetType() const{ return m_type; } /** *

COUNT overrides the action specified by the individual rule * within a RuleGroup . If set to NONE, the rule's action * will take place.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

COUNT overrides the action specified by the individual rule * within a RuleGroup . If set to NONE, the rule's action * will take place.

*/ inline void SetType(const WafOverrideActionType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

COUNT overrides the action specified by the individual rule * within a RuleGroup . If set to NONE, the rule's action * will take place.

*/ inline void SetType(WafOverrideActionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

COUNT overrides the action specified by the individual rule * within a RuleGroup . If set to NONE, the rule's action * will take place.

*/ inline WafOverrideAction& WithType(const WafOverrideActionType& value) { SetType(value); return *this;} /** *

COUNT overrides the action specified by the individual rule * within a RuleGroup . If set to NONE, the rule's action * will take place.

*/ inline WafOverrideAction& WithType(WafOverrideActionType&& value) { SetType(std::move(value)); return *this;} private: WafOverrideActionType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace WAF } // namespace Aws