AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const FailureReason& GetFailureReason() const{ return m_failureReason; }
69 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
70 inline void SetFailureReason(const FailureReason& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
71 inline void SetFailureReason(FailureReason&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
72 inline CaptchaResponse& WithFailureReason(const FailureReason& value) { SetFailureReason(value); return *this;}
73 inline CaptchaResponse& WithFailureReason(FailureReason&& value) { SetFailureReason(std::move(value)); return *this;}
75 private:
76
77 int m_responseCode;
78 bool m_responseCodeHasBeenSet = false;
79
80 long long m_solveTimestamp;
81 bool m_solveTimestampHasBeenSet = false;
82
83 FailureReason m_failureReason;
84 bool m_failureReasonHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace WAFV2
89} // namespace Aws
CaptchaResponse & WithResponseCode(int value)
CaptchaResponse & WithFailureReason(const FailureReason &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
void SetFailureReason(FailureReason &&value)
void SetFailureReason(const FailureReason &value)
AWS_WAFV2_API CaptchaResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
const FailureReason & GetFailureReason() const
Aws::Utils::Json::JsonValue JsonValue