AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
Flow.h
1
6#pragma once
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>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace NetworkFirewall {
21namespace Model {
22
30class Flow {
31 public:
32 AWS_NETWORKFIREWALL_API Flow() = default;
33 AWS_NETWORKFIREWALL_API Flow(Aws::Utils::Json::JsonView jsonValue);
34 AWS_NETWORKFIREWALL_API Flow& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
39 inline const Address& GetSourceAddress() const { return m_sourceAddress; }
40 inline bool SourceAddressHasBeenSet() const { return m_sourceAddressHasBeenSet; }
41 template <typename SourceAddressT = Address>
42 void SetSourceAddress(SourceAddressT&& value) {
43 m_sourceAddressHasBeenSet = true;
44 m_sourceAddress = std::forward<SourceAddressT>(value);
45 }
46 template <typename SourceAddressT = Address>
47 Flow& WithSourceAddress(SourceAddressT&& value) {
48 SetSourceAddress(std::forward<SourceAddressT>(value));
49 return *this;
50 }
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) {
59 m_destinationAddressHasBeenSet = true;
60 m_destinationAddress = std::forward<DestinationAddressT>(value);
61 }
62 template <typename DestinationAddressT = Address>
63 Flow& WithDestinationAddress(DestinationAddressT&& value) {
64 SetDestinationAddress(std::forward<DestinationAddressT>(value));
65 return *this;
66 }
68
70
75 inline const Aws::String& GetSourcePort() const { return m_sourcePort; }
76 inline bool SourcePortHasBeenSet() const { return m_sourcePortHasBeenSet; }
77 template <typename SourcePortT = Aws::String>
78 void SetSourcePort(SourcePortT&& value) {
79 m_sourcePortHasBeenSet = true;
80 m_sourcePort = std::forward<SourcePortT>(value);
81 }
82 template <typename SourcePortT = Aws::String>
83 Flow& WithSourcePort(SourcePortT&& value) {
84 SetSourcePort(std::forward<SourcePortT>(value));
85 return *this;
86 }
88
90
95 inline const Aws::String& GetDestinationPort() const { return m_destinationPort; }
96 inline bool DestinationPortHasBeenSet() const { return m_destinationPortHasBeenSet; }
97 template <typename DestinationPortT = Aws::String>
98 void SetDestinationPort(DestinationPortT&& value) {
99 m_destinationPortHasBeenSet = true;
100 m_destinationPort = std::forward<DestinationPortT>(value);
101 }
102 template <typename DestinationPortT = Aws::String>
103 Flow& WithDestinationPort(DestinationPortT&& value) {
104 SetDestinationPort(std::forward<DestinationPortT>(value));
105 return *this;
106 }
108
110
115 inline const Aws::String& GetProtocol() const { return m_protocol; }
116 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
117 template <typename ProtocolT = Aws::String>
118 void SetProtocol(ProtocolT&& value) {
119 m_protocolHasBeenSet = true;
120 m_protocol = std::forward<ProtocolT>(value);
121 }
122 template <typename ProtocolT = Aws::String>
123 Flow& WithProtocol(ProtocolT&& value) {
124 SetProtocol(std::forward<ProtocolT>(value));
125 return *this;
126 }
128
130
133 inline int GetAge() const { return m_age; }
134 inline bool AgeHasBeenSet() const { return m_ageHasBeenSet; }
135 inline void SetAge(int value) {
136 m_ageHasBeenSet = true;
137 m_age = value;
138 }
139 inline Flow& WithAge(int value) {
140 SetAge(value);
141 return *this;
142 }
144
146
150 inline int GetPacketCount() const { return m_packetCount; }
151 inline bool PacketCountHasBeenSet() const { return m_packetCountHasBeenSet; }
152 inline void SetPacketCount(int value) {
153 m_packetCountHasBeenSet = true;
154 m_packetCount = value;
155 }
156 inline Flow& WithPacketCount(int value) {
157 SetPacketCount(value);
158 return *this;
159 }
161
163
166 inline long long GetByteCount() const { return m_byteCount; }
167 inline bool ByteCountHasBeenSet() const { return m_byteCountHasBeenSet; }
168 inline void SetByteCount(long long value) {
169 m_byteCountHasBeenSet = true;
170 m_byteCount = value;
171 }
172 inline Flow& WithByteCount(long long value) {
173 SetByteCount(value);
174 return *this;
175 }
177 private:
178 Address m_sourceAddress;
179
180 Address m_destinationAddress;
181
182 Aws::String m_sourcePort;
183
184 Aws::String m_destinationPort;
185
186 Aws::String m_protocol;
187
188 int m_age{0};
189
190 int m_packetCount{0};
191
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;
201};
202
203} // namespace Model
204} // namespace NetworkFirewall
205} // namespace Aws
long long GetByteCount() const
Definition Flow.h:166
void SetDestinationPort(DestinationPortT &&value)
Definition Flow.h:98
Flow & WithByteCount(long long value)
Definition Flow.h:172
void SetProtocol(ProtocolT &&value)
Definition Flow.h:118
bool ByteCountHasBeenSet() const
Definition Flow.h:167
const Aws::String & GetSourcePort() const
Definition Flow.h:75
AWS_NETWORKFIREWALL_API Flow(Aws::Utils::Json::JsonView jsonValue)
bool SourcePortHasBeenSet() const
Definition Flow.h:76
void SetPacketCount(int value)
Definition Flow.h:152
const Address & GetSourceAddress() const
Definition Flow.h:39
void SetByteCount(long long value)
Definition Flow.h:168
const Aws::String & GetProtocol() const
Definition Flow.h:115
Flow & WithPacketCount(int value)
Definition Flow.h:156
Flow & WithDestinationPort(DestinationPortT &&value)
Definition Flow.h:103
Flow & WithProtocol(ProtocolT &&value)
Definition Flow.h:123
const Aws::String & GetDestinationPort() const
Definition Flow.h:95
AWS_NETWORKFIREWALL_API Flow & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFIREWALL_API Flow()=default
bool PacketCountHasBeenSet() const
Definition Flow.h:151
Flow & WithSourcePort(SourcePortT &&value)
Definition Flow.h:83
Flow & WithAge(int value)
Definition Flow.h:139
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
bool DestinationPortHasBeenSet() const
Definition Flow.h:96
Flow & WithSourceAddress(SourceAddressT &&value)
Definition Flow.h:47
bool ProtocolHasBeenSet() const
Definition Flow.h:116
void SetDestinationAddress(DestinationAddressT &&value)
Definition Flow.h:58
void SetSourcePort(SourcePortT &&value)
Definition Flow.h:78
Flow & WithDestinationAddress(DestinationAddressT &&value)
Definition Flow.h:63
void SetSourceAddress(SourceAddressT &&value)
Definition Flow.h:42
bool SourceAddressHasBeenSet() const
Definition Flow.h:40
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