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

Details about an override action for a rule.

See Also:

AWS * API Reference

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

COUNT overrides the action specified by the individual rule * within a RuleGroup .

If set to NONE, the rule's * action takes place.

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

COUNT overrides the action specified by the individual rule * within a RuleGroup .

If set to NONE, the rule's * action takes place.

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

COUNT overrides the action specified by the individual rule * within a RuleGroup .

If set to NONE, the rule's * action takes place.

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

COUNT overrides the action specified by the individual rule * within a RuleGroup .

If set to NONE, the rule's * action takes place.

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

COUNT overrides the action specified by the individual rule * within a RuleGroup .

If set to NONE, the rule's * action takes place.

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

COUNT overrides the action specified by the individual rule * within a RuleGroup .

If set to NONE, the rule's * action takes place.

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

COUNT overrides the action specified by the individual rule * within a RuleGroup .

If set to NONE, the rule's * action takes place.

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

COUNT overrides the action specified by the individual rule * within a RuleGroup .

If set to NONE, the rule's * action takes place.

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