AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
IpsRuleGroup.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/IpsRulesSource.h>
10#include <aws/network-firewall/model/ReferenceSets.h>
11#include <aws/network-firewall/model/RuleVariables.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace NetworkFirewall {
22namespace Model {
23
36 public:
37 AWS_NETWORKFIREWALL_API IpsRuleGroup() = default;
38 AWS_NETWORKFIREWALL_API IpsRuleGroup(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_NETWORKFIREWALL_API IpsRuleGroup& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
41
43
46 inline const IpsRulesSource& GetRulesSource() const { return m_rulesSource; }
47 inline bool RulesSourceHasBeenSet() const { return m_rulesSourceHasBeenSet; }
48 template <typename RulesSourceT = IpsRulesSource>
49 void SetRulesSource(RulesSourceT&& value) {
50 m_rulesSourceHasBeenSet = true;
51 m_rulesSource = std::forward<RulesSourceT>(value);
52 }
53 template <typename RulesSourceT = IpsRulesSource>
54 IpsRuleGroup& WithRulesSource(RulesSourceT&& value) {
55 SetRulesSource(std::forward<RulesSourceT>(value));
56 return *this;
57 }
59
61
65 inline const RuleVariables& GetRuleVariables() const { return m_ruleVariables; }
66 inline bool RuleVariablesHasBeenSet() const { return m_ruleVariablesHasBeenSet; }
67 template <typename RuleVariablesT = RuleVariables>
68 void SetRuleVariables(RuleVariablesT&& value) {
69 m_ruleVariablesHasBeenSet = true;
70 m_ruleVariables = std::forward<RuleVariablesT>(value);
71 }
72 template <typename RuleVariablesT = RuleVariables>
73 IpsRuleGroup& WithRuleVariables(RuleVariablesT&& value) {
74 SetRuleVariables(std::forward<RuleVariablesT>(value));
75 return *this;
76 }
78
80
83 inline const ReferenceSets& GetReferenceSets() const { return m_referenceSets; }
84 inline bool ReferenceSetsHasBeenSet() const { return m_referenceSetsHasBeenSet; }
85 template <typename ReferenceSetsT = ReferenceSets>
86 void SetReferenceSets(ReferenceSetsT&& value) {
87 m_referenceSetsHasBeenSet = true;
88 m_referenceSets = std::forward<ReferenceSetsT>(value);
89 }
90 template <typename ReferenceSetsT = ReferenceSets>
91 IpsRuleGroup& WithReferenceSets(ReferenceSetsT&& value) {
92 SetReferenceSets(std::forward<ReferenceSetsT>(value));
93 return *this;
94 }
96 private:
97 IpsRulesSource m_rulesSource;
98
99 RuleVariables m_ruleVariables;
100
101 ReferenceSets m_referenceSets;
102 bool m_rulesSourceHasBeenSet = false;
103 bool m_ruleVariablesHasBeenSet = false;
104 bool m_referenceSetsHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace NetworkFirewall
109} // namespace Aws
AWS_NETWORKFIREWALL_API IpsRuleGroup(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
IpsRuleGroup & WithReferenceSets(ReferenceSetsT &&value)
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const ReferenceSets & GetReferenceSets() const
AWS_NETWORKFIREWALL_API IpsRuleGroup & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetRuleVariables(RuleVariablesT &&value)
const RuleVariables & GetRuleVariables() const
void SetReferenceSets(ReferenceSetsT &&value)
IpsRuleGroup & WithRuleVariables(RuleVariablesT &&value)
void SetRulesSource(RulesSourceT &&value)
IpsRuleGroup & WithRulesSource(RulesSourceT &&value)
const IpsRulesSource & GetRulesSource() const
AWS_NETWORKFIREWALL_API IpsRuleGroup()=default