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/ActionScope.h>
12#include <aws/network-firewall/model/FirewallRuleAction.h>
13#include <aws/network-firewall/model/FirewallRuleProtocol.h>
14#include <aws/network-firewall/model/HookKey.h>
15#include <aws/network-firewall/model/RuleMetadata.h>
16#include <aws/network-firewall/model/RuleOption.h>
26namespace NetworkFirewall {
43 AWS_NETWORKFIREWALL_API
FirewallRule(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
45 AWS_NETWORKFIREWALL_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
68 m_actionHasBeenSet =
true;
96 m_actionScopeHasBeenSet =
true;
97 m_actionScope = value;
120 m_hookHasBeenSet =
true;
138 m_protocolHasBeenSet =
true;
156 template <
typename SourceIPsT = Aws::String>
158 m_sourceIPsHasBeenSet =
true;
159 m_sourceIPs = std::forward<SourceIPsT>(value);
161 template <
typename SourceIPsT = Aws::String>
177 template <
typename DestIPsT = Aws::String>
179 m_destIPsHasBeenSet =
true;
180 m_destIPs = std::forward<DestIPsT>(value);
182 template <
typename DestIPsT = Aws::String>
195 template <
typename SourcePortsT = Aws::String>
197 m_sourcePortsHasBeenSet =
true;
198 m_sourcePorts = std::forward<SourcePortsT>(value);
200 template <
typename SourcePortsT = Aws::String>
213 template <
typename DestPortsT = Aws::String>
215 m_destPortsHasBeenSet =
true;
216 m_destPorts = std::forward<DestPortsT>(value);
218 template <
typename DestPortsT = Aws::String>
233 template <
typename RuleOptionsT = Aws::Vector<RuleOption>>
235 m_ruleOptionsHasBeenSet =
true;
236 m_ruleOptions = std::forward<RuleOptionsT>(value);
238 template <
typename RuleOptionsT = Aws::Vector<RuleOption>>
243 template <
typename RuleOptionsT = RuleOption>
245 m_ruleOptionsHasBeenSet =
true;
246 m_ruleOptions.emplace_back(std::forward<RuleOptionsT>(value));
266 m_acceptPriorHooksHasBeenSet =
true;
267 m_acceptPriorHooks = value;
285 m_alertEnabledHasBeenSet =
true;
286 m_alertEnabled = value;
310 m_bypassIPSEnabledHasBeenSet =
true;
311 m_bypassIPSEnabled = value;
327 template <
typename RuleMetadataT = RuleMetadata>
329 m_ruleMetadataHasBeenSet =
true;
330 m_ruleMetadata = std::forward<RuleMetadataT>(value);
332 template <
typename RuleMetadataT = RuleMetadata>
357 bool m_acceptPriorHooks{
false};
359 bool m_alertEnabled{
false};
361 bool m_bypassIPSEnabled{
false};
363 RuleMetadata m_ruleMetadata;
364 bool m_actionHasBeenSet =
false;
365 bool m_actionScopeHasBeenSet =
false;
366 bool m_hookHasBeenSet =
false;
367 bool m_protocolHasBeenSet =
false;
368 bool m_sourceIPsHasBeenSet =
false;
369 bool m_destIPsHasBeenSet =
false;
370 bool m_sourcePortsHasBeenSet =
false;
371 bool m_destPortsHasBeenSet =
false;
372 bool m_ruleOptionsHasBeenSet =
false;
373 bool m_acceptPriorHooksHasBeenSet =
false;
374 bool m_alertEnabledHasBeenSet =
false;
375 bool m_bypassIPSEnabledHasBeenSet =
false;
376 bool m_ruleMetadataHasBeenSet =
false;
bool AcceptPriorHooksHasBeenSet() const
const Aws::String & GetSourcePorts() const
bool GetBypassIPSEnabled() const
FirewallRule & WithRuleOptions(RuleOptionsT &&value)
bool RuleMetadataHasBeenSet() const
bool SourceIPsHasBeenSet() const
void SetActionScope(ActionScope value)
FirewallRule & WithHook(HookKey value)
bool RuleOptionsHasBeenSet() const
FirewallRule & WithBypassIPSEnabled(bool value)
FirewallRule & WithDestIPs(DestIPsT &&value)
FirewallRule & AddRuleOptions(RuleOptionsT &&value)
bool HookHasBeenSet() const
void SetSourcePorts(SourcePortsT &&value)
bool BypassIPSEnabledHasBeenSet() const
bool GetAlertEnabled() const
FirewallRule & WithDestPorts(DestPortsT &&value)
FirewallRule & WithActionScope(ActionScope value)
FirewallRule & WithAcceptPriorHooks(bool value)
const RuleMetadata & GetRuleMetadata() const
void SetProtocol(FirewallRuleProtocol value)
void SetRuleOptions(RuleOptionsT &&value)
const Aws::String & GetDestPorts() const
bool SourcePortsHasBeenSet() const
ActionScope GetActionScope() const
bool ProtocolHasBeenSet() const
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
FirewallRule & WithAction(FirewallRuleAction value)
bool ActionHasBeenSet() const
void SetRuleMetadata(RuleMetadataT &&value)
AWS_NETWORKFIREWALL_API FirewallRule(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_NETWORKFIREWALL_API FirewallRule & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool AlertEnabledHasBeenSet() const
FirewallRule & WithProtocol(FirewallRuleProtocol value)
void SetDestIPs(DestIPsT &&value)
void SetAlertEnabled(bool value)
AWS_NETWORKFIREWALL_API FirewallRule()=default
FirewallRule & WithSourceIPs(SourceIPsT &&value)
void SetDestPorts(DestPortsT &&value)
void SetHook(HookKey value)
bool GetAcceptPriorHooks() const
void SetSourceIPs(SourceIPsT &&value)
FirewallRuleAction GetAction() const
FirewallRuleProtocol GetProtocol() const
FirewallRule & WithSourcePorts(SourcePortsT &&value)
const Aws::String & GetDestIPs() const
bool DestPortsHasBeenSet() const
const Aws::Vector< RuleOption > & GetRuleOptions() const
bool DestIPsHasBeenSet() const
bool ActionScopeHasBeenSet() const
void SetAcceptPriorHooks(bool value)
const Aws::String & GetSourceIPs() const
void SetAction(FirewallRuleAction value)
FirewallRule & WithRuleMetadata(RuleMetadataT &&value)
FirewallRule & WithAlertEnabled(bool value)
void SetBypassIPSEnabled(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector