7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
10#include <aws/network-firewall/model/Address.h>
20namespace NetworkFirewall {
32 AWS_NETWORKFIREWALL_API
Flow() =
default;
33 AWS_NETWORKFIREWALL_API
Flow(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_NETWORKFIREWALL_API
Flow&
operator=(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_NETWORKFIREWALL_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
41 template <
typename SourceAddressT = Address>
43 m_sourceAddressHasBeenSet =
true;
44 m_sourceAddress = std::forward<SourceAddressT>(value);
46 template <
typename SourceAddressT = Address>
57 template <
typename DestinationAddressT = Address>
59 m_destinationAddressHasBeenSet =
true;
60 m_destinationAddress = std::forward<DestinationAddressT>(value);
62 template <
typename DestinationAddressT = Address>
77 template <
typename SourcePortT = Aws::String>
79 m_sourcePortHasBeenSet =
true;
80 m_sourcePort = std::forward<SourcePortT>(value);
82 template <
typename SourcePortT = Aws::String>
97 template <
typename DestinationPortT = Aws::String>
99 m_destinationPortHasBeenSet =
true;
100 m_destinationPort = std::forward<DestinationPortT>(value);
102 template <
typename DestinationPortT = Aws::String>
117 template <
typename ProtocolT = Aws::String>
119 m_protocolHasBeenSet =
true;
120 m_protocol = std::forward<ProtocolT>(value);
122 template <
typename ProtocolT = Aws::String>
133 inline int64_t
GetAge()
const {
return m_age; }
136 m_ageHasBeenSet =
true;
153 m_packetCountHasBeenSet =
true;
154 m_packetCount = value;
169 m_byteCountHasBeenSet =
true;
190 int64_t m_packetCount{0};
192 long long m_byteCount{0};
193 bool m_sourceAddressHasBeenSet =
false;
194 bool m_destinationAddressHasBeenSet =
false;
195 bool m_sourcePortHasBeenSet =
false;
196 bool m_destinationPortHasBeenSet =
false;
197 bool m_protocolHasBeenSet =
false;
198 bool m_ageHasBeenSet =
false;
199 bool m_packetCountHasBeenSet =
false;
200 bool m_byteCountHasBeenSet =
false;
long long GetByteCount() const
void SetDestinationPort(DestinationPortT &&value)
Flow & WithByteCount(long long value)
void SetPacketCount(int64_t value)
void SetProtocol(ProtocolT &&value)
bool AgeHasBeenSet() const
Flow & WithPacketCount(int64_t value)
bool ByteCountHasBeenSet() const
const Aws::String & GetSourcePort() const
AWS_NETWORKFIREWALL_API Flow(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool SourcePortHasBeenSet() const
const Address & GetSourceAddress() const
void SetByteCount(long long value)
const Aws::String & GetProtocol() const
Flow & WithDestinationPort(DestinationPortT &&value)
Flow & WithProtocol(ProtocolT &&value)
const Aws::String & GetDestinationPort() const
AWS_NETWORKFIREWALL_API Flow()=default
bool PacketCountHasBeenSet() const
Flow & WithSourcePort(SourcePortT &&value)
int64_t GetPacketCount() const
void SetAge(int64_t value)
bool DestinationPortHasBeenSet() const
Flow & WithSourceAddress(SourceAddressT &&value)
bool ProtocolHasBeenSet() const
void SetDestinationAddress(DestinationAddressT &&value)
void SetSourcePort(SourcePortT &&value)
Flow & WithDestinationAddress(DestinationAddressT &&value)
void SetSourceAddress(SourceAddressT &&value)
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
bool SourceAddressHasBeenSet() const
AWS_NETWORKFIREWALL_API Flow & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool DestinationAddressHasBeenSet() const
const Address & GetDestinationAddress() const
Flow & WithAge(int64_t value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String