AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
StatefulRuleGroup.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/fms/FMS_EXPORTS.h>
9#include <aws/fms/model/NetworkFirewallStatefulRuleGroupOverride.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace FMS {
21namespace Model {
22
30 public:
31 AWS_FMS_API StatefulRuleGroup() = default;
35
37
40 inline const Aws::String& GetRuleGroupName() const { return m_ruleGroupName; }
41 inline bool RuleGroupNameHasBeenSet() const { return m_ruleGroupNameHasBeenSet; }
42 template <typename RuleGroupNameT = Aws::String>
43 void SetRuleGroupName(RuleGroupNameT&& value) {
44 m_ruleGroupNameHasBeenSet = true;
45 m_ruleGroupName = std::forward<RuleGroupNameT>(value);
46 }
47 template <typename RuleGroupNameT = Aws::String>
48 StatefulRuleGroup& WithRuleGroupName(RuleGroupNameT&& value) {
49 SetRuleGroupName(std::forward<RuleGroupNameT>(value));
50 return *this;
51 }
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) {
62 m_resourceIdHasBeenSet = true;
63 m_resourceId = std::forward<ResourceIdT>(value);
64 }
65 template <typename ResourceIdT = Aws::String>
66 StatefulRuleGroup& WithResourceId(ResourceIdT&& value) {
67 SetResourceId(std::forward<ResourceIdT>(value));
68 return *this;
69 }
71
73
85 inline int GetPriority() const { return m_priority; }
86 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
87 inline void SetPriority(int value) {
88 m_priorityHasBeenSet = true;
89 m_priority = value;
90 }
91 inline StatefulRuleGroup& WithPriority(int value) {
92 SetPriority(value);
93 return *this;
94 }
96
98
102 inline const NetworkFirewallStatefulRuleGroupOverride& GetOverride() const { return m_override; }
103 inline bool OverrideHasBeenSet() const { return m_overrideHasBeenSet; }
104 template <typename OverrideT = NetworkFirewallStatefulRuleGroupOverride>
105 void SetOverride(OverrideT&& value) {
106 m_overrideHasBeenSet = true;
107 m_override = std::forward<OverrideT>(value);
108 }
109 template <typename OverrideT = NetworkFirewallStatefulRuleGroupOverride>
110 StatefulRuleGroup& WithOverride(OverrideT&& value) {
111 SetOverride(std::forward<OverrideT>(value));
112 return *this;
113 }
115 private:
116 Aws::String m_ruleGroupName;
117
118 Aws::String m_resourceId;
119
120 int m_priority{0};
121
122 NetworkFirewallStatefulRuleGroupOverride m_override;
123 bool m_ruleGroupNameHasBeenSet = false;
124 bool m_resourceIdHasBeenSet = false;
125 bool m_priorityHasBeenSet = false;
126 bool m_overrideHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace FMS
131} // namespace Aws
StatefulRuleGroup & WithOverride(OverrideT &&value)
StatefulRuleGroup & WithPriority(int value)
StatefulRuleGroup & WithRuleGroupName(RuleGroupNameT &&value)
const NetworkFirewallStatefulRuleGroupOverride & GetOverride() const
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