7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
10#include <aws/network-firewall/model/Address.h>
11#include <aws/network-firewall/model/PortRange.h>
12#include <aws/network-firewall/model/TCPFlagField.h>
22namespace NetworkFirewall {
36 AWS_NETWORKFIREWALL_API
MatchAttributes(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_NETWORKFIREWALL_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
47 template <
typename SourcesT = Aws::Vector<Address>>
49 m_sourcesHasBeenSet =
true;
50 m_sources = std::forward<SourcesT>(value);
52 template <
typename SourcesT = Aws::Vector<Address>>
57 template <
typename SourcesT = Address>
59 m_sourcesHasBeenSet =
true;
60 m_sources.emplace_back(std::forward<SourcesT>(value));
72 template <
typename DestinationsT = Aws::Vector<Address>>
74 m_destinationsHasBeenSet =
true;
75 m_destinations = std::forward<DestinationsT>(value);
77 template <
typename DestinationsT = Aws::Vector<Address>>
82 template <
typename DestinationsT = Address>
84 m_destinationsHasBeenSet =
true;
85 m_destinations.emplace_back(std::forward<DestinationsT>(value));
100 template <
typename SourcePortsT = Aws::Vector<PortRange>>
102 m_sourcePortsHasBeenSet =
true;
103 m_sourcePorts = std::forward<SourcePortsT>(value);
105 template <
typename SourcePortsT = Aws::Vector<PortRange>>
110 template <
typename SourcePortsT = PortRange>
112 m_sourcePortsHasBeenSet =
true;
113 m_sourcePorts.emplace_back(std::forward<SourcePortsT>(value));
127 template <
typename DestinationPortsT = Aws::Vector<PortRange>>
129 m_destinationPortsHasBeenSet =
true;
130 m_destinationPorts = std::forward<DestinationPortsT>(value);
132 template <
typename DestinationPortsT = Aws::Vector<PortRange>>
137 template <
typename DestinationPortsT = PortRange>
139 m_destinationPortsHasBeenSet =
true;
140 m_destinationPorts.emplace_back(std::forward<DestinationPortsT>(value));
153 template <
typename ProtocolsT = Aws::Vector<
int64_t>>
155 m_protocolsHasBeenSet =
true;
156 m_protocols = std::forward<ProtocolsT>(value);
158 template <
typename ProtocolsT = Aws::Vector<
int64_t>>
164 m_protocolsHasBeenSet =
true;
165 m_protocols.push_back(value);
177 template <
typename TCPFlagsT = Aws::Vector<TCPFlagField>>
179 m_tCPFlagsHasBeenSet =
true;
180 m_tCPFlags = std::forward<TCPFlagsT>(value);
182 template <
typename TCPFlagsT = Aws::Vector<TCPFlagField>>
187 template <
typename TCPFlagsT = TCPFlagField>
189 m_tCPFlagsHasBeenSet =
true;
190 m_tCPFlags.emplace_back(std::forward<TCPFlagsT>(value));
206 bool m_sourcesHasBeenSet =
false;
207 bool m_destinationsHasBeenSet =
false;
208 bool m_sourcePortsHasBeenSet =
false;
209 bool m_destinationPortsHasBeenSet =
false;
210 bool m_protocolsHasBeenSet =
false;
211 bool m_tCPFlagsHasBeenSet =
false;
void SetDestinations(DestinationsT &&value)
bool ProtocolsHasBeenSet() const
MatchAttributes & AddDestinations(DestinationsT &&value)
MatchAttributes & WithProtocols(ProtocolsT &&value)
bool DestinationPortsHasBeenSet() const
const Aws::Vector< PortRange > & GetSourcePorts() const
bool TCPFlagsHasBeenSet() const
bool SourcesHasBeenSet() const
MatchAttributes & WithSourcePorts(SourcePortsT &&value)
MatchAttributes & AddProtocols(int64_t value)
const Aws::Vector< PortRange > & GetDestinationPorts() const
void SetProtocols(ProtocolsT &&value)
void SetDestinationPorts(DestinationPortsT &&value)
const Aws::Vector< int64_t > & GetProtocols() const
bool SourcePortsHasBeenSet() const
MatchAttributes & AddDestinationPorts(DestinationPortsT &&value)
void SetSources(SourcesT &&value)
void SetSourcePorts(SourcePortsT &&value)
MatchAttributes & AddSourcePorts(SourcePortsT &&value)
MatchAttributes & AddTCPFlags(TCPFlagsT &&value)
AWS_NETWORKFIREWALL_API MatchAttributes & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
MatchAttributes & WithSources(SourcesT &&value)
const Aws::Vector< TCPFlagField > & GetTCPFlags() const
AWS_NETWORKFIREWALL_API MatchAttributes()=default
void SetTCPFlags(TCPFlagsT &&value)
MatchAttributes & WithDestinationPorts(DestinationPortsT &&value)
MatchAttributes & WithTCPFlags(TCPFlagsT &&value)
MatchAttributes & WithDestinations(DestinationsT &&value)
bool DestinationsHasBeenSet() const
AWS_NETWORKFIREWALL_API MatchAttributes(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Vector< Address > & GetDestinations() const
const Aws::Vector< Address > & GetSources() const
MatchAttributes & AddSources(SourcesT &&value)
std::vector< T, Aws::Allocator< T > > Vector