AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CaptchaResponse.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/model/FailureReason.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WAFV2
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_WAFV2_API CaptchaResponse() = default;
38 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline int GetResponseCode() const { return m_responseCode; }
48 inline bool ResponseCodeHasBeenSet() const { return m_responseCodeHasBeenSet; }
49 inline void SetResponseCode(int value) { m_responseCodeHasBeenSet = true; m_responseCode = value; }
50 inline CaptchaResponse& WithResponseCode(int value) { SetResponseCode(value); return *this;}
52
54
58 inline long long GetSolveTimestamp() const { return m_solveTimestamp; }
59 inline bool SolveTimestampHasBeenSet() const { return m_solveTimestampHasBeenSet; }
60 inline void SetSolveTimestamp(long long value) { m_solveTimestampHasBeenSet = true; m_solveTimestamp = value; }
61 inline CaptchaResponse& WithSolveTimestamp(long long value) { SetSolveTimestamp(value); return *this;}
63
65
68 inline FailureReason GetFailureReason() const { return m_failureReason; }
69 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
70 inline void SetFailureReason(FailureReason value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
71 inline CaptchaResponse& WithFailureReason(FailureReason value) { SetFailureReason(value); return *this;}
73 private:
74
75 int m_responseCode{0};
76 bool m_responseCodeHasBeenSet = false;
77
78 long long m_solveTimestamp{0};
79 bool m_solveTimestampHasBeenSet = false;
80
82 bool m_failureReasonHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace WAFV2
87} // namespace Aws
CaptchaResponse & WithResponseCode(int value)
void SetSolveTimestamp(long long value)
CaptchaResponse & WithFailureReason(FailureReason value)
CaptchaResponse & WithSolveTimestamp(long long value)
AWS_WAFV2_API CaptchaResponse(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WAFV2_API CaptchaResponse()=default
AWS_WAFV2_API CaptchaResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
FailureReason GetFailureReason() const
void SetFailureReason(FailureReason value)
Aws::Utils::Json::JsonValue JsonValue