/** * 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 WAFV2 { namespace Model { /** *

Specifies how WAF should handle Challenge evaluations. This is * available at the web ACL level and in each rule.

See Also:

AWS * API Reference

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

Determines how long a challenge timestamp in the token remains valid after * the client successfully responds to a challenge.

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

Determines how long a challenge timestamp in the token remains valid after * the client successfully responds to a challenge.

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

Determines how long a challenge timestamp in the token remains valid after * the client successfully responds to a challenge.

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

Determines how long a challenge timestamp in the token remains valid after * the client successfully responds to a challenge.

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

Determines how long a challenge timestamp in the token remains valid after * the client successfully responds to a challenge.

*/ inline ChallengeConfig& WithImmunityTimeProperty(const ImmunityTimeProperty& value) { SetImmunityTimeProperty(value); return *this;} /** *

Determines how long a challenge timestamp in the token remains valid after * the client successfully responds to a challenge.

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