AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
RuleGroup.h
Go to the documentation of this file.
1
6#pragma once
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace NetworkFirewall
25{
26namespace Model
27{
28
44 {
45 public:
50
51
56 inline const RuleVariables& GetRuleVariables() const{ return m_ruleVariables; }
57
62 inline bool RuleVariablesHasBeenSet() const { return m_ruleVariablesHasBeenSet; }
63
68 inline void SetRuleVariables(const RuleVariables& value) { m_ruleVariablesHasBeenSet = true; m_ruleVariables = value; }
69
74 inline void SetRuleVariables(RuleVariables&& value) { m_ruleVariablesHasBeenSet = true; m_ruleVariables = std::move(value); }
75
80 inline RuleGroup& WithRuleVariables(const RuleVariables& value) { SetRuleVariables(value); return *this;}
81
86 inline RuleGroup& WithRuleVariables(RuleVariables&& value) { SetRuleVariables(std::move(value)); return *this;}
87
88
92 inline const ReferenceSets& GetReferenceSets() const{ return m_referenceSets; }
93
97 inline bool ReferenceSetsHasBeenSet() const { return m_referenceSetsHasBeenSet; }
98
102 inline void SetReferenceSets(const ReferenceSets& value) { m_referenceSetsHasBeenSet = true; m_referenceSets = value; }
103
107 inline void SetReferenceSets(ReferenceSets&& value) { m_referenceSetsHasBeenSet = true; m_referenceSets = std::move(value); }
108
112 inline RuleGroup& WithReferenceSets(const ReferenceSets& value) { SetReferenceSets(value); return *this;}
113
117 inline RuleGroup& WithReferenceSets(ReferenceSets&& value) { SetReferenceSets(std::move(value)); return *this;}
118
119
123 inline const RulesSource& GetRulesSource() const{ return m_rulesSource; }
124
128 inline bool RulesSourceHasBeenSet() const { return m_rulesSourceHasBeenSet; }
129
133 inline void SetRulesSource(const RulesSource& value) { m_rulesSourceHasBeenSet = true; m_rulesSource = value; }
134
138 inline void SetRulesSource(RulesSource&& value) { m_rulesSourceHasBeenSet = true; m_rulesSource = std::move(value); }
139
143 inline RuleGroup& WithRulesSource(const RulesSource& value) { SetRulesSource(value); return *this;}
144
148 inline RuleGroup& WithRulesSource(RulesSource&& value) { SetRulesSource(std::move(value)); return *this;}
149
150
156 inline const StatefulRuleOptions& GetStatefulRuleOptions() const{ return m_statefulRuleOptions; }
157
163 inline bool StatefulRuleOptionsHasBeenSet() const { return m_statefulRuleOptionsHasBeenSet; }
164
170 inline void SetStatefulRuleOptions(const StatefulRuleOptions& value) { m_statefulRuleOptionsHasBeenSet = true; m_statefulRuleOptions = value; }
171
177 inline void SetStatefulRuleOptions(StatefulRuleOptions&& value) { m_statefulRuleOptionsHasBeenSet = true; m_statefulRuleOptions = std::move(value); }
178
185
191 inline RuleGroup& WithStatefulRuleOptions(StatefulRuleOptions&& value) { SetStatefulRuleOptions(std::move(value)); return *this;}
192
193 private:
194
195 RuleVariables m_ruleVariables;
196 bool m_ruleVariablesHasBeenSet = false;
197
198 ReferenceSets m_referenceSets;
199 bool m_referenceSetsHasBeenSet = false;
200
201 RulesSource m_rulesSource;
202 bool m_rulesSourceHasBeenSet = false;
203
204 StatefulRuleOptions m_statefulRuleOptions;
205 bool m_statefulRuleOptionsHasBeenSet = false;
206 };
207
208} // namespace Model
209} // namespace NetworkFirewall
210} // namespace Aws
#define AWS_NETWORKFIREWALL_API
AWS_NETWORKFIREWALL_API RuleGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleGroup & WithStatefulRuleOptions(StatefulRuleOptions &&value)
Definition: RuleGroup.h:191
RuleGroup & WithRulesSource(RulesSource &&value)
Definition: RuleGroup.h:148
void SetRuleVariables(RuleVariables &&value)
Definition: RuleGroup.h:74
void SetRulesSource(RulesSource &&value)
Definition: RuleGroup.h:138
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReferenceSets(ReferenceSets &&value)
Definition: RuleGroup.h:107
const RulesSource & GetRulesSource() const
Definition: RuleGroup.h:123
void SetRuleVariables(const RuleVariables &value)
Definition: RuleGroup.h:68
void SetRulesSource(const RulesSource &value)
Definition: RuleGroup.h:133
RuleGroup & WithRuleVariables(RuleVariables &&value)
Definition: RuleGroup.h:86
const RuleVariables & GetRuleVariables() const
Definition: RuleGroup.h:56
RuleGroup & WithRulesSource(const RulesSource &value)
Definition: RuleGroup.h:143
const ReferenceSets & GetReferenceSets() const
Definition: RuleGroup.h:92
RuleGroup & WithStatefulRuleOptions(const StatefulRuleOptions &value)
Definition: RuleGroup.h:184
RuleGroup & WithRuleVariables(const RuleVariables &value)
Definition: RuleGroup.h:80
void SetReferenceSets(const ReferenceSets &value)
Definition: RuleGroup.h:102
void SetStatefulRuleOptions(const StatefulRuleOptions &value)
Definition: RuleGroup.h:170
const StatefulRuleOptions & GetStatefulRuleOptions() const
Definition: RuleGroup.h:156
RuleGroup & WithReferenceSets(ReferenceSets &&value)
Definition: RuleGroup.h:117
void SetStatefulRuleOptions(StatefulRuleOptions &&value)
Definition: RuleGroup.h:177
AWS_NETWORKFIREWALL_API RuleGroup(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFIREWALL_API RuleGroup()
RuleGroup & WithReferenceSets(const ReferenceSets &value)
Definition: RuleGroup.h:112