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

A Suricata rule specification.

See Also:

AWS * API Reference

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

Defines what Network Firewall should do with the packets in a traffic flow * when the flow matches the stateful rule criteria.

*/ inline const Aws::String& GetAction() const{ return m_action; } /** *

Defines what Network Firewall should do with the packets in a traffic flow * when the flow matches the stateful rule criteria.

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

Defines what Network Firewall should do with the packets in a traffic flow * when the flow matches the stateful rule criteria.

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

Defines what Network Firewall should do with the packets in a traffic flow * when the flow matches the stateful rule criteria.

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

Defines what Network Firewall should do with the packets in a traffic flow * when the flow matches the stateful rule criteria.

*/ inline void SetAction(const char* value) { m_actionHasBeenSet = true; m_action.assign(value); } /** *

Defines what Network Firewall should do with the packets in a traffic flow * when the flow matches the stateful rule criteria.

*/ inline RuleGroupSourceStatefulRulesDetails& WithAction(const Aws::String& value) { SetAction(value); return *this;} /** *

Defines what Network Firewall should do with the packets in a traffic flow * when the flow matches the stateful rule criteria.

*/ inline RuleGroupSourceStatefulRulesDetails& WithAction(Aws::String&& value) { SetAction(std::move(value)); return *this;} /** *

Defines what Network Firewall should do with the packets in a traffic flow * when the flow matches the stateful rule criteria.

*/ inline RuleGroupSourceStatefulRulesDetails& WithAction(const char* value) { SetAction(value); return *this;} /** *

The stateful inspection criteria for the rule.

*/ inline const RuleGroupSourceStatefulRulesHeaderDetails& GetHeader() const{ return m_header; } /** *

The stateful inspection criteria for the rule.

*/ inline bool HeaderHasBeenSet() const { return m_headerHasBeenSet; } /** *

The stateful inspection criteria for the rule.

*/ inline void SetHeader(const RuleGroupSourceStatefulRulesHeaderDetails& value) { m_headerHasBeenSet = true; m_header = value; } /** *

The stateful inspection criteria for the rule.

*/ inline void SetHeader(RuleGroupSourceStatefulRulesHeaderDetails&& value) { m_headerHasBeenSet = true; m_header = std::move(value); } /** *

The stateful inspection criteria for the rule.

*/ inline RuleGroupSourceStatefulRulesDetails& WithHeader(const RuleGroupSourceStatefulRulesHeaderDetails& value) { SetHeader(value); return *this;} /** *

The stateful inspection criteria for the rule.

*/ inline RuleGroupSourceStatefulRulesDetails& WithHeader(RuleGroupSourceStatefulRulesHeaderDetails&& value) { SetHeader(std::move(value)); return *this;} /** *

Additional options for the rule.

*/ inline const Aws::Vector& GetRuleOptions() const{ return m_ruleOptions; } /** *

Additional options for the rule.

*/ inline bool RuleOptionsHasBeenSet() const { return m_ruleOptionsHasBeenSet; } /** *

Additional options for the rule.

*/ inline void SetRuleOptions(const Aws::Vector& value) { m_ruleOptionsHasBeenSet = true; m_ruleOptions = value; } /** *

Additional options for the rule.

*/ inline void SetRuleOptions(Aws::Vector&& value) { m_ruleOptionsHasBeenSet = true; m_ruleOptions = std::move(value); } /** *

Additional options for the rule.

*/ inline RuleGroupSourceStatefulRulesDetails& WithRuleOptions(const Aws::Vector& value) { SetRuleOptions(value); return *this;} /** *

Additional options for the rule.

*/ inline RuleGroupSourceStatefulRulesDetails& WithRuleOptions(Aws::Vector&& value) { SetRuleOptions(std::move(value)); return *this;} /** *

Additional options for the rule.

*/ inline RuleGroupSourceStatefulRulesDetails& AddRuleOptions(const RuleGroupSourceStatefulRulesOptionsDetails& value) { m_ruleOptionsHasBeenSet = true; m_ruleOptions.push_back(value); return *this; } /** *

Additional options for the rule.

*/ inline RuleGroupSourceStatefulRulesDetails& AddRuleOptions(RuleGroupSourceStatefulRulesOptionsDetails&& value) { m_ruleOptionsHasBeenSet = true; m_ruleOptions.push_back(std::move(value)); return *this; } private: Aws::String m_action; bool m_actionHasBeenSet = false; RuleGroupSourceStatefulRulesHeaderDetails m_header; bool m_headerHasBeenSet = false; Aws::Vector m_ruleOptions; bool m_ruleOptionsHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws