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

This is the latest version of AWS WAF, named AWS WAFV2, * released in November, 2019. For information, including how to migrate your AWS * WAF resources from the prior release, see the AWS * WAF Developer Guide.

A rule statement used to run the rules * that are defined in a managed rule group. To use this, provide the vendor name * and the name of the rule group in this statement. You can retrieve the required * names by calling ListAvailableManagedRuleGroups.

You can't nest a * ManagedRuleGroupStatement, for example for use inside a * NotStatement or OrStatement. It can only be referenced * as a top-level statement within a rule.

See Also:

AWS * API Reference

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

The name of the managed rule group vendor. You use this, along with the rule * group name, to identify the rule group.

*/ inline const Aws::String& GetVendorName() const{ return m_vendorName; } /** *

The name of the managed rule group vendor. You use this, along with the rule * group name, to identify the rule group.

*/ inline bool VendorNameHasBeenSet() const { return m_vendorNameHasBeenSet; } /** *

The name of the managed rule group vendor. You use this, along with the rule * group name, to identify the rule group.

*/ inline void SetVendorName(const Aws::String& value) { m_vendorNameHasBeenSet = true; m_vendorName = value; } /** *

The name of the managed rule group vendor. You use this, along with the rule * group name, to identify the rule group.

*/ inline void SetVendorName(Aws::String&& value) { m_vendorNameHasBeenSet = true; m_vendorName = std::move(value); } /** *

The name of the managed rule group vendor. You use this, along with the rule * group name, to identify the rule group.

*/ inline void SetVendorName(const char* value) { m_vendorNameHasBeenSet = true; m_vendorName.assign(value); } /** *

The name of the managed rule group vendor. You use this, along with the rule * group name, to identify the rule group.

*/ inline ManagedRuleGroupStatement& WithVendorName(const Aws::String& value) { SetVendorName(value); return *this;} /** *

The name of the managed rule group vendor. You use this, along with the rule * group name, to identify the rule group.

*/ inline ManagedRuleGroupStatement& WithVendorName(Aws::String&& value) { SetVendorName(std::move(value)); return *this;} /** *

The name of the managed rule group vendor. You use this, along with the rule * group name, to identify the rule group.

*/ inline ManagedRuleGroupStatement& WithVendorName(const char* value) { SetVendorName(value); return *this;} /** *

The name of the managed rule group. You use this, along with the vendor name, * to identify the rule group.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the managed rule group. You use this, along with the vendor name, * to identify the rule group.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the managed rule group. You use this, along with the vendor name, * to identify the rule group.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the managed rule group. You use this, along with the vendor name, * to identify the rule group.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the managed rule group. You use this, along with the vendor name, * to identify the rule group.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the managed rule group. You use this, along with the vendor name, * to identify the rule group.

*/ inline ManagedRuleGroupStatement& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the managed rule group. You use this, along with the vendor name, * to identify the rule group.

*/ inline ManagedRuleGroupStatement& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the managed rule group. You use this, along with the vendor name, * to identify the rule group.

*/ inline ManagedRuleGroupStatement& WithName(const char* value) { SetName(value); return *this;} /** *

The rules whose actions are set to COUNT by the web ACL, * regardless of the action that is set on the rule. This effectively excludes the * rule from acting on web requests.

*/ inline const Aws::Vector& GetExcludedRules() const{ return m_excludedRules; } /** *

The rules whose actions are set to COUNT by the web ACL, * regardless of the action that is set on the rule. This effectively excludes the * rule from acting on web requests.

*/ inline bool ExcludedRulesHasBeenSet() const { return m_excludedRulesHasBeenSet; } /** *

The rules whose actions are set to COUNT by the web ACL, * regardless of the action that is set on the rule. This effectively excludes the * rule from acting on web requests.

*/ inline void SetExcludedRules(const Aws::Vector& value) { m_excludedRulesHasBeenSet = true; m_excludedRules = value; } /** *

The rules whose actions are set to COUNT by the web ACL, * regardless of the action that is set on the rule. This effectively excludes the * rule from acting on web requests.

*/ inline void SetExcludedRules(Aws::Vector&& value) { m_excludedRulesHasBeenSet = true; m_excludedRules = std::move(value); } /** *

The rules whose actions are set to COUNT by the web ACL, * regardless of the action that is set on the rule. This effectively excludes the * rule from acting on web requests.

*/ inline ManagedRuleGroupStatement& WithExcludedRules(const Aws::Vector& value) { SetExcludedRules(value); return *this;} /** *

The rules whose actions are set to COUNT by the web ACL, * regardless of the action that is set on the rule. This effectively excludes the * rule from acting on web requests.

*/ inline ManagedRuleGroupStatement& WithExcludedRules(Aws::Vector&& value) { SetExcludedRules(std::move(value)); return *this;} /** *

The rules whose actions are set to COUNT by the web ACL, * regardless of the action that is set on the rule. This effectively excludes the * rule from acting on web requests.

*/ inline ManagedRuleGroupStatement& AddExcludedRules(const ExcludedRule& value) { m_excludedRulesHasBeenSet = true; m_excludedRules.push_back(value); return *this; } /** *

The rules whose actions are set to COUNT by the web ACL, * regardless of the action that is set on the rule. This effectively excludes the * rule from acting on web requests.

*/ inline ManagedRuleGroupStatement& AddExcludedRules(ExcludedRule&& value) { m_excludedRulesHasBeenSet = true; m_excludedRules.push_back(std::move(value)); return *this; } private: Aws::String m_vendorName; bool m_vendorNameHasBeenSet; Aws::String m_name; bool m_nameHasBeenSet; Aws::Vector m_excludedRules; bool m_excludedRulesHasBeenSet; }; } // namespace Model } // namespace WAFV2 } // namespace Aws