/** * 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 how WAF should handle CAPTCHA evaluations for rules that don't * have their own CaptchaConfig settings.

See Also:

* AWS * API Reference

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

Determines how long a CAPTCHA timestamp in the token remains valid after the * client successfully solves a CAPTCHA puzzle.

*/ inline const AwsWafv2WebAclCaptchaConfigImmunityTimePropertyDetails& GetImmunityTimeProperty() const{ return m_immunityTimeProperty; } /** *

Determines how long a CAPTCHA timestamp in the token remains valid after the * client successfully solves a CAPTCHA puzzle.

*/ inline bool ImmunityTimePropertyHasBeenSet() const { return m_immunityTimePropertyHasBeenSet; } /** *

Determines how long a CAPTCHA timestamp in the token remains valid after the * client successfully solves a CAPTCHA puzzle.

*/ inline void SetImmunityTimeProperty(const AwsWafv2WebAclCaptchaConfigImmunityTimePropertyDetails& value) { m_immunityTimePropertyHasBeenSet = true; m_immunityTimeProperty = value; } /** *

Determines how long a CAPTCHA timestamp in the token remains valid after the * client successfully solves a CAPTCHA puzzle.

*/ inline void SetImmunityTimeProperty(AwsWafv2WebAclCaptchaConfigImmunityTimePropertyDetails&& value) { m_immunityTimePropertyHasBeenSet = true; m_immunityTimeProperty = std::move(value); } /** *

Determines how long a CAPTCHA timestamp in the token remains valid after the * client successfully solves a CAPTCHA puzzle.

*/ inline AwsWafv2WebAclCaptchaConfigDetails& WithImmunityTimeProperty(const AwsWafv2WebAclCaptchaConfigImmunityTimePropertyDetails& value) { SetImmunityTimeProperty(value); return *this;} /** *

Determines how long a CAPTCHA timestamp in the token remains valid after the * client successfully solves a CAPTCHA puzzle.

*/ inline AwsWafv2WebAclCaptchaConfigDetails& WithImmunityTimeProperty(AwsWafv2WebAclCaptchaConfigImmunityTimePropertyDetails&& value) { SetImmunityTimeProperty(std::move(value)); return *this;} private: AwsWafv2WebAclCaptchaConfigImmunityTimePropertyDetails m_immunityTimeProperty; bool m_immunityTimePropertyHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws