/** * 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 GetWebACLResult { public: AWS_WAF_API GetWebACLResult(); AWS_WAF_API GetWebACLResult(const Aws::AmazonWebServiceResult& result); AWS_WAF_API 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;} 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 GetWebACLResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetWebACLResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetWebACLResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: WebACL m_webACL; Aws::String m_requestId; }; } // namespace Model } // namespace WAF } // namespace Aws