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

The web ACL specification. You can modify the settings in this web ACL and * use it to update this web ACL or create a new one.

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

The web ACL specification. You can modify the settings in this web ACL and * use it to update this web ACL or create a new one.

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

The web ACL specification. You can modify the settings in this web ACL and * use it to update this web ACL or create a new one.

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

The web ACL specification. You can modify the settings in this web ACL and * use it to update this web ACL or create a new one.

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

The web ACL specification. You can modify the settings in this web ACL and * use it to update this web ACL or create a new one.

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

A token used for optimistic locking. WAF returns a token to your * get and list requests, to mark the state of the entity * at the time of the request. To make changes to the entity associated with the * token, you provide the token to operations like update and * delete. WAF uses the token to ensure that no changes have been made * to the entity since you last retrieved it. If a change has been made, the update * fails with a WAFOptimisticLockException. If this happens, perform * another get, and use the new token returned by that operation.

*/ inline const Aws::String& GetLockToken() const{ return m_lockToken; } /** *

A token used for optimistic locking. WAF returns a token to your * get and list requests, to mark the state of the entity * at the time of the request. To make changes to the entity associated with the * token, you provide the token to operations like update and * delete. WAF uses the token to ensure that no changes have been made * to the entity since you last retrieved it. If a change has been made, the update * fails with a WAFOptimisticLockException. If this happens, perform * another get, and use the new token returned by that operation.

*/ inline void SetLockToken(const Aws::String& value) { m_lockToken = value; } /** *

A token used for optimistic locking. WAF returns a token to your * get and list requests, to mark the state of the entity * at the time of the request. To make changes to the entity associated with the * token, you provide the token to operations like update and * delete. WAF uses the token to ensure that no changes have been made * to the entity since you last retrieved it. If a change has been made, the update * fails with a WAFOptimisticLockException. If this happens, perform * another get, and use the new token returned by that operation.

*/ inline void SetLockToken(Aws::String&& value) { m_lockToken = std::move(value); } /** *

A token used for optimistic locking. WAF returns a token to your * get and list requests, to mark the state of the entity * at the time of the request. To make changes to the entity associated with the * token, you provide the token to operations like update and * delete. WAF uses the token to ensure that no changes have been made * to the entity since you last retrieved it. If a change has been made, the update * fails with a WAFOptimisticLockException. If this happens, perform * another get, and use the new token returned by that operation.

*/ inline void SetLockToken(const char* value) { m_lockToken.assign(value); } /** *

A token used for optimistic locking. WAF returns a token to your * get and list requests, to mark the state of the entity * at the time of the request. To make changes to the entity associated with the * token, you provide the token to operations like update and * delete. WAF uses the token to ensure that no changes have been made * to the entity since you last retrieved it. If a change has been made, the update * fails with a WAFOptimisticLockException. If this happens, perform * another get, and use the new token returned by that operation.

*/ inline GetWebACLResult& WithLockToken(const Aws::String& value) { SetLockToken(value); return *this;} /** *

A token used for optimistic locking. WAF returns a token to your * get and list requests, to mark the state of the entity * at the time of the request. To make changes to the entity associated with the * token, you provide the token to operations like update and * delete. WAF uses the token to ensure that no changes have been made * to the entity since you last retrieved it. If a change has been made, the update * fails with a WAFOptimisticLockException. If this happens, perform * another get, and use the new token returned by that operation.

*/ inline GetWebACLResult& WithLockToken(Aws::String&& value) { SetLockToken(std::move(value)); return *this;} /** *

A token used for optimistic locking. WAF returns a token to your * get and list requests, to mark the state of the entity * at the time of the request. To make changes to the entity associated with the * token, you provide the token to operations like update and * delete. WAF uses the token to ensure that no changes have been made * to the entity since you last retrieved it. If a change has been made, the update * fails with a WAFOptimisticLockException. If this happens, perform * another get, and use the new token returned by that operation.

*/ inline GetWebACLResult& WithLockToken(const char* value) { SetLockToken(value); return *this;} /** *

The URL to use in SDK integrations with Amazon Web Services managed rule * groups. For example, you can use the integration SDKs with the account takeover * prevention managed rule group AWSManagedRulesATPRuleSet and the * account creation fraud prevention managed rule group * AWSManagedRulesACFPRuleSet. This is only populated if you are using * a rule group in your web ACL that integrates with your applications in this way. * For more information, see WAF * client application integration in the WAF Developer Guide.

*/ inline const Aws::String& GetApplicationIntegrationURL() const{ return m_applicationIntegrationURL; } /** *

The URL to use in SDK integrations with Amazon Web Services managed rule * groups. For example, you can use the integration SDKs with the account takeover * prevention managed rule group AWSManagedRulesATPRuleSet and the * account creation fraud prevention managed rule group * AWSManagedRulesACFPRuleSet. This is only populated if you are using * a rule group in your web ACL that integrates with your applications in this way. * For more information, see WAF * client application integration in the WAF Developer Guide.

*/ inline void SetApplicationIntegrationURL(const Aws::String& value) { m_applicationIntegrationURL = value; } /** *

The URL to use in SDK integrations with Amazon Web Services managed rule * groups. For example, you can use the integration SDKs with the account takeover * prevention managed rule group AWSManagedRulesATPRuleSet and the * account creation fraud prevention managed rule group * AWSManagedRulesACFPRuleSet. This is only populated if you are using * a rule group in your web ACL that integrates with your applications in this way. * For more information, see WAF * client application integration in the WAF Developer Guide.

*/ inline void SetApplicationIntegrationURL(Aws::String&& value) { m_applicationIntegrationURL = std::move(value); } /** *

The URL to use in SDK integrations with Amazon Web Services managed rule * groups. For example, you can use the integration SDKs with the account takeover * prevention managed rule group AWSManagedRulesATPRuleSet and the * account creation fraud prevention managed rule group * AWSManagedRulesACFPRuleSet. This is only populated if you are using * a rule group in your web ACL that integrates with your applications in this way. * For more information, see WAF * client application integration in the WAF Developer Guide.

*/ inline void SetApplicationIntegrationURL(const char* value) { m_applicationIntegrationURL.assign(value); } /** *

The URL to use in SDK integrations with Amazon Web Services managed rule * groups. For example, you can use the integration SDKs with the account takeover * prevention managed rule group AWSManagedRulesATPRuleSet and the * account creation fraud prevention managed rule group * AWSManagedRulesACFPRuleSet. This is only populated if you are using * a rule group in your web ACL that integrates with your applications in this way. * For more information, see WAF * client application integration in the WAF Developer Guide.

*/ inline GetWebACLResult& WithApplicationIntegrationURL(const Aws::String& value) { SetApplicationIntegrationURL(value); return *this;} /** *

The URL to use in SDK integrations with Amazon Web Services managed rule * groups. For example, you can use the integration SDKs with the account takeover * prevention managed rule group AWSManagedRulesATPRuleSet and the * account creation fraud prevention managed rule group * AWSManagedRulesACFPRuleSet. This is only populated if you are using * a rule group in your web ACL that integrates with your applications in this way. * For more information, see WAF * client application integration in the WAF Developer Guide.

*/ inline GetWebACLResult& WithApplicationIntegrationURL(Aws::String&& value) { SetApplicationIntegrationURL(std::move(value)); return *this;} /** *

The URL to use in SDK integrations with Amazon Web Services managed rule * groups. For example, you can use the integration SDKs with the account takeover * prevention managed rule group AWSManagedRulesATPRuleSet and the * account creation fraud prevention managed rule group * AWSManagedRulesACFPRuleSet. This is only populated if you are using * a rule group in your web ACL that integrates with your applications in this way. * For more information, see WAF * client application integration in the WAF Developer Guide.

*/ inline GetWebACLResult& WithApplicationIntegrationURL(const char* value) { SetApplicationIntegrationURL(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_lockToken; Aws::String m_applicationIntegrationURL; Aws::String m_requestId; }; } // namespace Model } // namespace WAFV2 } // namespace Aws