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>
52 template<
typename BlockT = BlockAction>
53 void SetBlock(
BlockT&& value) { m_blockHasBeenSet =
true; m_block = std::forward<BlockT>(value); }
54 template<
typename BlockT = BlockAction>
64 template<
typename AllowT = AllowAction>
65 void SetAllow(
AllowT&& value) { m_allowHasBeenSet =
true; m_allow = std::forward<AllowT>(value); }
66 template<
typename AllowT = AllowAction>
77 template<
typename CountT = CountAction>
78 void SetCount(
CountT&& value) { m_countHasBeenSet =
true; m_count = std::forward<CountT>(value); }
79 template<
typename CountT = CountAction>
90 template<
typename CaptchaT = CaptchaAction>
91 void SetCaptcha(
CaptchaT&& value) { m_captchaHasBeenSet =
true; m_captcha = std::forward<CaptchaT>(value); }
92 template<
typename CaptchaT = CaptchaAction>
103 template<
typename ChallengeT = ChallengeAction>
105 template<
typename ChallengeT = ChallengeAction>
111 bool m_blockHasBeenSet =
false;
114 bool m_allowHasBeenSet =
false;
117 bool m_countHasBeenSet =
false;
120 bool m_captchaHasBeenSet =
false;
123 bool m_challengeHasBeenSet =
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)
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
RuleAction & WithAllow(AllowT &&value)
const BlockAction & GetBlock() const
AWS_WAFV2_API RuleAction(Aws::Utils::Json::JsonView jsonValue)
void SetAllow(AllowT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue