/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

Specifies that WAF should run a CAPTCHA check against the request. *

See Also:

AWS * API Reference

*/ class AwsWafv2RulesActionCaptchaDetails { public: AWS_SECURITYHUB_API AwsWafv2RulesActionCaptchaDetails(); AWS_SECURITYHUB_API AwsWafv2RulesActionCaptchaDetails(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsWafv2RulesActionCaptchaDetails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Defines custom handling for the web request, used when the CAPTCHA * inspection determines that the request's token is valid and unexpired. For more * information, see Customizing * web requests and responses in WAF in the WAF Developer Guide..

*/ inline const AwsWafv2CustomRequestHandlingDetails& GetCustomRequestHandling() const{ return m_customRequestHandling; } /** *

Defines custom handling for the web request, used when the CAPTCHA * inspection determines that the request's token is valid and unexpired. For more * information, see Customizing * web requests and responses in WAF in the WAF Developer Guide..

*/ inline bool CustomRequestHandlingHasBeenSet() const { return m_customRequestHandlingHasBeenSet; } /** *

Defines custom handling for the web request, used when the CAPTCHA * inspection determines that the request's token is valid and unexpired. For more * information, see Customizing * web requests and responses in WAF in the WAF Developer Guide..

*/ inline void SetCustomRequestHandling(const AwsWafv2CustomRequestHandlingDetails& value) { m_customRequestHandlingHasBeenSet = true; m_customRequestHandling = value; } /** *

Defines custom handling for the web request, used when the CAPTCHA * inspection determines that the request's token is valid and unexpired. For more * information, see Customizing * web requests and responses in WAF in the WAF Developer Guide..

*/ inline void SetCustomRequestHandling(AwsWafv2CustomRequestHandlingDetails&& value) { m_customRequestHandlingHasBeenSet = true; m_customRequestHandling = std::move(value); } /** *

Defines custom handling for the web request, used when the CAPTCHA * inspection determines that the request's token is valid and unexpired. For more * information, see Customizing * web requests and responses in WAF in the WAF Developer Guide..

*/ inline AwsWafv2RulesActionCaptchaDetails& WithCustomRequestHandling(const AwsWafv2CustomRequestHandlingDetails& value) { SetCustomRequestHandling(value); return *this;} /** *

Defines custom handling for the web request, used when the CAPTCHA * inspection determines that the request's token is valid and unexpired. For more * information, see Customizing * web requests and responses in WAF in the WAF Developer Guide..

*/ inline AwsWafv2RulesActionCaptchaDetails& WithCustomRequestHandling(AwsWafv2CustomRequestHandlingDetails&& value) { SetCustomRequestHandling(std::move(value)); return *this;} private: AwsWafv2CustomRequestHandlingDetails m_customRequestHandling; bool m_customRequestHandlingHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws