/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The action that WAF should take on a web request when it matches a rule's
* statement. Settings at the web ACL level can override the rule action setting.
* See Also:
AWS
* API Reference
Instructs WAF to block the web request.
*/ inline const BlockAction& GetBlock() const{ return m_block; } /** *Instructs WAF to block the web request.
*/ inline bool BlockHasBeenSet() const { return m_blockHasBeenSet; } /** *Instructs WAF to block the web request.
*/ inline void SetBlock(const BlockAction& value) { m_blockHasBeenSet = true; m_block = value; } /** *Instructs WAF to block the web request.
*/ inline void SetBlock(BlockAction&& value) { m_blockHasBeenSet = true; m_block = std::move(value); } /** *Instructs WAF to block the web request.
*/ inline RuleAction& WithBlock(const BlockAction& value) { SetBlock(value); return *this;} /** *Instructs WAF to block the web request.
*/ inline RuleAction& WithBlock(BlockAction&& value) { SetBlock(std::move(value)); return *this;} /** *Instructs WAF to allow the web request.
*/ inline const AllowAction& GetAllow() const{ return m_allow; } /** *Instructs WAF to allow the web request.
*/ inline bool AllowHasBeenSet() const { return m_allowHasBeenSet; } /** *Instructs WAF to allow the web request.
*/ inline void SetAllow(const AllowAction& value) { m_allowHasBeenSet = true; m_allow = value; } /** *Instructs WAF to allow the web request.
*/ inline void SetAllow(AllowAction&& value) { m_allowHasBeenSet = true; m_allow = std::move(value); } /** *Instructs WAF to allow the web request.
*/ inline RuleAction& WithAllow(const AllowAction& value) { SetAllow(value); return *this;} /** *Instructs WAF to allow the web request.
*/ inline RuleAction& WithAllow(AllowAction&& value) { SetAllow(std::move(value)); return *this;} /** *Instructs WAF to count the web request and then continue evaluating the * request using the remaining rules in the web ACL.
*/ inline const CountAction& GetCount() const{ return m_count; } /** *Instructs WAF to count the web request and then continue evaluating the * request using the remaining rules in the web ACL.
*/ inline bool CountHasBeenSet() const { return m_countHasBeenSet; } /** *Instructs WAF to count the web request and then continue evaluating the * request using the remaining rules in the web ACL.
*/ inline void SetCount(const CountAction& value) { m_countHasBeenSet = true; m_count = value; } /** *Instructs WAF to count the web request and then continue evaluating the * request using the remaining rules in the web ACL.
*/ inline void SetCount(CountAction&& value) { m_countHasBeenSet = true; m_count = std::move(value); } /** *Instructs WAF to count the web request and then continue evaluating the * request using the remaining rules in the web ACL.
*/ inline RuleAction& WithCount(const CountAction& value) { SetCount(value); return *this;} /** *Instructs WAF to count the web request and then continue evaluating the * request using the remaining rules in the web ACL.
*/ inline RuleAction& WithCount(CountAction&& value) { SetCount(std::move(value)); return *this;} /** *Instructs WAF to run a CAPTCHA
check against the web
* request.
Instructs WAF to run a CAPTCHA
check against the web
* request.
Instructs WAF to run a CAPTCHA
check against the web
* request.
Instructs WAF to run a CAPTCHA
check against the web
* request.
Instructs WAF to run a CAPTCHA
check against the web
* request.
Instructs WAF to run a CAPTCHA
check against the web
* request.
Instructs WAF to run a Challenge
check against the web
* request.
Instructs WAF to run a Challenge
check against the web
* request.
Instructs WAF to run a Challenge
check against the web
* request.
Instructs WAF to run a Challenge
check against the web
* request.
Instructs WAF to run a Challenge
check against the web
* request.
Instructs WAF to run a Challenge
check against the web
* request.