7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
11#include <aws/network-firewall/model/ContextSet.h>
12#include <aws/network-firewall/model/IPSet.h>
13#include <aws/network-firewall/model/PortSet.h>
23namespace NetworkFirewall {
36 AWS_NETWORKFIREWALL_API
RuleVariables(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_NETWORKFIREWALL_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
46 template <
typename IPSetsT = Aws::Map<Aws::String, IPSet>>
48 m_iPSetsHasBeenSet =
true;
49 m_iPSets = std::forward<IPSetsT>(value);
51 template <
typename IPSetsT = Aws::Map<Aws::String, IPSet>>
56 template <
typename IPSetsKeyT = Aws::String,
typename IPSetsValueT = IPSet>
58 m_iPSetsHasBeenSet =
true;
59 m_iPSets.emplace(std::forward<IPSetsKeyT>(key), std::forward<IPSetsValueT>(value));
70 template <
typename PortSetsT = Aws::Map<Aws::String, PortSet>>
72 m_portSetsHasBeenSet =
true;
73 m_portSets = std::forward<PortSetsT>(value);
75 template <
typename PortSetsT = Aws::Map<Aws::String, PortSet>>
80 template <
typename PortSetsKeyT = Aws::String,
typename PortSetsValueT = PortSet>
82 m_portSetsHasBeenSet =
true;
83 m_portSets.emplace(std::forward<PortSetsKeyT>(key), std::forward<PortSetsValueT>(value));
95 template <
typename ContextSetsT = Aws::Map<Aws::String, ContextSet>>
97 m_contextSetsHasBeenSet =
true;
98 m_contextSets = std::forward<ContextSetsT>(value);
100 template <
typename ContextSetsT = Aws::Map<Aws::String, ContextSet>>
105 template <
typename ContextSetsKeyT = Aws::String,
typename ContextSetsValueT = ContextSet>
107 m_contextSetsHasBeenSet =
true;
108 m_contextSets.emplace(std::forward<ContextSetsKeyT>(key), std::forward<ContextSetsValueT>(value));
118 bool m_iPSetsHasBeenSet =
false;
119 bool m_portSetsHasBeenSet =
false;
120 bool m_contextSetsHasBeenSet =
false;
RuleVariables & AddPortSets(PortSetsKeyT &&key, PortSetsValueT &&value)
bool PortSetsHasBeenSet() const
void SetContextSets(ContextSetsT &&value)
AWS_NETWORKFIREWALL_API RuleVariables & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool ContextSetsHasBeenSet() const
AWS_NETWORKFIREWALL_API RuleVariables(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
RuleVariables & AddContextSets(ContextSetsKeyT &&key, ContextSetsValueT &&value)
const Aws::Map< Aws::String, PortSet > & GetPortSets() const
const Aws::Map< Aws::String, ContextSet > & GetContextSets() const
RuleVariables & WithIPSets(IPSetsT &&value)
RuleVariables & WithContextSets(ContextSetsT &&value)
void SetIPSets(IPSetsT &&value)
bool IPSetsHasBeenSet() const
void SetPortSets(PortSetsT &&value)
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_NETWORKFIREWALL_API RuleVariables()=default
RuleVariables & WithPortSets(PortSetsT &&value)
const Aws::Map< Aws::String, IPSet > & GetIPSets() const
RuleVariables & AddIPSets(IPSetsKeyT &&key, IPSetsValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map