/** * 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 GetWebACLResult { public: GetWebACLResult(); GetWebACLResult(const Aws::AmazonWebServiceResult& result); GetWebACLResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

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

  • WebACL: Contains DefaultAction, * MetricName, Name, an array of Rule * objects, and WebACLId

  • * DefaultAction (Data type is WafAction): Contains * Type

  • Rules: Contains an array of * ActivatedRule objects, which contain Action, * Priority, and RuleId

  • * Action: Contains Type

*/ inline const WebACL& GetWebACL() const{ return m_webACL; } /** *

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

  • WebACL: Contains DefaultAction, * MetricName, Name, an array of Rule * objects, and WebACLId

  • * DefaultAction (Data type is WafAction): Contains * Type

  • Rules: Contains an array of * ActivatedRule objects, which contain Action, * Priority, and RuleId

  • * Action: Contains Type

*/ inline void SetWebACL(const WebACL& value) { m_webACL = value; } /** *

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

  • WebACL: Contains DefaultAction, * MetricName, Name, an array of Rule * objects, and WebACLId

  • * DefaultAction (Data type is WafAction): Contains * Type

  • Rules: Contains an array of * ActivatedRule objects, which contain Action, * Priority, and RuleId

  • * Action: Contains Type

*/ inline void SetWebACL(WebACL&& value) { m_webACL = std::move(value); } /** *

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

  • WebACL: Contains DefaultAction, * MetricName, Name, an array of Rule * objects, and WebACLId

  • * DefaultAction (Data type is WafAction): Contains * Type

  • Rules: Contains an array of * ActivatedRule objects, which contain Action, * Priority, and RuleId

  • * Action: Contains Type

*/ inline GetWebACLResult& WithWebACL(const WebACL& value) { SetWebACL(value); return *this;} /** *

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

  • WebACL: Contains DefaultAction, * MetricName, Name, an array of Rule * objects, and WebACLId

  • * DefaultAction (Data type is WafAction): Contains * Type

  • Rules: Contains an array of * ActivatedRule objects, which contain Action, * Priority, and RuleId

  • * Action: Contains Type

*/ inline GetWebACLResult& WithWebACL(WebACL&& value) { SetWebACL(std::move(value)); return *this;} private: WebACL m_webACL; }; } // namespace Model } // namespace WAF } // namespace Aws