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

Information about the Rule that you specified in the * GetRule request. For more information, see the following * topics:

  • Rule: Contains MetricName, * Name, an array of Predicate objects, and * RuleId

  • Predicate: Each * Predicate object contains DataId, * Negated, and Type

*/ inline const Rule& GetRule() const{ return m_rule; } /** *

Information about the Rule that you specified in the * GetRule request. For more information, see the following * topics:

  • Rule: Contains MetricName, * Name, an array of Predicate objects, and * RuleId

  • Predicate: Each * Predicate object contains DataId, * Negated, and Type

*/ inline void SetRule(const Rule& value) { m_rule = value; } /** *

Information about the Rule that you specified in the * GetRule request. For more information, see the following * topics:

  • Rule: Contains MetricName, * Name, an array of Predicate objects, and * RuleId

  • Predicate: Each * Predicate object contains DataId, * Negated, and Type

*/ inline void SetRule(Rule&& value) { m_rule = std::move(value); } /** *

Information about the Rule that you specified in the * GetRule request. For more information, see the following * topics:

  • Rule: Contains MetricName, * Name, an array of Predicate objects, and * RuleId

  • Predicate: Each * Predicate object contains DataId, * Negated, and Type

*/ inline GetRuleResult& WithRule(const Rule& value) { SetRule(value); return *this;} /** *

Information about the Rule that you specified in the * GetRule request. For more information, see the following * topics:

  • Rule: Contains MetricName, * Name, an array of Predicate objects, and * RuleId

  • Predicate: Each * Predicate object contains DataId, * Negated, and Type

*/ inline GetRuleResult& WithRule(Rule&& value) { SetRule(std::move(value)); return *this;} private: Rule m_rule; }; } // namespace Model } // namespace WAF } // namespace Aws