/** * 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 WAFV2 { 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 ImmunityTimeProperty { public: AWS_WAFV2_API ImmunityTimeProperty(); AWS_WAFV2_API ImmunityTimeProperty(Aws::Utils::Json::JsonView jsonValue); AWS_WAFV2_API ImmunityTimeProperty& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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

For * the Challenge action, the minimum setting is 300.

*/ 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. The default setting is 300.

For * the Challenge action, the minimum setting is 300.

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

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

For * the Challenge action, the minimum setting is 300.

*/ 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. The default setting is 300.

For * the Challenge action, the minimum setting is 300.

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