AWS SDK for C++

AWS SDK for C++ Version 1.11.932

Loading...
Searching...
No Matches
ChallengeAction.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/model/CustomRequestHandling.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace WAFV2 {
20namespace Model {
21
53 public:
54 AWS_WAFV2_API ChallengeAction() = default;
57 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
58
60
67 inline const CustomRequestHandling& GetCustomRequestHandling() const { return m_customRequestHandling; }
68 inline bool CustomRequestHandlingHasBeenSet() const { return m_customRequestHandlingHasBeenSet; }
69 template <typename CustomRequestHandlingT = CustomRequestHandling>
70 void SetCustomRequestHandling(CustomRequestHandlingT&& value) {
71 m_customRequestHandlingHasBeenSet = true;
72 m_customRequestHandling = std::forward<CustomRequestHandlingT>(value);
73 }
74 template <typename CustomRequestHandlingT = CustomRequestHandling>
75 ChallengeAction& WithCustomRequestHandling(CustomRequestHandlingT&& value) {
76 SetCustomRequestHandling(std::forward<CustomRequestHandlingT>(value));
77 return *this;
78 }
80 private:
81 CustomRequestHandling m_customRequestHandling;
82 bool m_customRequestHandlingHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace WAFV2
87} // namespace Aws
const CustomRequestHandling & GetCustomRequestHandling() const
AWS_WAFV2_API ChallengeAction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API ChallengeAction()=default
AWS_WAFV2_API ChallengeAction(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
ChallengeAction & WithCustomRequestHandling(CustomRequestHandlingT &&value)
void SetCustomRequestHandling(CustomRequestHandlingT &&value)
Aws::Utils::Json::JsonValue JsonValue