AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
FirewallPolicyV2.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
11#include <aws/network-firewall/model/FirewallRuleGroupEntry.h>
12#include <aws/network-firewall/model/IpsRuleGroupEntry.h>
13#include <aws/network-firewall/model/PolicyDefaultAction.h>
14#include <aws/network-firewall/model/PolicyMode.h>
15#include <aws/network-firewall/model/PolicyVariables.h>
16#include <aws/network-firewall/model/Route53ResolvedIPValidation.h>
17#include <aws/network-firewall/model/StatefulEngineOptionsV2.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Cbor {
24class CborValue;
25} // namespace Cbor
26} // namespace Utils
27namespace NetworkFirewall {
28namespace Model {
29
44 public:
45 AWS_NETWORKFIREWALL_API FirewallPolicyV2() = default;
46 AWS_NETWORKFIREWALL_API FirewallPolicyV2(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
47 AWS_NETWORKFIREWALL_API FirewallPolicyV2& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
48 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
49
51
57 inline const Aws::Vector<FirewallRuleGroupEntry>& GetFirewallRuleGroupEntries() const { return m_firewallRuleGroupEntries; }
58 inline bool FirewallRuleGroupEntriesHasBeenSet() const { return m_firewallRuleGroupEntriesHasBeenSet; }
59 template <typename FirewallRuleGroupEntriesT = Aws::Vector<FirewallRuleGroupEntry>>
60 void SetFirewallRuleGroupEntries(FirewallRuleGroupEntriesT&& value) {
61 m_firewallRuleGroupEntriesHasBeenSet = true;
62 m_firewallRuleGroupEntries = std::forward<FirewallRuleGroupEntriesT>(value);
63 }
64 template <typename FirewallRuleGroupEntriesT = Aws::Vector<FirewallRuleGroupEntry>>
65 FirewallPolicyV2& WithFirewallRuleGroupEntries(FirewallRuleGroupEntriesT&& value) {
66 SetFirewallRuleGroupEntries(std::forward<FirewallRuleGroupEntriesT>(value));
67 return *this;
68 }
69 template <typename FirewallRuleGroupEntriesT = FirewallRuleGroupEntry>
70 FirewallPolicyV2& AddFirewallRuleGroupEntries(FirewallRuleGroupEntriesT&& value) {
71 m_firewallRuleGroupEntriesHasBeenSet = true;
72 m_firewallRuleGroupEntries.emplace_back(std::forward<FirewallRuleGroupEntriesT>(value));
73 return *this;
74 }
76
78
83 inline const Aws::Vector<IpsRuleGroupEntry>& GetIpsRuleGroupEntries() const { return m_ipsRuleGroupEntries; }
84 inline bool IpsRuleGroupEntriesHasBeenSet() const { return m_ipsRuleGroupEntriesHasBeenSet; }
85 template <typename IpsRuleGroupEntriesT = Aws::Vector<IpsRuleGroupEntry>>
86 void SetIpsRuleGroupEntries(IpsRuleGroupEntriesT&& value) {
87 m_ipsRuleGroupEntriesHasBeenSet = true;
88 m_ipsRuleGroupEntries = std::forward<IpsRuleGroupEntriesT>(value);
89 }
90 template <typename IpsRuleGroupEntriesT = Aws::Vector<IpsRuleGroupEntry>>
91 FirewallPolicyV2& WithIpsRuleGroupEntries(IpsRuleGroupEntriesT&& value) {
92 SetIpsRuleGroupEntries(std::forward<IpsRuleGroupEntriesT>(value));
93 return *this;
94 }
95 template <typename IpsRuleGroupEntriesT = IpsRuleGroupEntry>
96 FirewallPolicyV2& AddIpsRuleGroupEntries(IpsRuleGroupEntriesT&& value) {
97 m_ipsRuleGroupEntriesHasBeenSet = true;
98 m_ipsRuleGroupEntries.emplace_back(std::forward<IpsRuleGroupEntriesT>(value));
99 return *this;
100 }
102
104
114 inline PolicyMode GetPolicyMode() const { return m_policyMode; }
115 inline bool PolicyModeHasBeenSet() const { return m_policyModeHasBeenSet; }
116 inline void SetPolicyMode(PolicyMode value) {
117 m_policyModeHasBeenSet = true;
118 m_policyMode = value;
119 }
121 SetPolicyMode(value);
122 return *this;
123 }
125
127
141 inline PolicyDefaultAction GetFirewallDefaultAction() const { return m_firewallDefaultAction; }
142 inline bool FirewallDefaultActionHasBeenSet() const { return m_firewallDefaultActionHasBeenSet; }
144 m_firewallDefaultActionHasBeenSet = true;
145 m_firewallDefaultAction = value;
146 }
152
154
158 inline const StatefulEngineOptionsV2& GetStatefulEngineOptions() const { return m_statefulEngineOptions; }
159 inline bool StatefulEngineOptionsHasBeenSet() const { return m_statefulEngineOptionsHasBeenSet; }
160 template <typename StatefulEngineOptionsT = StatefulEngineOptionsV2>
161 void SetStatefulEngineOptions(StatefulEngineOptionsT&& value) {
162 m_statefulEngineOptionsHasBeenSet = true;
163 m_statefulEngineOptions = std::forward<StatefulEngineOptionsT>(value);
164 }
165 template <typename StatefulEngineOptionsT = StatefulEngineOptionsV2>
166 FirewallPolicyV2& WithStatefulEngineOptions(StatefulEngineOptionsT&& value) {
167 SetStatefulEngineOptions(std::forward<StatefulEngineOptionsT>(value));
168 return *this;
169 }
171
173
181 inline const Aws::String& GetTLSInspectionConfigurationArn() const { return m_tLSInspectionConfigurationArn; }
182 inline bool TLSInspectionConfigurationArnHasBeenSet() const { return m_tLSInspectionConfigurationArnHasBeenSet; }
183 template <typename TLSInspectionConfigurationArnT = Aws::String>
184 void SetTLSInspectionConfigurationArn(TLSInspectionConfigurationArnT&& value) {
185 m_tLSInspectionConfigurationArnHasBeenSet = true;
186 m_tLSInspectionConfigurationArn = std::forward<TLSInspectionConfigurationArnT>(value);
187 }
188 template <typename TLSInspectionConfigurationArnT = Aws::String>
189 FirewallPolicyV2& WithTLSInspectionConfigurationArn(TLSInspectionConfigurationArnT&& value) {
190 SetTLSInspectionConfigurationArn(std::forward<TLSInspectionConfigurationArnT>(value));
191 return *this;
192 }
194
196
200 inline const PolicyVariables& GetPolicyVariables() const { return m_policyVariables; }
201 inline bool PolicyVariablesHasBeenSet() const { return m_policyVariablesHasBeenSet; }
202 template <typename PolicyVariablesT = PolicyVariables>
203 void SetPolicyVariables(PolicyVariablesT&& value) {
204 m_policyVariablesHasBeenSet = true;
205 m_policyVariables = std::forward<PolicyVariablesT>(value);
206 }
207 template <typename PolicyVariablesT = PolicyVariables>
208 FirewallPolicyV2& WithPolicyVariables(PolicyVariablesT&& value) {
209 SetPolicyVariables(std::forward<PolicyVariablesT>(value));
210 return *this;
211 }
213
215
225 inline const Route53ResolvedIPValidation& GetRoute53ResolvedIPValidation() const { return m_route53ResolvedIPValidation; }
226 inline bool Route53ResolvedIPValidationHasBeenSet() const { return m_route53ResolvedIPValidationHasBeenSet; }
227 template <typename Route53ResolvedIPValidationT = Route53ResolvedIPValidation>
228 void SetRoute53ResolvedIPValidation(Route53ResolvedIPValidationT&& value) {
229 m_route53ResolvedIPValidationHasBeenSet = true;
230 m_route53ResolvedIPValidation = std::forward<Route53ResolvedIPValidationT>(value);
231 }
232 template <typename Route53ResolvedIPValidationT = Route53ResolvedIPValidation>
233 FirewallPolicyV2& WithRoute53ResolvedIPValidation(Route53ResolvedIPValidationT&& value) {
234 SetRoute53ResolvedIPValidation(std::forward<Route53ResolvedIPValidationT>(value));
235 return *this;
236 }
238 private:
239 Aws::Vector<FirewallRuleGroupEntry> m_firewallRuleGroupEntries;
240
241 Aws::Vector<IpsRuleGroupEntry> m_ipsRuleGroupEntries;
242
243 PolicyMode m_policyMode{PolicyMode::NOT_SET};
244
245 PolicyDefaultAction m_firewallDefaultAction{PolicyDefaultAction::NOT_SET};
246
247 StatefulEngineOptionsV2 m_statefulEngineOptions;
248
249 Aws::String m_tLSInspectionConfigurationArn;
250
251 PolicyVariables m_policyVariables;
252
253 Route53ResolvedIPValidation m_route53ResolvedIPValidation;
254 bool m_firewallRuleGroupEntriesHasBeenSet = false;
255 bool m_ipsRuleGroupEntriesHasBeenSet = false;
256 bool m_policyModeHasBeenSet = false;
257 bool m_firewallDefaultActionHasBeenSet = false;
258 bool m_statefulEngineOptionsHasBeenSet = false;
259 bool m_tLSInspectionConfigurationArnHasBeenSet = false;
260 bool m_policyVariablesHasBeenSet = false;
261 bool m_route53ResolvedIPValidationHasBeenSet = false;
262};
263
264} // namespace Model
265} // namespace NetworkFirewall
266} // namespace Aws
FirewallPolicyV2 & WithPolicyVariables(PolicyVariablesT &&value)
void SetTLSInspectionConfigurationArn(TLSInspectionConfigurationArnT &&value)
FirewallPolicyV2 & AddIpsRuleGroupEntries(IpsRuleGroupEntriesT &&value)
FirewallPolicyV2 & WithIpsRuleGroupEntries(IpsRuleGroupEntriesT &&value)
AWS_NETWORKFIREWALL_API FirewallPolicyV2(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetStatefulEngineOptions(StatefulEngineOptionsT &&value)
AWS_NETWORKFIREWALL_API FirewallPolicyV2()=default
FirewallPolicyV2 & WithFirewallDefaultAction(PolicyDefaultAction value)
void SetIpsRuleGroupEntries(IpsRuleGroupEntriesT &&value)
FirewallPolicyV2 & WithFirewallRuleGroupEntries(FirewallRuleGroupEntriesT &&value)
const Aws::Vector< IpsRuleGroupEntry > & GetIpsRuleGroupEntries() const
AWS_NETWORKFIREWALL_API FirewallPolicyV2 & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetRoute53ResolvedIPValidation(Route53ResolvedIPValidationT &&value)
const Aws::String & GetTLSInspectionConfigurationArn() const
FirewallPolicyV2 & WithRoute53ResolvedIPValidation(Route53ResolvedIPValidationT &&value)
const Route53ResolvedIPValidation & GetRoute53ResolvedIPValidation() const
PolicyDefaultAction GetFirewallDefaultAction() const
void SetPolicyVariables(PolicyVariablesT &&value)
void SetFirewallDefaultAction(PolicyDefaultAction value)
FirewallPolicyV2 & WithPolicyMode(PolicyMode value)
const Aws::Vector< FirewallRuleGroupEntry > & GetFirewallRuleGroupEntries() const
FirewallPolicyV2 & AddFirewallRuleGroupEntries(FirewallRuleGroupEntriesT &&value)
void SetFirewallRuleGroupEntries(FirewallRuleGroupEntriesT &&value)
const StatefulEngineOptionsV2 & GetStatefulEngineOptions() const
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
FirewallPolicyV2 & WithTLSInspectionConfigurationArn(TLSInspectionConfigurationArnT &&value)
FirewallPolicyV2 & WithStatefulEngineOptions(StatefulEngineOptionsT &&value)
const PolicyVariables & GetPolicyVariables() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector