7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/model/AllowAction.h>
9#include <aws/wafv2/model/BlockAction.h>
10#include <aws/wafv2/model/CaptchaAction.h>
11#include <aws/wafv2/model/ChallengeAction.h>
12#include <aws/wafv2/model/CountAction.h>
13#include <aws/wafv2/model/MonetizeAction.h>
47 template <
typename BlockT = BlockAction>
49 m_blockHasBeenSet =
true;
50 m_block = std::forward<BlockT>(value);
52 template <
typename BlockT = BlockAction>
54 SetBlock(std::forward<BlockT>(value));
65 template <
typename AllowT = AllowAction>
67 m_allowHasBeenSet =
true;
68 m_allow = std::forward<AllowT>(value);
70 template <
typename AllowT = AllowAction>
72 SetAllow(std::forward<AllowT>(value));
84 template <
typename CountT = CountAction>
86 m_countHasBeenSet =
true;
87 m_count = std::forward<CountT>(value);
89 template <
typename CountT = CountAction>
91 SetCount(std::forward<CountT>(value));
103 template <
typename CaptchaT = CaptchaAction>
105 m_captchaHasBeenSet =
true;
106 m_captcha = std::forward<CaptchaT>(value);
108 template <
typename CaptchaT = CaptchaAction>
122 template <
typename ChallengeT = ChallengeAction>
124 m_challengeHasBeenSet =
true;
125 m_challenge = std::forward<ChallengeT>(value);
127 template <
typename ChallengeT = ChallengeAction>
145 template <
typename MonetizeT = MonetizeAction>
147 m_monetizeHasBeenSet =
true;
148 m_monetize = std::forward<MonetizeT>(value);
150 template <
typename MonetizeT = MonetizeAction>
168 bool m_blockHasBeenSet =
false;
169 bool m_allowHasBeenSet =
false;
170 bool m_countHasBeenSet =
false;
171 bool m_captchaHasBeenSet =
false;
172 bool m_challengeHasBeenSet =
false;
173 bool m_monetizeHasBeenSet =
false;
AWS_WAFV2_API RuleAction & operator=(Aws::Utils::Json::JsonView jsonValue)
bool CaptchaHasBeenSet() const
void SetBlock(BlockT &&value)
RuleAction & WithBlock(BlockT &&value)
const CaptchaAction & GetCaptcha() const
RuleAction & WithCaptcha(CaptchaT &&value)
const AllowAction & GetAllow() const
void SetChallenge(ChallengeT &&value)
AWS_WAFV2_API RuleAction()=default
void SetCaptcha(CaptchaT &&value)
const CountAction & GetCount() const
RuleAction & WithCount(CountT &&value)
RuleAction & WithChallenge(ChallengeT &&value)
void SetMonetize(MonetizeT &&value)
bool BlockHasBeenSet() const
void SetCount(CountT &&value)
bool CountHasBeenSet() const
bool AllowHasBeenSet() const
const ChallengeAction & GetChallenge() const
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
bool ChallengeHasBeenSet() const
bool MonetizeHasBeenSet() const
const MonetizeAction & GetMonetize() const
RuleAction & WithAllow(AllowT &&value)
const BlockAction & GetBlock() const
AWS_WAFV2_API RuleAction(Aws::Utils::Json::JsonView jsonValue)
void SetAllow(AllowT &&value)
RuleAction & WithMonetize(MonetizeT &&value)
Aws::Utils::Json::JsonValue JsonValue