AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StatefulRuleGroup.h
1
6#pragma once
7#include <aws/fms/FMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/fms/model/NetworkFirewallStatefulRuleGroupOverride.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace FMS
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_FMS_API StatefulRuleGroup() = default;
40
41
43
46 inline const Aws::String& GetRuleGroupName() const { return m_ruleGroupName; }
47 inline bool RuleGroupNameHasBeenSet() const { return m_ruleGroupNameHasBeenSet; }
48 template<typename RuleGroupNameT = Aws::String>
49 void SetRuleGroupName(RuleGroupNameT&& value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName = std::forward<RuleGroupNameT>(value); }
50 template<typename RuleGroupNameT = Aws::String>
51 StatefulRuleGroup& WithRuleGroupName(RuleGroupNameT&& value) { SetRuleGroupName(std::forward<RuleGroupNameT>(value)); return *this;}
53
55
58 inline const Aws::String& GetResourceId() const { return m_resourceId; }
59 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
60 template<typename ResourceIdT = Aws::String>
61 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
62 template<typename ResourceIdT = Aws::String>
63 StatefulRuleGroup& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
65
67
79 inline int GetPriority() const { return m_priority; }
80 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
81 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
82 inline StatefulRuleGroup& WithPriority(int value) { SetPriority(value); return *this;}
84
86
90 inline const NetworkFirewallStatefulRuleGroupOverride& GetOverride() const { return m_override; }
91 inline bool OverrideHasBeenSet() const { return m_overrideHasBeenSet; }
92 template<typename OverrideT = NetworkFirewallStatefulRuleGroupOverride>
93 void SetOverride(OverrideT&& value) { m_overrideHasBeenSet = true; m_override = std::forward<OverrideT>(value); }
94 template<typename OverrideT = NetworkFirewallStatefulRuleGroupOverride>
95 StatefulRuleGroup& WithOverride(OverrideT&& value) { SetOverride(std::forward<OverrideT>(value)); return *this;}
97 private:
98
99 Aws::String m_ruleGroupName;
100 bool m_ruleGroupNameHasBeenSet = false;
101
102 Aws::String m_resourceId;
103 bool m_resourceIdHasBeenSet = false;
104
105 int m_priority{0};
106 bool m_priorityHasBeenSet = false;
107
108 NetworkFirewallStatefulRuleGroupOverride m_override;
109 bool m_overrideHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace FMS
114} // namespace Aws
StatefulRuleGroup & WithOverride(OverrideT &&value)
StatefulRuleGroup & WithPriority(int value)
StatefulRuleGroup & WithRuleGroupName(RuleGroupNameT &&value)
const NetworkFirewallStatefulRuleGroupOverride & GetOverride() const
void SetOverride(OverrideT &&value)
AWS_FMS_API StatefulRuleGroup()=default
void SetRuleGroupName(RuleGroupNameT &&value)
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FMS_API StatefulRuleGroup(Aws::Utils::Json::JsonView jsonValue)
StatefulRuleGroup & WithResourceId(ResourceIdT &&value)
const Aws::String & GetRuleGroupName() const
const Aws::String & GetResourceId() const
AWS_FMS_API StatefulRuleGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetResourceId(ResourceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue