AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
NetworkTraffic.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace GuardDuty {
17namespace Model {
18
26 public:
27 AWS_GUARDDUTY_API NetworkTraffic() = default;
28 AWS_GUARDDUTY_API NetworkTraffic(Aws::Utils::Json::JsonView jsonValue);
30 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline long long GetBytesSent() const { return m_bytesSent; }
37 inline bool BytesSentHasBeenSet() const { return m_bytesSentHasBeenSet; }
38 inline void SetBytesSent(long long value) {
39 m_bytesSentHasBeenSet = true;
40 m_bytesSent = value;
41 }
42 inline NetworkTraffic& WithBytesSent(long long value) {
43 SetBytesSent(value);
44 return *this;
45 }
47
49
52 inline long long GetBytesReceived() const { return m_bytesReceived; }
53 inline bool BytesReceivedHasBeenSet() const { return m_bytesReceivedHasBeenSet; }
54 inline void SetBytesReceived(long long value) {
55 m_bytesReceivedHasBeenSet = true;
56 m_bytesReceived = value;
57 }
58 inline NetworkTraffic& WithBytesReceived(long long value) {
59 SetBytesReceived(value);
60 return *this;
61 }
63 private:
64 long long m_bytesSent{0};
65
66 long long m_bytesReceived{0};
67 bool m_bytesSentHasBeenSet = false;
68 bool m_bytesReceivedHasBeenSet = false;
69};
70
71} // namespace Model
72} // namespace GuardDuty
73} // namespace Aws
NetworkTraffic & WithBytesSent(long long value)
AWS_GUARDDUTY_API NetworkTraffic & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API NetworkTraffic()=default
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API NetworkTraffic(Aws::Utils::Json::JsonView jsonValue)
NetworkTraffic & WithBytesReceived(long long value)
Aws::Utils::Json::JsonValue JsonValue