/** * 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 RuleGroup. To use this, create a rule group with * your rules, then provide the ARN of the rule group in this statement.

You * cannot nest a RuleGroupReferenceStatement, 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 RuleGroupReferenceStatement { public: RuleGroupReferenceStatement(); RuleGroupReferenceStatement(Aws::Utils::Json::JsonView jsonValue); RuleGroupReferenceStatement& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Resource Name (ARN) of the entity.

*/ inline const Aws::String& GetARN() const{ return m_aRN; } /** *

The Amazon Resource Name (ARN) of the entity.

*/ inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the entity.

*/ inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; } /** *

The Amazon Resource Name (ARN) of the entity.

*/ inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); } /** *

The Amazon Resource Name (ARN) of the entity.

*/ inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); } /** *

The Amazon Resource Name (ARN) of the entity.

*/ inline RuleGroupReferenceStatement& WithARN(const Aws::String& value) { SetARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the entity.

*/ inline RuleGroupReferenceStatement& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the entity.

*/ inline RuleGroupReferenceStatement& WithARN(const char* value) { SetARN(value); return *this;} /** *

The names of rules that are in the referenced rule group, but that you want * AWS WAF to exclude from processing for this rule statement.

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

The names of rules that are in the referenced rule group, but that you want * AWS WAF to exclude from processing for this rule statement.

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

The names of rules that are in the referenced rule group, but that you want * AWS WAF to exclude from processing for this rule statement.

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

The names of rules that are in the referenced rule group, but that you want * AWS WAF to exclude from processing for this rule statement.

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

The names of rules that are in the referenced rule group, but that you want * AWS WAF to exclude from processing for this rule statement.

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

The names of rules that are in the referenced rule group, but that you want * AWS WAF to exclude from processing for this rule statement.

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

The names of rules that are in the referenced rule group, but that you want * AWS WAF to exclude from processing for this rule statement.

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

The names of rules that are in the referenced rule group, but that you want * AWS WAF to exclude from processing for this rule statement.

*/ inline RuleGroupReferenceStatement& AddExcludedRules(ExcludedRule&& value) { m_excludedRulesHasBeenSet = true; m_excludedRules.push_back(std::move(value)); return *this; } private: Aws::String m_aRN; bool m_aRNHasBeenSet; Aws::Vector m_excludedRules; bool m_excludedRulesHasBeenSet; }; } // namespace Model } // namespace WAFV2 } // namespace Aws