AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RuleGroup.h
1
6#pragma once
7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/network-firewall/model/RuleVariables.h>
9#include <aws/network-firewall/model/ReferenceSets.h>
10#include <aws/network-firewall/model/RulesSource.h>
11#include <aws/network-firewall/model/StatefulRuleOptions.h>
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:
46 AWS_NETWORKFIREWALL_API RuleGroup();
47 AWS_NETWORKFIREWALL_API RuleGroup(Aws::Utils::Json::JsonView jsonValue);
48 AWS_NETWORKFIREWALL_API RuleGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
49 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
57 inline const RuleVariables& GetRuleVariables() const{ return m_ruleVariables; }
58 inline bool RuleVariablesHasBeenSet() const { return m_ruleVariablesHasBeenSet; }
59 inline void SetRuleVariables(const RuleVariables& value) { m_ruleVariablesHasBeenSet = true; m_ruleVariables = value; }
60 inline void SetRuleVariables(RuleVariables&& value) { m_ruleVariablesHasBeenSet = true; m_ruleVariables = std::move(value); }
61 inline RuleGroup& WithRuleVariables(const RuleVariables& value) { SetRuleVariables(value); return *this;}
62 inline RuleGroup& WithRuleVariables(RuleVariables&& value) { SetRuleVariables(std::move(value)); return *this;}
64
66
69 inline const ReferenceSets& GetReferenceSets() const{ return m_referenceSets; }
70 inline bool ReferenceSetsHasBeenSet() const { return m_referenceSetsHasBeenSet; }
71 inline void SetReferenceSets(const ReferenceSets& value) { m_referenceSetsHasBeenSet = true; m_referenceSets = value; }
72 inline void SetReferenceSets(ReferenceSets&& value) { m_referenceSetsHasBeenSet = true; m_referenceSets = std::move(value); }
73 inline RuleGroup& WithReferenceSets(const ReferenceSets& value) { SetReferenceSets(value); return *this;}
74 inline RuleGroup& WithReferenceSets(ReferenceSets&& value) { SetReferenceSets(std::move(value)); return *this;}
76
78
81 inline const RulesSource& GetRulesSource() const{ return m_rulesSource; }
82 inline bool RulesSourceHasBeenSet() const { return m_rulesSourceHasBeenSet; }
83 inline void SetRulesSource(const RulesSource& value) { m_rulesSourceHasBeenSet = true; m_rulesSource = value; }
84 inline void SetRulesSource(RulesSource&& value) { m_rulesSourceHasBeenSet = true; m_rulesSource = std::move(value); }
85 inline RuleGroup& WithRulesSource(const RulesSource& value) { SetRulesSource(value); return *this;}
86 inline RuleGroup& WithRulesSource(RulesSource&& value) { SetRulesSource(std::move(value)); return *this;}
88
90
98 inline const StatefulRuleOptions& GetStatefulRuleOptions() const{ return m_statefulRuleOptions; }
99 inline bool StatefulRuleOptionsHasBeenSet() const { return m_statefulRuleOptionsHasBeenSet; }
100 inline void SetStatefulRuleOptions(const StatefulRuleOptions& value) { m_statefulRuleOptionsHasBeenSet = true; m_statefulRuleOptions = value; }
101 inline void SetStatefulRuleOptions(StatefulRuleOptions&& value) { m_statefulRuleOptionsHasBeenSet = true; m_statefulRuleOptions = std::move(value); }
103 inline RuleGroup& WithStatefulRuleOptions(StatefulRuleOptions&& value) { SetStatefulRuleOptions(std::move(value)); return *this;}
105 private:
106
107 RuleVariables m_ruleVariables;
108 bool m_ruleVariablesHasBeenSet = false;
109
110 ReferenceSets m_referenceSets;
111 bool m_referenceSetsHasBeenSet = false;
112
113 RulesSource m_rulesSource;
114 bool m_rulesSourceHasBeenSet = false;
115
116 StatefulRuleOptions m_statefulRuleOptions;
117 bool m_statefulRuleOptionsHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace NetworkFirewall
122} // namespace Aws
AWS_NETWORKFIREWALL_API RuleGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleGroup & WithStatefulRuleOptions(StatefulRuleOptions &&value)
Definition RuleGroup.h:103
RuleGroup & WithRulesSource(RulesSource &&value)
Definition RuleGroup.h:86
void SetRuleVariables(RuleVariables &&value)
Definition RuleGroup.h:60
void SetRulesSource(RulesSource &&value)
Definition RuleGroup.h:84
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReferenceSets(ReferenceSets &&value)
Definition RuleGroup.h:72
const RulesSource & GetRulesSource() const
Definition RuleGroup.h:81
void SetRuleVariables(const RuleVariables &value)
Definition RuleGroup.h:59
void SetRulesSource(const RulesSource &value)
Definition RuleGroup.h:83
RuleGroup & WithRuleVariables(RuleVariables &&value)
Definition RuleGroup.h:62
const RuleVariables & GetRuleVariables() const
Definition RuleGroup.h:57
RuleGroup & WithRulesSource(const RulesSource &value)
Definition RuleGroup.h:85
const ReferenceSets & GetReferenceSets() const
Definition RuleGroup.h:69
RuleGroup & WithStatefulRuleOptions(const StatefulRuleOptions &value)
Definition RuleGroup.h:102
RuleGroup & WithRuleVariables(const RuleVariables &value)
Definition RuleGroup.h:61
void SetReferenceSets(const ReferenceSets &value)
Definition RuleGroup.h:71
void SetStatefulRuleOptions(const StatefulRuleOptions &value)
Definition RuleGroup.h:100
const StatefulRuleOptions & GetStatefulRuleOptions() const
Definition RuleGroup.h:98
RuleGroup & WithReferenceSets(ReferenceSets &&value)
Definition RuleGroup.h:74
void SetStatefulRuleOptions(StatefulRuleOptions &&value)
Definition RuleGroup.h:101
AWS_NETWORKFIREWALL_API RuleGroup(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFIREWALL_API RuleGroup()
RuleGroup & WithReferenceSets(const ReferenceSets &value)
Definition RuleGroup.h:73
Aws::Utils::Json::JsonValue JsonValue