AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename RuleVariablesT = RuleVariables>
60 void SetRuleVariables(RuleVariablesT&& value) { m_ruleVariablesHasBeenSet = true; m_ruleVariables = std::forward<RuleVariablesT>(value); }
61 template<typename RuleVariablesT = RuleVariables>
62 RuleGroup& WithRuleVariables(RuleVariablesT&& value) { SetRuleVariables(std::forward<RuleVariablesT>(value)); return *this;}
64
66
69 inline const ReferenceSets& GetReferenceSets() const { return m_referenceSets; }
70 inline bool ReferenceSetsHasBeenSet() const { return m_referenceSetsHasBeenSet; }
71 template<typename ReferenceSetsT = ReferenceSets>
72 void SetReferenceSets(ReferenceSetsT&& value) { m_referenceSetsHasBeenSet = true; m_referenceSets = std::forward<ReferenceSetsT>(value); }
73 template<typename ReferenceSetsT = ReferenceSets>
74 RuleGroup& WithReferenceSets(ReferenceSetsT&& value) { SetReferenceSets(std::forward<ReferenceSetsT>(value)); return *this;}
76
78
81 inline const RulesSource& GetRulesSource() const { return m_rulesSource; }
82 inline bool RulesSourceHasBeenSet() const { return m_rulesSourceHasBeenSet; }
83 template<typename RulesSourceT = RulesSource>
84 void SetRulesSource(RulesSourceT&& value) { m_rulesSourceHasBeenSet = true; m_rulesSource = std::forward<RulesSourceT>(value); }
85 template<typename RulesSourceT = RulesSource>
86 RuleGroup& WithRulesSource(RulesSourceT&& value) { SetRulesSource(std::forward<RulesSourceT>(value)); return *this;}
88
90
98 inline const StatefulRuleOptions& GetStatefulRuleOptions() const { return m_statefulRuleOptions; }
99 inline bool StatefulRuleOptionsHasBeenSet() const { return m_statefulRuleOptionsHasBeenSet; }
100 template<typename StatefulRuleOptionsT = StatefulRuleOptions>
101 void SetStatefulRuleOptions(StatefulRuleOptionsT&& value) { m_statefulRuleOptionsHasBeenSet = true; m_statefulRuleOptions = std::forward<StatefulRuleOptionsT>(value); }
102 template<typename StatefulRuleOptionsT = StatefulRuleOptions>
103 RuleGroup& WithStatefulRuleOptions(StatefulRuleOptionsT&& value) { SetStatefulRuleOptions(std::forward<StatefulRuleOptionsT>(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)
void SetReferenceSets(ReferenceSetsT &&value)
Definition RuleGroup.h:72
RuleGroup & WithRulesSource(RulesSourceT &&value)
Definition RuleGroup.h:86
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
const RulesSource & GetRulesSource() const
Definition RuleGroup.h:81
const RuleVariables & GetRuleVariables() const
Definition RuleGroup.h:57
RuleGroup & WithStatefulRuleOptions(StatefulRuleOptionsT &&value)
Definition RuleGroup.h:103
const ReferenceSets & GetReferenceSets() const
Definition RuleGroup.h:69
void SetStatefulRuleOptions(StatefulRuleOptionsT &&value)
Definition RuleGroup.h:101
RuleGroup & WithReferenceSets(ReferenceSetsT &&value)
Definition RuleGroup.h:74
RuleGroup & WithRuleVariables(RuleVariablesT &&value)
Definition RuleGroup.h:62
void SetRuleVariables(RuleVariablesT &&value)
Definition RuleGroup.h:60
AWS_NETWORKFIREWALL_API RuleGroup()=default
const StatefulRuleOptions & GetStatefulRuleOptions() const
Definition RuleGroup.h:98
void SetRulesSource(RulesSourceT &&value)
Definition RuleGroup.h:84
AWS_NETWORKFIREWALL_API RuleGroup(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue