/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

Describes the action that WAF should take on a web request when it matches * the criteria defined in the rule.

See Also:

AWS * API Reference

*/ class AwsWafRegionalRuleGroupRulesActionDetails { public: AWS_SECURITYHUB_API AwsWafRegionalRuleGroupRulesActionDetails(); AWS_SECURITYHUB_API AwsWafRegionalRuleGroupRulesActionDetails(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsWafRegionalRuleGroupRulesActionDetails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Specifies the ByteMatchSet, IPSet, * SqlInjectionMatchSet, XssMatchSet, * RegexMatchSet, GeoMatchSet, and * SizeConstraintSet objects that you want to add to a rule and, for * each object, indicates whether you want to negate the settings.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

Specifies the ByteMatchSet, IPSet, * SqlInjectionMatchSet, XssMatchSet, * RegexMatchSet, GeoMatchSet, and * SizeConstraintSet objects that you want to add to a rule and, for * each object, indicates whether you want to negate the settings.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

Specifies the ByteMatchSet, IPSet, * SqlInjectionMatchSet, XssMatchSet, * RegexMatchSet, GeoMatchSet, and * SizeConstraintSet objects that you want to add to a rule and, for * each object, indicates whether you want to negate the settings.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

Specifies the ByteMatchSet, IPSet, * SqlInjectionMatchSet, XssMatchSet, * RegexMatchSet, GeoMatchSet, and * SizeConstraintSet objects that you want to add to a rule and, for * each object, indicates whether you want to negate the settings.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

Specifies the ByteMatchSet, IPSet, * SqlInjectionMatchSet, XssMatchSet, * RegexMatchSet, GeoMatchSet, and * SizeConstraintSet objects that you want to add to a rule and, for * each object, indicates whether you want to negate the settings.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

Specifies the ByteMatchSet, IPSet, * SqlInjectionMatchSet, XssMatchSet, * RegexMatchSet, GeoMatchSet, and * SizeConstraintSet objects that you want to add to a rule and, for * each object, indicates whether you want to negate the settings.

*/ inline AwsWafRegionalRuleGroupRulesActionDetails& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

Specifies the ByteMatchSet, IPSet, * SqlInjectionMatchSet, XssMatchSet, * RegexMatchSet, GeoMatchSet, and * SizeConstraintSet objects that you want to add to a rule and, for * each object, indicates whether you want to negate the settings.

*/ inline AwsWafRegionalRuleGroupRulesActionDetails& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

Specifies the ByteMatchSet, IPSet, * SqlInjectionMatchSet, XssMatchSet, * RegexMatchSet, GeoMatchSet, and * SizeConstraintSet objects that you want to add to a rule and, for * each object, indicates whether you want to negate the settings.

*/ inline AwsWafRegionalRuleGroupRulesActionDetails& WithType(const char* value) { SetType(value); return *this;} private: Aws::String m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws