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

Additional options governing how Network Firewall handles the rule group. You * can only use these for stateful rule groups.

See Also:

AWS * API Reference

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

Indicates how to manage the order of the rule evaluation for the rule group. * DEFAULT_ACTION_ORDER is the default behavior. Stateful rules are * provided to the rule engine as Suricata compatible strings, and Suricata * evaluates them based on certain settings. For more information, see Evaluation * order for stateful rules in the Network Firewall Developer Guide. *

*/ inline const RuleOrder& GetRuleOrder() const{ return m_ruleOrder; } /** *

Indicates how to manage the order of the rule evaluation for the rule group. * DEFAULT_ACTION_ORDER is the default behavior. Stateful rules are * provided to the rule engine as Suricata compatible strings, and Suricata * evaluates them based on certain settings. For more information, see Evaluation * order for stateful rules in the Network Firewall Developer Guide. *

*/ inline bool RuleOrderHasBeenSet() const { return m_ruleOrderHasBeenSet; } /** *

Indicates how to manage the order of the rule evaluation for the rule group. * DEFAULT_ACTION_ORDER is the default behavior. Stateful rules are * provided to the rule engine as Suricata compatible strings, and Suricata * evaluates them based on certain settings. For more information, see Evaluation * order for stateful rules in the Network Firewall Developer Guide. *

*/ inline void SetRuleOrder(const RuleOrder& value) { m_ruleOrderHasBeenSet = true; m_ruleOrder = value; } /** *

Indicates how to manage the order of the rule evaluation for the rule group. * DEFAULT_ACTION_ORDER is the default behavior. Stateful rules are * provided to the rule engine as Suricata compatible strings, and Suricata * evaluates them based on certain settings. For more information, see Evaluation * order for stateful rules in the Network Firewall Developer Guide. *

*/ inline void SetRuleOrder(RuleOrder&& value) { m_ruleOrderHasBeenSet = true; m_ruleOrder = std::move(value); } /** *

Indicates how to manage the order of the rule evaluation for the rule group. * DEFAULT_ACTION_ORDER is the default behavior. Stateful rules are * provided to the rule engine as Suricata compatible strings, and Suricata * evaluates them based on certain settings. For more information, see Evaluation * order for stateful rules in the Network Firewall Developer Guide. *

*/ inline StatefulRuleOptions& WithRuleOrder(const RuleOrder& value) { SetRuleOrder(value); return *this;} /** *

Indicates how to manage the order of the rule evaluation for the rule group. * DEFAULT_ACTION_ORDER is the default behavior. Stateful rules are * provided to the rule engine as Suricata compatible strings, and Suricata * evaluates them based on certain settings. For more information, see Evaluation * order for stateful rules in the Network Firewall Developer Guide. *

*/ inline StatefulRuleOptions& WithRuleOrder(RuleOrder&& value) { SetRuleOrder(std::move(value)); return *this;} private: RuleOrder m_ruleOrder; bool m_ruleOrderHasBeenSet = false; }; } // namespace Model } // namespace NetworkFirewall } // namespace Aws