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

This is AWS WAF Classic documentation. For more information, * see AWS * WAF Classic in the developer guide.

For the latest version of AWS * WAF, use the AWS WAFV2 API and see the AWS * WAF Developer Guide. With the latest version, AWS WAF has a single set of * endpoints for regional and global use.

The rule to exclude from * a rule group. This is applicable only when the ActivatedRule refers * to a RuleGroup. The rule must belong to the RuleGroup * that is specified by the ActivatedRule.

See Also:

* AWS * API Reference

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

The unique identifier for the rule to exclude from the rule group.

*/ inline const Aws::String& GetRuleId() const{ return m_ruleId; } /** *

The unique identifier for the rule to exclude from the rule group.

*/ inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; } /** *

The unique identifier for the rule to exclude from the rule group.

*/ inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; } /** *

The unique identifier for the rule to exclude from the rule group.

*/ inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); } /** *

The unique identifier for the rule to exclude from the rule group.

*/ inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); } /** *

The unique identifier for the rule to exclude from the rule group.

*/ inline ExcludedRule& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;} /** *

The unique identifier for the rule to exclude from the rule group.

*/ inline ExcludedRule& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;} /** *

The unique identifier for the rule to exclude from the rule group.

*/ inline ExcludedRule& WithRuleId(const char* value) { SetRuleId(value); return *this;} private: Aws::String m_ruleId; bool m_ruleIdHasBeenSet = false; }; } // namespace Model } // namespace WAF } // namespace Aws