/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The result from the inspection of the web request for a valid
* CAPTCHA
token. See Also:
AWS
* API Reference
The HTTP response code indicating the status of the CAPTCHA
* token in the web request. If the token is missing, invalid, or expired, this
* code is 405 Method Not Allowed
.
The HTTP response code indicating the status of the CAPTCHA
* token in the web request. If the token is missing, invalid, or expired, this
* code is 405 Method Not Allowed
.
The HTTP response code indicating the status of the CAPTCHA
* token in the web request. If the token is missing, invalid, or expired, this
* code is 405 Method Not Allowed
.
The HTTP response code indicating the status of the CAPTCHA
* token in the web request. If the token is missing, invalid, or expired, this
* code is 405 Method Not Allowed
.
The time that the CAPTCHA
was last solved for the supplied
* token.
The time that the CAPTCHA
was last solved for the supplied
* token.
The time that the CAPTCHA
was last solved for the supplied
* token.
The time that the CAPTCHA
was last solved for the supplied
* token.
The reason for failure, populated when the evaluation of the token fails.
*/ inline const FailureReason& GetFailureReason() const{ return m_failureReason; } /** *The reason for failure, populated when the evaluation of the token fails.
*/ inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; } /** *The reason for failure, populated when the evaluation of the token fails.
*/ inline void SetFailureReason(const FailureReason& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; } /** *The reason for failure, populated when the evaluation of the token fails.
*/ inline void SetFailureReason(FailureReason&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); } /** *The reason for failure, populated when the evaluation of the token fails.
*/ inline CaptchaResponse& WithFailureReason(const FailureReason& value) { SetFailureReason(value); return *this;} /** *The reason for failure, populated when the evaluation of the token fails.
*/ inline CaptchaResponse& WithFailureReason(FailureReason&& value) { SetFailureReason(std::move(value)); return *this;} private: int m_responseCode; bool m_responseCodeHasBeenSet = false; long long m_solveTimestamp; bool m_solveTimestampHasBeenSet = false; FailureReason m_failureReason; bool m_failureReasonHasBeenSet = false; }; } // namespace Model } // namespace WAFV2 } // namespace Aws