/**
* 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 FMS
{
namespace Model
{
/**
* The setting that allows the policy owner to change the behavior of the rule
* group within a policy.
See Also:
AWS
* API Reference
*/
class NetworkFirewallStatefulRuleGroupOverride
{
public:
AWS_FMS_API NetworkFirewallStatefulRuleGroupOverride();
AWS_FMS_API NetworkFirewallStatefulRuleGroupOverride(Aws::Utils::Json::JsonView jsonValue);
AWS_FMS_API NetworkFirewallStatefulRuleGroupOverride& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The action that changes the rule group from DROP
to
* ALERT
. This only applies to managed rule groups.
*/
inline const NetworkFirewallOverrideAction& GetAction() const{ return m_action; }
/**
* The action that changes the rule group from DROP
to
* ALERT
. This only applies to managed rule groups.
*/
inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
/**
* The action that changes the rule group from DROP
to
* ALERT
. This only applies to managed rule groups.
*/
inline void SetAction(const NetworkFirewallOverrideAction& value) { m_actionHasBeenSet = true; m_action = value; }
/**
* The action that changes the rule group from DROP
to
* ALERT
. This only applies to managed rule groups.
*/
inline void SetAction(NetworkFirewallOverrideAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
/**
* The action that changes the rule group from DROP
to
* ALERT
. This only applies to managed rule groups.
*/
inline NetworkFirewallStatefulRuleGroupOverride& WithAction(const NetworkFirewallOverrideAction& value) { SetAction(value); return *this;}
/**
* The action that changes the rule group from DROP
to
* ALERT
. This only applies to managed rule groups.
*/
inline NetworkFirewallStatefulRuleGroupOverride& WithAction(NetworkFirewallOverrideAction&& value) { SetAction(std::move(value)); return *this;}
private:
NetworkFirewallOverrideAction m_action;
bool m_actionHasBeenSet = false;
};
} // namespace Model
} // namespace FMS
} // namespace Aws