/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace WAFV2 { namespace Model { class AWS_WAFV2_API DescribeManagedRuleGroupResult { public: DescribeManagedRuleGroupResult(); DescribeManagedRuleGroupResult(const Aws::AmazonWebServiceResult& result); DescribeManagedRuleGroupResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The web ACL capacity units (WCUs) required for this rule group. AWS WAF uses * web ACL capacity units (WCU) to calculate and control the operating resources * that are used to run your rules, rule groups, and web ACLs. AWS WAF calculates * capacity differently for each rule type, to reflect each rule's relative cost. * Rule group capacity is fixed at creation, so users can plan their web ACL WCU * usage when they use a rule group. The WCU limit for web ACLs is 1,500.

*/ inline long long GetCapacity() const{ return m_capacity; } /** *

The web ACL capacity units (WCUs) required for this rule group. AWS WAF uses * web ACL capacity units (WCU) to calculate and control the operating resources * that are used to run your rules, rule groups, and web ACLs. AWS WAF calculates * capacity differently for each rule type, to reflect each rule's relative cost. * Rule group capacity is fixed at creation, so users can plan their web ACL WCU * usage when they use a rule group. The WCU limit for web ACLs is 1,500.

*/ inline void SetCapacity(long long value) { m_capacity = value; } /** *

The web ACL capacity units (WCUs) required for this rule group. AWS WAF uses * web ACL capacity units (WCU) to calculate and control the operating resources * that are used to run your rules, rule groups, and web ACLs. AWS WAF calculates * capacity differently for each rule type, to reflect each rule's relative cost. * Rule group capacity is fixed at creation, so users can plan their web ACL WCU * usage when they use a rule group. The WCU limit for web ACLs is 1,500.

*/ inline DescribeManagedRuleGroupResult& WithCapacity(long long value) { SetCapacity(value); return *this;} /** *

*/ inline const Aws::Vector& GetRules() const{ return m_rules; } /** *

*/ inline void SetRules(const Aws::Vector& value) { m_rules = value; } /** *

*/ inline void SetRules(Aws::Vector&& value) { m_rules = std::move(value); } /** *

*/ inline DescribeManagedRuleGroupResult& WithRules(const Aws::Vector& value) { SetRules(value); return *this;} /** *

*/ inline DescribeManagedRuleGroupResult& WithRules(Aws::Vector&& value) { SetRules(std::move(value)); return *this;} /** *

*/ inline DescribeManagedRuleGroupResult& AddRules(const RuleSummary& value) { m_rules.push_back(value); return *this; } /** *

*/ inline DescribeManagedRuleGroupResult& AddRules(RuleSummary&& value) { m_rules.push_back(std::move(value)); return *this; } private: long long m_capacity; Aws::Vector m_rules; }; } // namespace Model } // namespace WAFV2 } // namespace Aws