7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
9#include <aws/network-firewall/model/Address.h>
20namespace NetworkFirewall {
32 AWS_NETWORKFIREWALL_API
Flow() =
default;
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 int GetAge()
const {
return m_age; }
136 m_ageHasBeenSet =
true;
153 m_packetCountHasBeenSet =
true;
154 m_packetCount = value;
169 m_byteCountHasBeenSet =
true;
190 int 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 SetProtocol(ProtocolT &&value)
bool AgeHasBeenSet() const
bool ByteCountHasBeenSet() const
const Aws::String & GetSourcePort() const
AWS_NETWORKFIREWALL_API Flow(Aws::Utils::Json::JsonView jsonValue)
bool SourcePortHasBeenSet() const
void SetPacketCount(int value)
const Address & GetSourceAddress() const
void SetByteCount(long long value)
const Aws::String & GetProtocol() const
Flow & WithPacketCount(int value)
Flow & WithDestinationPort(DestinationPortT &&value)
Flow & WithProtocol(ProtocolT &&value)
const Aws::String & GetDestinationPort() const
AWS_NETWORKFIREWALL_API Flow & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFIREWALL_API Flow()=default
bool PacketCountHasBeenSet() const
Flow & WithSourcePort(SourcePortT &&value)
Flow & WithAge(int value)
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
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)
bool SourceAddressHasBeenSet() const
int GetPacketCount() const
bool DestinationAddressHasBeenSet() const
const Address & GetDestinationAddress() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue