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

Network Firewall stateless rule group, used in a * NetworkFirewallPolicyDescription.

See Also:

AWS * API Reference

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

The name of the rule group.

*/ inline const Aws::String& GetRuleGroupName() const{ return m_ruleGroupName; } /** *

The name of the rule group.

*/ inline bool RuleGroupNameHasBeenSet() const { return m_ruleGroupNameHasBeenSet; } /** *

The name of the rule group.

*/ inline void SetRuleGroupName(const Aws::String& value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName = value; } /** *

The name of the rule group.

*/ inline void SetRuleGroupName(Aws::String&& value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName = std::move(value); } /** *

The name of the rule group.

*/ inline void SetRuleGroupName(const char* value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName.assign(value); } /** *

The name of the rule group.

*/ inline StatelessRuleGroup& WithRuleGroupName(const Aws::String& value) { SetRuleGroupName(value); return *this;} /** *

The name of the rule group.

*/ inline StatelessRuleGroup& WithRuleGroupName(Aws::String&& value) { SetRuleGroupName(std::move(value)); return *this;} /** *

The name of the rule group.

*/ inline StatelessRuleGroup& WithRuleGroupName(const char* value) { SetRuleGroupName(value); return *this;} /** *

The resource ID of the rule group.

*/ inline const Aws::String& GetResourceId() const{ return m_resourceId; } /** *

The resource ID of the rule group.

*/ inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } /** *

The resource ID of the rule group.

*/ inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } /** *

The resource ID of the rule group.

*/ inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } /** *

The resource ID of the rule group.

*/ inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } /** *

The resource ID of the rule group.

*/ inline StatelessRuleGroup& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} /** *

The resource ID of the rule group.

*/ inline StatelessRuleGroup& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} /** *

The resource ID of the rule group.

*/ inline StatelessRuleGroup& WithResourceId(const char* value) { SetResourceId(value); return *this;} /** *

The priority of the rule group. Network Firewall evaluates the stateless rule * groups in a firewall policy starting from the lowest priority setting.

*/ inline int GetPriority() const{ return m_priority; } /** *

The priority of the rule group. Network Firewall evaluates the stateless rule * groups in a firewall policy starting from the lowest priority setting.

*/ inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; } /** *

The priority of the rule group. Network Firewall evaluates the stateless rule * groups in a firewall policy starting from the lowest priority setting.

*/ inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; } /** *

The priority of the rule group. Network Firewall evaluates the stateless rule * groups in a firewall policy starting from the lowest priority setting.

*/ inline StatelessRuleGroup& WithPriority(int value) { SetPriority(value); return *this;} private: Aws::String m_ruleGroupName; bool m_ruleGroupNameHasBeenSet = false; Aws::String m_resourceId; bool m_resourceIdHasBeenSet = false; int m_priority; bool m_priorityHasBeenSet = false; }; } // namespace Model } // namespace FMS } // namespace Aws