/** * 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 WAF { namespace Model { class GetRuleResult { public: AWS_WAF_API GetRuleResult(); AWS_WAF_API GetRuleResult(const Aws::AmazonWebServiceResult& result); AWS_WAF_API 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;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetRuleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetRuleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetRuleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Rule m_rule; Aws::String m_requestId; }; } // namespace Model } // namespace WAF } // namespace Aws