/** * 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 { /** *

Provides information about what action WAF should take on a web request when * it matches the criteria defined in the rule.

See Also:

AWS * API Reference

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

The action that WAF should take on a web request when it matches the rule's * statement.

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

The action that WAF should take on a web request when it matches the rule's * statement.

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

The action that WAF should take on a web request when it matches the rule's * statement.

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

The action that WAF should take on a web request when it matches the rule's * statement.

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

The action that WAF should take on a web request when it matches the rule's * statement.

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

The action that WAF should take on a web request when it matches the rule's * statement.

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

The action that WAF should take on a web request when it matches the rule's * statement.

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

The action that WAF should take on a web request when it matches the rule's * statement.

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