AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
FirewallRuleGroup.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/FirewallRulesSource.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
37 public:
38 AWS_NETWORKFIREWALL_API FirewallRuleGroup() = default;
39 AWS_NETWORKFIREWALL_API FirewallRuleGroup(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_NETWORKFIREWALL_API FirewallRuleGroup& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
41 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
42
44
47 inline const FirewallRulesSource& GetRulesSource() const { return m_rulesSource; }
48 inline bool RulesSourceHasBeenSet() const { return m_rulesSourceHasBeenSet; }
49 template <typename RulesSourceT = FirewallRulesSource>
50 void SetRulesSource(RulesSourceT&& value) {
51 m_rulesSourceHasBeenSet = true;
52 m_rulesSource = std::forward<RulesSourceT>(value);
53 }
54 template <typename RulesSourceT = FirewallRulesSource>
55 FirewallRuleGroup& WithRulesSource(RulesSourceT&& value) {
56 SetRulesSource(std::forward<RulesSourceT>(value));
57 return *this;
58 }
60
62
66 inline const RuleVariables& GetRuleVariables() const { return m_ruleVariables; }
67 inline bool RuleVariablesHasBeenSet() const { return m_ruleVariablesHasBeenSet; }
68 template <typename RuleVariablesT = RuleVariables>
69 void SetRuleVariables(RuleVariablesT&& value) {
70 m_ruleVariablesHasBeenSet = true;
71 m_ruleVariables = std::forward<RuleVariablesT>(value);
72 }
73 template <typename RuleVariablesT = RuleVariables>
74 FirewallRuleGroup& WithRuleVariables(RuleVariablesT&& value) {
75 SetRuleVariables(std::forward<RuleVariablesT>(value));
76 return *this;
77 }
79
81
87 inline const ReferenceSets& GetReferenceSets() const { return m_referenceSets; }
88 inline bool ReferenceSetsHasBeenSet() const { return m_referenceSetsHasBeenSet; }
89 template <typename ReferenceSetsT = ReferenceSets>
90 void SetReferenceSets(ReferenceSetsT&& value) {
91 m_referenceSetsHasBeenSet = true;
92 m_referenceSets = std::forward<ReferenceSetsT>(value);
93 }
94 template <typename ReferenceSetsT = ReferenceSets>
95 FirewallRuleGroup& WithReferenceSets(ReferenceSetsT&& value) {
96 SetReferenceSets(std::forward<ReferenceSetsT>(value));
97 return *this;
98 }
100 private:
101 FirewallRulesSource m_rulesSource;
102
103 RuleVariables m_ruleVariables;
104
105 ReferenceSets m_referenceSets;
106 bool m_rulesSourceHasBeenSet = false;
107 bool m_ruleVariablesHasBeenSet = false;
108 bool m_referenceSetsHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace NetworkFirewall
113} // namespace Aws
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
FirewallRuleGroup & WithRuleVariables(RuleVariablesT &&value)
FirewallRuleGroup & WithRulesSource(RulesSourceT &&value)
const FirewallRulesSource & GetRulesSource() const
AWS_NETWORKFIREWALL_API FirewallRuleGroup & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_NETWORKFIREWALL_API FirewallRuleGroup(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_NETWORKFIREWALL_API FirewallRuleGroup()=default
FirewallRuleGroup & WithReferenceSets(ReferenceSetsT &&value)