AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
RuleGroup.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
9#include <aws/network-firewall/model/ReferenceSets.h>
10#include <aws/network-firewall/model/RuleVariables.h>
11#include <aws/network-firewall/model/RulesSource.h>
12#include <aws/network-firewall/model/StatefulRuleOptions.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Cbor {
19class CborValue;
20} // namespace Cbor
21} // namespace Utils
22namespace NetworkFirewall {
23namespace Model {
24
39class RuleGroup {
40 public:
41 AWS_NETWORKFIREWALL_API RuleGroup() = default;
42 AWS_NETWORKFIREWALL_API RuleGroup(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
43 AWS_NETWORKFIREWALL_API RuleGroup& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
44 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
45
47
51 inline const RuleVariables& GetRuleVariables() const { return m_ruleVariables; }
52 inline bool RuleVariablesHasBeenSet() const { return m_ruleVariablesHasBeenSet; }
53 template <typename RuleVariablesT = RuleVariables>
54 void SetRuleVariables(RuleVariablesT&& value) {
55 m_ruleVariablesHasBeenSet = true;
56 m_ruleVariables = std::forward<RuleVariablesT>(value);
57 }
58 template <typename RuleVariablesT = RuleVariables>
59 RuleGroup& WithRuleVariables(RuleVariablesT&& value) {
60 SetRuleVariables(std::forward<RuleVariablesT>(value));
61 return *this;
62 }
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) {
73 m_referenceSetsHasBeenSet = true;
74 m_referenceSets = std::forward<ReferenceSetsT>(value);
75 }
76 template <typename ReferenceSetsT = ReferenceSets>
77 RuleGroup& WithReferenceSets(ReferenceSetsT&& value) {
78 SetReferenceSets(std::forward<ReferenceSetsT>(value));
79 return *this;
80 }
82
84
87 inline const RulesSource& GetRulesSource() const { return m_rulesSource; }
88 inline bool RulesSourceHasBeenSet() const { return m_rulesSourceHasBeenSet; }
89 template <typename RulesSourceT = RulesSource>
90 void SetRulesSource(RulesSourceT&& value) {
91 m_rulesSourceHasBeenSet = true;
92 m_rulesSource = std::forward<RulesSourceT>(value);
93 }
94 template <typename RulesSourceT = RulesSource>
95 RuleGroup& WithRulesSource(RulesSourceT&& value) {
96 SetRulesSource(std::forward<RulesSourceT>(value));
97 return *this;
98 }
100
102
110 inline const StatefulRuleOptions& GetStatefulRuleOptions() const { return m_statefulRuleOptions; }
111 inline bool StatefulRuleOptionsHasBeenSet() const { return m_statefulRuleOptionsHasBeenSet; }
112 template <typename StatefulRuleOptionsT = StatefulRuleOptions>
113 void SetStatefulRuleOptions(StatefulRuleOptionsT&& value) {
114 m_statefulRuleOptionsHasBeenSet = true;
115 m_statefulRuleOptions = std::forward<StatefulRuleOptionsT>(value);
116 }
117 template <typename StatefulRuleOptionsT = StatefulRuleOptions>
118 RuleGroup& WithStatefulRuleOptions(StatefulRuleOptionsT&& value) {
119 SetStatefulRuleOptions(std::forward<StatefulRuleOptionsT>(value));
120 return *this;
121 }
123 private:
124 RuleVariables m_ruleVariables;
125
126 ReferenceSets m_referenceSets;
127
128 RulesSource m_rulesSource;
129
130 StatefulRuleOptions m_statefulRuleOptions;
131 bool m_ruleVariablesHasBeenSet = false;
132 bool m_referenceSetsHasBeenSet = false;
133 bool m_rulesSourceHasBeenSet = false;
134 bool m_statefulRuleOptionsHasBeenSet = false;
135};
136
137} // namespace Model
138} // namespace NetworkFirewall
139} // namespace Aws
void SetReferenceSets(ReferenceSetsT &&value)
Definition RuleGroup.h:72
RuleGroup & WithRulesSource(RulesSourceT &&value)
Definition RuleGroup.h:95
AWS_NETWORKFIREWALL_API RuleGroup & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const RulesSource & GetRulesSource() const
Definition RuleGroup.h:87
const RuleVariables & GetRuleVariables() const
Definition RuleGroup.h:51
RuleGroup & WithStatefulRuleOptions(StatefulRuleOptionsT &&value)
Definition RuleGroup.h:118
const ReferenceSets & GetReferenceSets() const
Definition RuleGroup.h:69
void SetStatefulRuleOptions(StatefulRuleOptionsT &&value)
Definition RuleGroup.h:113
RuleGroup & WithReferenceSets(ReferenceSetsT &&value)
Definition RuleGroup.h:77
RuleGroup & WithRuleVariables(RuleVariablesT &&value)
Definition RuleGroup.h:59
void SetRuleVariables(RuleVariablesT &&value)
Definition RuleGroup.h:54
AWS_NETWORKFIREWALL_API RuleGroup()=default
AWS_NETWORKFIREWALL_API RuleGroup(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const StatefulRuleOptions & GetStatefulRuleOptions() const
Definition RuleGroup.h:110
void SetRulesSource(RulesSourceT &&value)
Definition RuleGroup.h:90
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const