/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include This is the latest version of AWS WAF, named AWS WAFV2,
* released in November, 2019. For information, including how to migrate your AWS
* WAF resources from the prior release, see the AWS
* WAF Developer Guide. The action that AWS 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 AWS WAF to block the web request.
*/ inline const BlockAction& GetBlock() const{ return m_block; } /** *Instructs AWS WAF to block the web request.
*/ inline bool BlockHasBeenSet() const { return m_blockHasBeenSet; } /** *Instructs AWS WAF to block the web request.
*/ inline void SetBlock(const BlockAction& value) { m_blockHasBeenSet = true; m_block = value; } /** *Instructs AWS WAF to block the web request.
*/ inline void SetBlock(BlockAction&& value) { m_blockHasBeenSet = true; m_block = std::move(value); } /** *Instructs AWS WAF to block the web request.
*/ inline RuleAction& WithBlock(const BlockAction& value) { SetBlock(value); return *this;} /** *Instructs AWS WAF to block the web request.
*/ inline RuleAction& WithBlock(BlockAction&& value) { SetBlock(std::move(value)); return *this;} /** *Instructs AWS WAF to allow the web request.
*/ inline const AllowAction& GetAllow() const{ return m_allow; } /** *Instructs AWS WAF to allow the web request.
*/ inline bool AllowHasBeenSet() const { return m_allowHasBeenSet; } /** *Instructs AWS WAF to allow the web request.
*/ inline void SetAllow(const AllowAction& value) { m_allowHasBeenSet = true; m_allow = value; } /** *Instructs AWS WAF to allow the web request.
*/ inline void SetAllow(AllowAction&& value) { m_allowHasBeenSet = true; m_allow = std::move(value); } /** *Instructs AWS WAF to allow the web request.
*/ inline RuleAction& WithAllow(const AllowAction& value) { SetAllow(value); return *this;} /** *Instructs AWS WAF to allow the web request.
*/ inline RuleAction& WithAllow(AllowAction&& value) { SetAllow(std::move(value)); return *this;} /** *Instructs AWS WAF to count the web request and allow it.
*/ inline const CountAction& GetCount() const{ return m_count; } /** *Instructs AWS WAF to count the web request and allow it.
*/ inline bool CountHasBeenSet() const { return m_countHasBeenSet; } /** *Instructs AWS WAF to count the web request and allow it.
*/ inline void SetCount(const CountAction& value) { m_countHasBeenSet = true; m_count = value; } /** *Instructs AWS WAF to count the web request and allow it.
*/ inline void SetCount(CountAction&& value) { m_countHasBeenSet = true; m_count = std::move(value); } /** *Instructs AWS WAF to count the web request and allow it.
*/ inline RuleAction& WithCount(const CountAction& value) { SetCount(value); return *this;} /** *Instructs AWS WAF to count the web request and allow it.
*/ inline RuleAction& WithCount(CountAction&& value) { SetCount(std::move(value)); return *this;} private: BlockAction m_block; bool m_blockHasBeenSet; AllowAction m_allow; bool m_allowHasBeenSet; CountAction m_count; bool m_countHasBeenSet; }; } // namespace Model } // namespace WAFV2 } // namespace Aws