/** * 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 WAFV2 { namespace Model { /** *

A single action condition for a Condition in a logging * filter.

See Also:

AWS * API Reference

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

The action setting that a log record must contain in order to meet the * condition. This is the action that WAF applied to the web request.

For * rule groups, this is either the configured rule action setting, or if you've * applied a rule action override to the rule, it's the override action. The value * EXCLUDED_AS_COUNT matches on excluded rules and also on rules that * have a rule action override of Count.

*/ inline const ActionValue& GetAction() const{ return m_action; } /** *

The action setting that a log record must contain in order to meet the * condition. This is the action that WAF applied to the web request.

For * rule groups, this is either the configured rule action setting, or if you've * applied a rule action override to the rule, it's the override action. The value * EXCLUDED_AS_COUNT matches on excluded rules and also on rules that * have a rule action override of Count.

*/ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** *

The action setting that a log record must contain in order to meet the * condition. This is the action that WAF applied to the web request.

For * rule groups, this is either the configured rule action setting, or if you've * applied a rule action override to the rule, it's the override action. The value * EXCLUDED_AS_COUNT matches on excluded rules and also on rules that * have a rule action override of Count.

*/ inline void SetAction(const ActionValue& value) { m_actionHasBeenSet = true; m_action = value; } /** *

The action setting that a log record must contain in order to meet the * condition. This is the action that WAF applied to the web request.

For * rule groups, this is either the configured rule action setting, or if you've * applied a rule action override to the rule, it's the override action. The value * EXCLUDED_AS_COUNT matches on excluded rules and also on rules that * have a rule action override of Count.

*/ inline void SetAction(ActionValue&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** *

The action setting that a log record must contain in order to meet the * condition. This is the action that WAF applied to the web request.

For * rule groups, this is either the configured rule action setting, or if you've * applied a rule action override to the rule, it's the override action. The value * EXCLUDED_AS_COUNT matches on excluded rules and also on rules that * have a rule action override of Count.

*/ inline ActionCondition& WithAction(const ActionValue& value) { SetAction(value); return *this;} /** *

The action setting that a log record must contain in order to meet the * condition. This is the action that WAF applied to the web request.

For * rule groups, this is either the configured rule action setting, or if you've * applied a rule action override to the rule, it's the override action. The value * EXCLUDED_AS_COUNT matches on excluded rules and also on rules that * have a rule action override of Count.

*/ inline ActionCondition& WithAction(ActionValue&& value) { SetAction(std::move(value)); return *this;} private: ActionValue m_action; bool m_actionHasBeenSet = false; }; } // namespace Model } // namespace WAFV2 } // namespace Aws