AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RuleAction.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/model/BlockAction.h>
9#include <aws/wafv2/model/AllowAction.h>
10#include <aws/wafv2/model/CountAction.h>
11#include <aws/wafv2/model/CaptchaAction.h>
12#include <aws/wafv2/model/ChallengeAction.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace WAFV2
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_WAFV2_API RuleAction();
41 AWS_WAFV2_API RuleAction(Aws::Utils::Json::JsonView jsonValue);
43 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const BlockAction& GetBlock() const{ return m_block; }
51 inline bool BlockHasBeenSet() const { return m_blockHasBeenSet; }
52 inline void SetBlock(const BlockAction& value) { m_blockHasBeenSet = true; m_block = value; }
53 inline void SetBlock(BlockAction&& value) { m_blockHasBeenSet = true; m_block = std::move(value); }
54 inline RuleAction& WithBlock(const BlockAction& value) { SetBlock(value); return *this;}
55 inline RuleAction& WithBlock(BlockAction&& value) { SetBlock(std::move(value)); return *this;}
57
59
62 inline const AllowAction& GetAllow() const{ return m_allow; }
63 inline bool AllowHasBeenSet() const { return m_allowHasBeenSet; }
64 inline void SetAllow(const AllowAction& value) { m_allowHasBeenSet = true; m_allow = value; }
65 inline void SetAllow(AllowAction&& value) { m_allowHasBeenSet = true; m_allow = std::move(value); }
66 inline RuleAction& WithAllow(const AllowAction& value) { SetAllow(value); return *this;}
67 inline RuleAction& WithAllow(AllowAction&& value) { SetAllow(std::move(value)); return *this;}
69
71
75 inline const CountAction& GetCount() const{ return m_count; }
76 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
77 inline void SetCount(const CountAction& value) { m_countHasBeenSet = true; m_count = value; }
78 inline void SetCount(CountAction&& value) { m_countHasBeenSet = true; m_count = std::move(value); }
79 inline RuleAction& WithCount(const CountAction& value) { SetCount(value); return *this;}
80 inline RuleAction& WithCount(CountAction&& value) { SetCount(std::move(value)); return *this;}
82
84
88 inline const CaptchaAction& GetCaptcha() const{ return m_captcha; }
89 inline bool CaptchaHasBeenSet() const { return m_captchaHasBeenSet; }
90 inline void SetCaptcha(const CaptchaAction& value) { m_captchaHasBeenSet = true; m_captcha = value; }
91 inline void SetCaptcha(CaptchaAction&& value) { m_captchaHasBeenSet = true; m_captcha = std::move(value); }
92 inline RuleAction& WithCaptcha(const CaptchaAction& value) { SetCaptcha(value); return *this;}
93 inline RuleAction& WithCaptcha(CaptchaAction&& value) { SetCaptcha(std::move(value)); return *this;}
95
97
101 inline const ChallengeAction& GetChallenge() const{ return m_challenge; }
102 inline bool ChallengeHasBeenSet() const { return m_challengeHasBeenSet; }
103 inline void SetChallenge(const ChallengeAction& value) { m_challengeHasBeenSet = true; m_challenge = value; }
104 inline void SetChallenge(ChallengeAction&& value) { m_challengeHasBeenSet = true; m_challenge = std::move(value); }
105 inline RuleAction& WithChallenge(const ChallengeAction& value) { SetChallenge(value); return *this;}
106 inline RuleAction& WithChallenge(ChallengeAction&& value) { SetChallenge(std::move(value)); return *this;}
108 private:
109
110 BlockAction m_block;
111 bool m_blockHasBeenSet = false;
112
113 AllowAction m_allow;
114 bool m_allowHasBeenSet = false;
115
116 CountAction m_count;
117 bool m_countHasBeenSet = false;
118
119 CaptchaAction m_captcha;
120 bool m_captchaHasBeenSet = false;
121
122 ChallengeAction m_challenge;
123 bool m_challengeHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace WAFV2
128} // namespace Aws
void SetBlock(const BlockAction &value)
Definition RuleAction.h:52
AWS_WAFV2_API RuleAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCount(const CountAction &value)
Definition RuleAction.h:77
RuleAction & WithCount(const CountAction &value)
Definition RuleAction.h:79
RuleAction & WithCount(CountAction &&value)
Definition RuleAction.h:80
void SetChallenge(const ChallengeAction &value)
Definition RuleAction.h:103
void SetAllow(const AllowAction &value)
Definition RuleAction.h:64
void SetCount(CountAction &&value)
Definition RuleAction.h:78
const CaptchaAction & GetCaptcha() const
Definition RuleAction.h:88
RuleAction & WithAllow(const AllowAction &value)
Definition RuleAction.h:66
const AllowAction & GetAllow() const
Definition RuleAction.h:62
void SetChallenge(ChallengeAction &&value)
Definition RuleAction.h:104
RuleAction & WithCaptcha(const CaptchaAction &value)
Definition RuleAction.h:92
RuleAction & WithCaptcha(CaptchaAction &&value)
Definition RuleAction.h:93
RuleAction & WithBlock(BlockAction &&value)
Definition RuleAction.h:55
const CountAction & GetCount() const
Definition RuleAction.h:75
RuleAction & WithChallenge(ChallengeAction &&value)
Definition RuleAction.h:106
void SetCaptcha(const CaptchaAction &value)
Definition RuleAction.h:90
RuleAction & WithChallenge(const ChallengeAction &value)
Definition RuleAction.h:105
void SetAllow(AllowAction &&value)
Definition RuleAction.h:65
RuleAction & WithBlock(const BlockAction &value)
Definition RuleAction.h:54
const ChallengeAction & GetChallenge() const
Definition RuleAction.h:101
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
const BlockAction & GetBlock() const
Definition RuleAction.h:50
void SetBlock(BlockAction &&value)
Definition RuleAction.h:53
AWS_WAFV2_API RuleAction(Aws::Utils::Json::JsonView jsonValue)
RuleAction & WithAllow(AllowAction &&value)
Definition RuleAction.h:67
void SetCaptcha(CaptchaAction &&value)
Definition RuleAction.h:91
Aws::Utils::Json::JsonValue JsonValue