/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Identifier for a single stateful rule group, used in a firewall policy to
* refer to a rule group. See Also:
AWS
* API Reference
The Amazon Resource Name (ARN) of the stateful rule group.
*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *The Amazon Resource Name (ARN) of the stateful rule group.
*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the stateful rule group.
*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *The Amazon Resource Name (ARN) of the stateful rule group.
*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the stateful rule group.
*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *The Amazon Resource Name (ARN) of the stateful rule group.
*/ inline StatefulRuleGroupReference& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the stateful rule group.
*/ inline StatefulRuleGroupReference& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the stateful rule group.
*/ inline StatefulRuleGroupReference& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} /** *An integer setting that indicates the order in which to run the stateful rule
* groups in a single FirewallPolicy. This setting only applies to firewall
* policies that specify the STRICT_ORDER
rule order in the stateful
* engine options settings.
Network Firewall evalutes each stateful rule * group against a packet starting with the group that has the lowest priority * setting. You must ensure that the priority settings are unique within each * policy.
You can change the priority settings of your rule groups at any * time. To make it easier to insert rule groups later, number them so there's a * wide range in between, for example use 100, 200, and so on.
*/ inline int GetPriority() const{ return m_priority; } /** *An integer setting that indicates the order in which to run the stateful rule
* groups in a single FirewallPolicy. This setting only applies to firewall
* policies that specify the STRICT_ORDER
rule order in the stateful
* engine options settings.
Network Firewall evalutes each stateful rule * group against a packet starting with the group that has the lowest priority * setting. You must ensure that the priority settings are unique within each * policy.
You can change the priority settings of your rule groups at any * time. To make it easier to insert rule groups later, number them so there's a * wide range in between, for example use 100, 200, and so on.
*/ inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; } /** *An integer setting that indicates the order in which to run the stateful rule
* groups in a single FirewallPolicy. This setting only applies to firewall
* policies that specify the STRICT_ORDER
rule order in the stateful
* engine options settings.
Network Firewall evalutes each stateful rule * group against a packet starting with the group that has the lowest priority * setting. You must ensure that the priority settings are unique within each * policy.
You can change the priority settings of your rule groups at any * time. To make it easier to insert rule groups later, number them so there's a * wide range in between, for example use 100, 200, and so on.
*/ inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; } /** *An integer setting that indicates the order in which to run the stateful rule
* groups in a single FirewallPolicy. This setting only applies to firewall
* policies that specify the STRICT_ORDER
rule order in the stateful
* engine options settings.
Network Firewall evalutes each stateful rule * group against a packet starting with the group that has the lowest priority * setting. You must ensure that the priority settings are unique within each * policy.
You can change the priority settings of your rule groups at any * time. To make it easier to insert rule groups later, number them so there's a * wide range in between, for example use 100, 200, and so on.
*/ inline StatefulRuleGroupReference& WithPriority(int value) { SetPriority(value); return *this;} /** *The action that allows the policy owner to override the behavior of the rule * group within a policy.
*/ inline const StatefulRuleGroupOverride& GetOverride() const{ return m_override; } /** *The action that allows the policy owner to override the behavior of the rule * group within a policy.
*/ inline bool OverrideHasBeenSet() const { return m_overrideHasBeenSet; } /** *The action that allows the policy owner to override the behavior of the rule * group within a policy.
*/ inline void SetOverride(const StatefulRuleGroupOverride& value) { m_overrideHasBeenSet = true; m_override = value; } /** *The action that allows the policy owner to override the behavior of the rule * group within a policy.
*/ inline void SetOverride(StatefulRuleGroupOverride&& value) { m_overrideHasBeenSet = true; m_override = std::move(value); } /** *The action that allows the policy owner to override the behavior of the rule * group within a policy.
*/ inline StatefulRuleGroupReference& WithOverride(const StatefulRuleGroupOverride& value) { SetOverride(value); return *this;} /** *The action that allows the policy owner to override the behavior of the rule * group within a policy.
*/ inline StatefulRuleGroupReference& WithOverride(StatefulRuleGroupOverride&& value) { SetOverride(std::move(value)); return *this;} private: Aws::String m_resourceArn; bool m_resourceArnHasBeenSet = false; int m_priority; bool m_priorityHasBeenSet = false; StatefulRuleGroupOverride m_override; bool m_overrideHasBeenSet = false; }; } // namespace Model } // namespace NetworkFirewall } // namespace Aws