AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
40
41
43
46 inline const Aws::String& GetRuleGroupName() const{ return m_ruleGroupName; }
47 inline bool RuleGroupNameHasBeenSet() const { return m_ruleGroupNameHasBeenSet; }
48 inline void SetRuleGroupName(const Aws::String& value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName = value; }
49 inline void SetRuleGroupName(Aws::String&& value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName = std::move(value); }
50 inline void SetRuleGroupName(const char* value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName.assign(value); }
51 inline StatefulRuleGroup& WithRuleGroupName(const Aws::String& value) { SetRuleGroupName(value); return *this;}
52 inline StatefulRuleGroup& WithRuleGroupName(Aws::String&& value) { SetRuleGroupName(std::move(value)); return *this;}
53 inline StatefulRuleGroup& WithRuleGroupName(const char* value) { SetRuleGroupName(value); return *this;}
55
57
60 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
61 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
62 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
63 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
64 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
65 inline StatefulRuleGroup& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
66 inline StatefulRuleGroup& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
67 inline StatefulRuleGroup& WithResourceId(const char* value) { SetResourceId(value); return *this;}
69
71
83 inline int GetPriority() const{ return m_priority; }
84 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
85 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
86 inline StatefulRuleGroup& WithPriority(int value) { SetPriority(value); return *this;}
88
90
94 inline const NetworkFirewallStatefulRuleGroupOverride& GetOverride() const{ return m_override; }
95 inline bool OverrideHasBeenSet() const { return m_overrideHasBeenSet; }
96 inline void SetOverride(const NetworkFirewallStatefulRuleGroupOverride& value) { m_overrideHasBeenSet = true; m_override = value; }
97 inline void SetOverride(NetworkFirewallStatefulRuleGroupOverride&& value) { m_overrideHasBeenSet = true; m_override = std::move(value); }
99 inline StatefulRuleGroup& WithOverride(NetworkFirewallStatefulRuleGroupOverride&& value) { SetOverride(std::move(value)); return *this;}
101 private:
102
103 Aws::String m_ruleGroupName;
104 bool m_ruleGroupNameHasBeenSet = false;
105
106 Aws::String m_resourceId;
107 bool m_resourceIdHasBeenSet = false;
108
109 int m_priority;
110 bool m_priorityHasBeenSet = false;
111
113 bool m_overrideHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace FMS
118} // namespace Aws
StatefulRuleGroup & WithResourceId(const Aws::String &value)
StatefulRuleGroup & WithRuleGroupName(const Aws::String &value)
StatefulRuleGroup & WithResourceId(Aws::String &&value)
void SetResourceId(Aws::String &&value)
StatefulRuleGroup & WithPriority(int value)
void SetRuleGroupName(const Aws::String &value)
const NetworkFirewallStatefulRuleGroupOverride & GetOverride() const
StatefulRuleGroup & WithResourceId(const char *value)
void SetOverride(NetworkFirewallStatefulRuleGroupOverride &&value)
StatefulRuleGroup & WithOverride(NetworkFirewallStatefulRuleGroupOverride &&value)
StatefulRuleGroup & WithRuleGroupName(const char *value)
void SetRuleGroupName(Aws::String &&value)
void SetRuleGroupName(const char *value)
void SetOverride(const NetworkFirewallStatefulRuleGroupOverride &value)
StatefulRuleGroup & WithOverride(const NetworkFirewallStatefulRuleGroupOverride &value)
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResourceId(const Aws::String &value)
AWS_FMS_API StatefulRuleGroup(Aws::Utils::Json::JsonView jsonValue)
StatefulRuleGroup & WithRuleGroupName(Aws::String &&value)
const Aws::String & GetRuleGroupName() const
const Aws::String & GetResourceId() const
AWS_FMS_API StatefulRuleGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetResourceId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue