AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
StatefulRule.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
40 {
41 public:
46
47
70 inline const StatefulAction& GetAction() const{ return m_action; }
71
94 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
95
118 inline void SetAction(const StatefulAction& value) { m_actionHasBeenSet = true; m_action = value; }
119
142 inline void SetAction(StatefulAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
143
166 inline StatefulRule& WithAction(const StatefulAction& value) { SetAction(value); return *this;}
167
190 inline StatefulRule& WithAction(StatefulAction&& value) { SetAction(std::move(value)); return *this;}
191
192
197 inline const Header& GetHeader() const{ return m_header; }
198
203 inline bool HeaderHasBeenSet() const { return m_headerHasBeenSet; }
204
209 inline void SetHeader(const Header& value) { m_headerHasBeenSet = true; m_header = value; }
210
215 inline void SetHeader(Header&& value) { m_headerHasBeenSet = true; m_header = std::move(value); }
216
221 inline StatefulRule& WithHeader(const Header& value) { SetHeader(value); return *this;}
222
227 inline StatefulRule& WithHeader(Header&& value) { SetHeader(std::move(value)); return *this;}
228
229
234 inline const Aws::Vector<RuleOption>& GetRuleOptions() const{ return m_ruleOptions; }
235
240 inline bool RuleOptionsHasBeenSet() const { return m_ruleOptionsHasBeenSet; }
241
246 inline void SetRuleOptions(const Aws::Vector<RuleOption>& value) { m_ruleOptionsHasBeenSet = true; m_ruleOptions = value; }
247
252 inline void SetRuleOptions(Aws::Vector<RuleOption>&& value) { m_ruleOptionsHasBeenSet = true; m_ruleOptions = std::move(value); }
253
258 inline StatefulRule& WithRuleOptions(const Aws::Vector<RuleOption>& value) { SetRuleOptions(value); return *this;}
259
264 inline StatefulRule& WithRuleOptions(Aws::Vector<RuleOption>&& value) { SetRuleOptions(std::move(value)); return *this;}
265
270 inline StatefulRule& AddRuleOptions(const RuleOption& value) { m_ruleOptionsHasBeenSet = true; m_ruleOptions.push_back(value); return *this; }
271
276 inline StatefulRule& AddRuleOptions(RuleOption&& value) { m_ruleOptionsHasBeenSet = true; m_ruleOptions.push_back(std::move(value)); return *this; }
277
278 private:
279
280 StatefulAction m_action;
281 bool m_actionHasBeenSet = false;
282
283 Header m_header;
284 bool m_headerHasBeenSet = false;
285
286 Aws::Vector<RuleOption> m_ruleOptions;
287 bool m_ruleOptionsHasBeenSet = false;
288 };
289
290} // namespace Model
291} // namespace NetworkFirewall
292} // namespace Aws
#define AWS_NETWORKFIREWALL_API
StatefulRule & WithAction(const StatefulAction &value)
Definition: StatefulRule.h:166
StatefulRule & WithAction(StatefulAction &&value)
Definition: StatefulRule.h:190
AWS_NETWORKFIREWALL_API StatefulRule(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
StatefulRule & WithRuleOptions(const Aws::Vector< RuleOption > &value)
Definition: StatefulRule.h:258
const Aws::Vector< RuleOption > & GetRuleOptions() const
Definition: StatefulRule.h:234
StatefulRule & AddRuleOptions(const RuleOption &value)
Definition: StatefulRule.h:270
void SetAction(StatefulAction &&value)
Definition: StatefulRule.h:142
StatefulRule & WithHeader(const Header &value)
Definition: StatefulRule.h:221
void SetAction(const StatefulAction &value)
Definition: StatefulRule.h:118
AWS_NETWORKFIREWALL_API StatefulRule()
const StatefulAction & GetAction() const
Definition: StatefulRule.h:70
void SetHeader(const Header &value)
Definition: StatefulRule.h:209
StatefulRule & WithRuleOptions(Aws::Vector< RuleOption > &&value)
Definition: StatefulRule.h:264
StatefulRule & WithHeader(Header &&value)
Definition: StatefulRule.h:227
void SetRuleOptions(const Aws::Vector< RuleOption > &value)
Definition: StatefulRule.h:246
AWS_NETWORKFIREWALL_API StatefulRule & operator=(Aws::Utils::Json::JsonView jsonValue)
StatefulRule & AddRuleOptions(RuleOption &&value)
Definition: StatefulRule.h:276
void SetRuleOptions(Aws::Vector< RuleOption > &&value)
Definition: StatefulRule.h:252
std::vector< T, Aws::Allocator< T > > Vector