7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/network-firewall/model/Address.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
22namespace NetworkFirewall
37 AWS_NETWORKFIREWALL_API
Flow() =
default;
47 template<
typename SourceAddressT = Address>
48 void SetSourceAddress(SourceAddressT&& value) { m_sourceAddressHasBeenSet =
true; m_sourceAddress = std::forward<SourceAddressT>(value); }
49 template<
typename SourceAddressT = Address>
57 template<
typename DestinationAddressT = Address>
58 void SetDestinationAddress(DestinationAddressT&& value) { m_destinationAddressHasBeenSet =
true; m_destinationAddress = std::forward<DestinationAddressT>(value); }
59 template<
typename DestinationAddressT = Address>
71 template<
typename SourcePortT = Aws::String>
72 void SetSourcePort(SourcePortT&& value) { m_sourcePortHasBeenSet =
true; m_sourcePort = std::forward<SourcePortT>(value); }
73 template<
typename SourcePortT = Aws::String>
85 template<
typename DestinationPortT = Aws::String>
86 void SetDestinationPort(DestinationPortT&& value) { m_destinationPortHasBeenSet =
true; m_destinationPort = std::forward<DestinationPortT>(value); }
87 template<
typename DestinationPortT = Aws::String>
99 template<
typename ProtocolT = Aws::String>
100 void SetProtocol(ProtocolT&& value) { m_protocolHasBeenSet =
true; m_protocol = std::forward<ProtocolT>(value); }
101 template<
typename ProtocolT = Aws::String>
109 inline int GetAge()
const {
return m_age; }
111 inline void SetAge(
int value) { m_ageHasBeenSet =
true; m_age = value; }
122 inline void SetPacketCount(
int value) { m_packetCountHasBeenSet =
true; m_packetCount = value; }
132 inline void SetByteCount(
long long value) { m_byteCountHasBeenSet =
true; m_byteCount = value; }
138 bool m_sourceAddressHasBeenSet =
false;
141 bool m_destinationAddressHasBeenSet =
false;
144 bool m_sourcePortHasBeenSet =
false;
147 bool m_destinationPortHasBeenSet =
false;
150 bool m_protocolHasBeenSet =
false;
153 bool m_ageHasBeenSet =
false;
155 int m_packetCount{0};
156 bool m_packetCountHasBeenSet =
false;
158 long long m_byteCount{0};
159 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