AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ChallengeResponse.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 ChallengeResponse();
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 ChallengeResponse& WithResponseCode(int value) { SetResponseCode(value); return *this;}
52
54
57 inline long long GetSolveTimestamp() const{ return m_solveTimestamp; }
58 inline bool SolveTimestampHasBeenSet() const { return m_solveTimestampHasBeenSet; }
59 inline void SetSolveTimestamp(long long value) { m_solveTimestampHasBeenSet = true; m_solveTimestamp = value; }
60 inline ChallengeResponse& WithSolveTimestamp(long long value) { SetSolveTimestamp(value); return *this;}
62
64
67 inline const FailureReason& GetFailureReason() const{ return m_failureReason; }
68 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
69 inline void SetFailureReason(const FailureReason& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
70 inline void SetFailureReason(FailureReason&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
71 inline ChallengeResponse& WithFailureReason(const FailureReason& value) { SetFailureReason(value); return *this;}
72 inline ChallengeResponse& WithFailureReason(FailureReason&& value) { SetFailureReason(std::move(value)); return *this;}
74 private:
75
76 int m_responseCode;
77 bool m_responseCodeHasBeenSet = false;
78
79 long long m_solveTimestamp;
80 bool m_solveTimestampHasBeenSet = false;
81
82 FailureReason m_failureReason;
83 bool m_failureReasonHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace WAFV2
88} // namespace Aws
ChallengeResponse & WithSolveTimestamp(long long value)
void SetFailureReason(const FailureReason &value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WAFV2_API ChallengeResponse(Aws::Utils::Json::JsonView jsonValue)
ChallengeResponse & WithFailureReason(const FailureReason &value)
const FailureReason & GetFailureReason() const
void SetFailureReason(FailureReason &&value)
ChallengeResponse & WithFailureReason(FailureReason &&value)
AWS_WAFV2_API ChallengeResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
ChallengeResponse & WithResponseCode(int value)
Aws::Utils::Json::JsonValue JsonValue