/** * 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 NetworkFirewall { namespace Model { /** *

Identifier for a single stateless rule group, used in a firewall policy to * refer to the rule group.

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the stateless rule group.

*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *

The Amazon Resource Name (ARN) of the stateless rule group.

*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the stateless rule group.

*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *

The Amazon Resource Name (ARN) of the stateless rule group.

*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the stateless rule group.

*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the stateless rule group.

*/ inline StatelessRuleGroupReference& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the stateless rule group.

*/ inline StatelessRuleGroupReference& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the stateless rule group.

*/ inline StatelessRuleGroupReference& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} /** *

An integer setting that indicates the order in which to run the stateless * rule groups in a single FirewallPolicy. Network Firewall applies each * stateless rule group to a packet starting with the group that has the lowest * priority setting. You must ensure that the priority settings are unique within * each policy.

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

An integer setting that indicates the order in which to run the stateless * rule groups in a single FirewallPolicy. Network Firewall applies each * stateless rule group to a packet starting with the group that has the lowest * priority setting. You must ensure that the priority settings are unique within * each policy.

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

An integer setting that indicates the order in which to run the stateless * rule groups in a single FirewallPolicy. Network Firewall applies each * stateless rule group to a packet starting with the group that has the lowest * priority setting. You must ensure that the priority settings are unique within * each policy.

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

An integer setting that indicates the order in which to run the stateless * rule groups in a single FirewallPolicy. Network Firewall applies each * stateless rule group to a packet starting with the group that has the lowest * priority setting. You must ensure that the priority settings are unique within * each policy.

*/ inline StatelessRuleGroupReference& WithPriority(int value) { SetPriority(value); return *this;} private: Aws::String m_resourceArn; bool m_resourceArnHasBeenSet = false; int m_priority; bool m_priorityHasBeenSet = false; }; } // namespace Model } // namespace NetworkFirewall } // namespace Aws