AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Flow.h
1
6#pragma once
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>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace NetworkFirewall
23{
24namespace Model
25{
26
34 class Flow
35 {
36 public:
37 AWS_NETWORKFIREWALL_API Flow() = default;
38 AWS_NETWORKFIREWALL_API Flow(Aws::Utils::Json::JsonView jsonValue);
39 AWS_NETWORKFIREWALL_API Flow& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
45 inline const Address& GetSourceAddress() const { return m_sourceAddress; }
46 inline bool SourceAddressHasBeenSet() const { return m_sourceAddressHasBeenSet; }
47 template<typename SourceAddressT = Address>
48 void SetSourceAddress(SourceAddressT&& value) { m_sourceAddressHasBeenSet = true; m_sourceAddress = std::forward<SourceAddressT>(value); }
49 template<typename SourceAddressT = Address>
50 Flow& WithSourceAddress(SourceAddressT&& value) { SetSourceAddress(std::forward<SourceAddressT>(value)); return *this;}
52
54
55 inline const Address& GetDestinationAddress() const { return m_destinationAddress; }
56 inline bool DestinationAddressHasBeenSet() const { return m_destinationAddressHasBeenSet; }
57 template<typename DestinationAddressT = Address>
58 void SetDestinationAddress(DestinationAddressT&& value) { m_destinationAddressHasBeenSet = true; m_destinationAddress = std::forward<DestinationAddressT>(value); }
59 template<typename DestinationAddressT = Address>
60 Flow& WithDestinationAddress(DestinationAddressT&& value) { SetDestinationAddress(std::forward<DestinationAddressT>(value)); return *this;}
62
64
69 inline const Aws::String& GetSourcePort() const { return m_sourcePort; }
70 inline bool SourcePortHasBeenSet() const { return m_sourcePortHasBeenSet; }
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>
74 Flow& WithSourcePort(SourcePortT&& value) { SetSourcePort(std::forward<SourcePortT>(value)); return *this;}
76
78
83 inline const Aws::String& GetDestinationPort() const { return m_destinationPort; }
84 inline bool DestinationPortHasBeenSet() const { return m_destinationPortHasBeenSet; }
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>
88 Flow& WithDestinationPort(DestinationPortT&& value) { SetDestinationPort(std::forward<DestinationPortT>(value)); return *this;}
90
92
97 inline const Aws::String& GetProtocol() const { return m_protocol; }
98 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
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>
102 Flow& WithProtocol(ProtocolT&& value) { SetProtocol(std::forward<ProtocolT>(value)); return *this;}
104
106
109 inline int GetAge() const { return m_age; }
110 inline bool AgeHasBeenSet() const { return m_ageHasBeenSet; }
111 inline void SetAge(int value) { m_ageHasBeenSet = true; m_age = value; }
112 inline Flow& WithAge(int value) { SetAge(value); return *this;}
114
116
120 inline int GetPacketCount() const { return m_packetCount; }
121 inline bool PacketCountHasBeenSet() const { return m_packetCountHasBeenSet; }
122 inline void SetPacketCount(int value) { m_packetCountHasBeenSet = true; m_packetCount = value; }
123 inline Flow& WithPacketCount(int value) { SetPacketCount(value); return *this;}
125
127
130 inline long long GetByteCount() const { return m_byteCount; }
131 inline bool ByteCountHasBeenSet() const { return m_byteCountHasBeenSet; }
132 inline void SetByteCount(long long value) { m_byteCountHasBeenSet = true; m_byteCount = value; }
133 inline Flow& WithByteCount(long long value) { SetByteCount(value); return *this;}
135 private:
136
137 Address m_sourceAddress;
138 bool m_sourceAddressHasBeenSet = false;
139
140 Address m_destinationAddress;
141 bool m_destinationAddressHasBeenSet = false;
142
143 Aws::String m_sourcePort;
144 bool m_sourcePortHasBeenSet = false;
145
146 Aws::String m_destinationPort;
147 bool m_destinationPortHasBeenSet = false;
148
149 Aws::String m_protocol;
150 bool m_protocolHasBeenSet = false;
151
152 int m_age{0};
153 bool m_ageHasBeenSet = false;
154
155 int m_packetCount{0};
156 bool m_packetCountHasBeenSet = false;
157
158 long long m_byteCount{0};
159 bool m_byteCountHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace NetworkFirewall
164} // namespace Aws
long long GetByteCount() const
Definition Flow.h:130
void SetDestinationPort(DestinationPortT &&value)
Definition Flow.h:86
Flow & WithByteCount(long long value)
Definition Flow.h:133
void SetProtocol(ProtocolT &&value)
Definition Flow.h:100
bool ByteCountHasBeenSet() const
Definition Flow.h:131
const Aws::String & GetSourcePort() const
Definition Flow.h:69
AWS_NETWORKFIREWALL_API Flow(Aws::Utils::Json::JsonView jsonValue)
bool SourcePortHasBeenSet() const
Definition Flow.h:70
void SetPacketCount(int value)
Definition Flow.h:122
const Address & GetSourceAddress() const
Definition Flow.h:45
void SetByteCount(long long value)
Definition Flow.h:132
const Aws::String & GetProtocol() const
Definition Flow.h:97
Flow & WithPacketCount(int value)
Definition Flow.h:123
Flow & WithDestinationPort(DestinationPortT &&value)
Definition Flow.h:88
Flow & WithProtocol(ProtocolT &&value)
Definition Flow.h:102
const Aws::String & GetDestinationPort() const
Definition Flow.h:83
AWS_NETWORKFIREWALL_API Flow & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFIREWALL_API Flow()=default
bool PacketCountHasBeenSet() const
Definition Flow.h:121
Flow & WithSourcePort(SourcePortT &&value)
Definition Flow.h:74
Flow & WithAge(int value)
Definition Flow.h:112
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
bool DestinationPortHasBeenSet() const
Definition Flow.h:84
Flow & WithSourceAddress(SourceAddressT &&value)
Definition Flow.h:50
bool ProtocolHasBeenSet() const
Definition Flow.h:98
void SetDestinationAddress(DestinationAddressT &&value)
Definition Flow.h:58
void SetSourcePort(SourcePortT &&value)
Definition Flow.h:72
Flow & WithDestinationAddress(DestinationAddressT &&value)
Definition Flow.h:60
void SetSourceAddress(SourceAddressT &&value)
Definition Flow.h:48
bool SourceAddressHasBeenSet() const
Definition Flow.h:46
bool DestinationAddressHasBeenSet() const
Definition Flow.h:56
const Address & GetDestinationAddress() const
Definition Flow.h:55
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue