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

Used for CAPTCHA and challenge token settings. Determines how long a CAPTCHA * or challenge timestamp remains valid after WAF updates it for a successful * CAPTCHA or challenge response.

See Also:

AWS * API Reference

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

The amount of time, in seconds, that a CAPTCHA or challenge timestamp is * considered valid by WAF.

*/ inline long long GetImmunityTime() const{ return m_immunityTime; } /** *

The amount of time, in seconds, that a CAPTCHA or challenge timestamp is * considered valid by WAF.

*/ inline bool ImmunityTimeHasBeenSet() const { return m_immunityTimeHasBeenSet; } /** *

The amount of time, in seconds, that a CAPTCHA or challenge timestamp is * considered valid by WAF.

*/ inline void SetImmunityTime(long long value) { m_immunityTimeHasBeenSet = true; m_immunityTime = value; } /** *

The amount of time, in seconds, that a CAPTCHA or challenge timestamp is * considered valid by WAF.

*/ inline AwsWafv2WebAclCaptchaConfigImmunityTimePropertyDetails& WithImmunityTime(long long value) { SetImmunityTime(value); return *this;} private: long long m_immunityTime; bool m_immunityTimeHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws