AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
NetworkActivity.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9#include <aws/guardduty/model/DnsContext.h>
10#include <aws/guardduty/model/Enrichment.h>
11#include <aws/guardduty/model/NetworkAnomaly.h>
12#include <aws/guardduty/model/NetworkCounts.h>
13#include <aws/guardduty/model/NetworkPorts.h>
14#include <aws/guardduty/model/NetworkTraffic.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace GuardDuty {
26namespace Model {
27
34 public:
35 AWS_GUARDDUTY_API NetworkActivity() = default;
36 AWS_GUARDDUTY_API NetworkActivity(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetProtocol() const { return m_protocol; }
45 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
46 template <typename ProtocolT = Aws::String>
47 void SetProtocol(ProtocolT&& value) {
48 m_protocolHasBeenSet = true;
49 m_protocol = std::forward<ProtocolT>(value);
50 }
51 template <typename ProtocolT = Aws::String>
52 NetworkActivity& WithProtocol(ProtocolT&& value) {
53 SetProtocol(std::forward<ProtocolT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetDirection() const { return m_direction; }
63 inline bool DirectionHasBeenSet() const { return m_directionHasBeenSet; }
64 template <typename DirectionT = Aws::String>
65 void SetDirection(DirectionT&& value) {
66 m_directionHasBeenSet = true;
67 m_direction = std::forward<DirectionT>(value);
68 }
69 template <typename DirectionT = Aws::String>
70 NetworkActivity& WithDirection(DirectionT&& value) {
71 SetDirection(std::forward<DirectionT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetMethod() const { return m_method; }
81 inline bool MethodHasBeenSet() const { return m_methodHasBeenSet; }
82 template <typename MethodT = Aws::String>
83 void SetMethod(MethodT&& value) {
84 m_methodHasBeenSet = true;
85 m_method = std::forward<MethodT>(value);
86 }
87 template <typename MethodT = Aws::String>
88 NetworkActivity& WithMethod(MethodT&& value) {
89 SetMethod(std::forward<MethodT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetBlocked() const { return m_blocked; }
99 inline bool BlockedHasBeenSet() const { return m_blockedHasBeenSet; }
100 template <typename BlockedT = Aws::String>
101 void SetBlocked(BlockedT&& value) {
102 m_blockedHasBeenSet = true;
103 m_blocked = std::forward<BlockedT>(value);
104 }
105 template <typename BlockedT = Aws::String>
106 NetworkActivity& WithBlocked(BlockedT&& value) {
107 SetBlocked(std::forward<BlockedT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetPlatform() const { return m_platform; }
117 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
118 template <typename PlatformT = Aws::String>
119 void SetPlatform(PlatformT&& value) {
120 m_platformHasBeenSet = true;
121 m_platform = std::forward<PlatformT>(value);
122 }
123 template <typename PlatformT = Aws::String>
124 NetworkActivity& WithPlatform(PlatformT&& value) {
125 SetPlatform(std::forward<PlatformT>(value));
126 return *this;
127 }
129
131
134 inline const NetworkPorts& GetPorts() const { return m_ports; }
135 inline bool PortsHasBeenSet() const { return m_portsHasBeenSet; }
136 template <typename PortsT = NetworkPorts>
137 void SetPorts(PortsT&& value) {
138 m_portsHasBeenSet = true;
139 m_ports = std::forward<PortsT>(value);
140 }
141 template <typename PortsT = NetworkPorts>
142 NetworkActivity& WithPorts(PortsT&& value) {
143 SetPorts(std::forward<PortsT>(value));
144 return *this;
145 }
147
149
152 inline const NetworkTraffic& GetTraffic() const { return m_traffic; }
153 inline bool TrafficHasBeenSet() const { return m_trafficHasBeenSet; }
154 template <typename TrafficT = NetworkTraffic>
155 void SetTraffic(TrafficT&& value) {
156 m_trafficHasBeenSet = true;
157 m_traffic = std::forward<TrafficT>(value);
158 }
159 template <typename TrafficT = NetworkTraffic>
160 NetworkActivity& WithTraffic(TrafficT&& value) {
161 SetTraffic(std::forward<TrafficT>(value));
162 return *this;
163 }
165
167
170 inline const NetworkAnomaly& GetAnomaly() const { return m_anomaly; }
171 inline bool AnomalyHasBeenSet() const { return m_anomalyHasBeenSet; }
172 template <typename AnomalyT = NetworkAnomaly>
173 void SetAnomaly(AnomalyT&& value) {
174 m_anomalyHasBeenSet = true;
175 m_anomaly = std::forward<AnomalyT>(value);
176 }
177 template <typename AnomalyT = NetworkAnomaly>
178 NetworkActivity& WithAnomaly(AnomalyT&& value) {
179 SetAnomaly(std::forward<AnomalyT>(value));
180 return *this;
181 }
183
185
188 inline const DnsContext& GetDns() const { return m_dns; }
189 inline bool DnsHasBeenSet() const { return m_dnsHasBeenSet; }
190 template <typename DnsT = DnsContext>
191 void SetDns(DnsT&& value) {
192 m_dnsHasBeenSet = true;
193 m_dns = std::forward<DnsT>(value);
194 }
195 template <typename DnsT = DnsContext>
196 NetworkActivity& WithDns(DnsT&& value) {
197 SetDns(std::forward<DnsT>(value));
198 return *this;
199 }
201
203
207 inline const NetworkCounts& GetCounts() const { return m_counts; }
208 inline bool CountsHasBeenSet() const { return m_countsHasBeenSet; }
209 template <typename CountsT = NetworkCounts>
210 void SetCounts(CountsT&& value) {
211 m_countsHasBeenSet = true;
212 m_counts = std::forward<CountsT>(value);
213 }
214 template <typename CountsT = NetworkCounts>
215 NetworkActivity& WithCounts(CountsT&& value) {
216 SetCounts(std::forward<CountsT>(value));
217 return *this;
218 }
220
222
226 inline const Enrichment& GetEnrichment() const { return m_enrichment; }
227 inline bool EnrichmentHasBeenSet() const { return m_enrichmentHasBeenSet; }
228 template <typename EnrichmentT = Enrichment>
229 void SetEnrichment(EnrichmentT&& value) {
230 m_enrichmentHasBeenSet = true;
231 m_enrichment = std::forward<EnrichmentT>(value);
232 }
233 template <typename EnrichmentT = Enrichment>
234 NetworkActivity& WithEnrichment(EnrichmentT&& value) {
235 SetEnrichment(std::forward<EnrichmentT>(value));
236 return *this;
237 }
239 private:
240 Aws::String m_protocol;
241
242 Aws::String m_direction;
243
244 Aws::String m_method;
245
246 Aws::String m_blocked;
247
248 Aws::String m_platform;
249
250 NetworkPorts m_ports;
251
252 NetworkTraffic m_traffic;
253
254 NetworkAnomaly m_anomaly;
255
256 DnsContext m_dns;
257
258 NetworkCounts m_counts;
259
260 Enrichment m_enrichment;
261 bool m_protocolHasBeenSet = false;
262 bool m_directionHasBeenSet = false;
263 bool m_methodHasBeenSet = false;
264 bool m_blockedHasBeenSet = false;
265 bool m_platformHasBeenSet = false;
266 bool m_portsHasBeenSet = false;
267 bool m_trafficHasBeenSet = false;
268 bool m_anomalyHasBeenSet = false;
269 bool m_dnsHasBeenSet = false;
270 bool m_countsHasBeenSet = false;
271 bool m_enrichmentHasBeenSet = false;
272};
273
274} // namespace Model
275} // namespace GuardDuty
276} // namespace Aws
AWS_GUARDDUTY_API NetworkActivity & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMethod() const
const NetworkPorts & GetPorts() const
void SetEnrichment(EnrichmentT &&value)
NetworkActivity & WithAnomaly(AnomalyT &&value)
NetworkActivity & WithPorts(PortsT &&value)
const Aws::String & GetDirection() const
const NetworkAnomaly & GetAnomaly() const
const NetworkCounts & GetCounts() const
AWS_GUARDDUTY_API NetworkActivity(Aws::Utils::Json::JsonView jsonValue)
NetworkActivity & WithDns(DnsT &&value)
NetworkActivity & WithEnrichment(EnrichmentT &&value)
const Aws::String & GetBlocked() const
AWS_GUARDDUTY_API NetworkActivity()=default
NetworkActivity & WithCounts(CountsT &&value)
const Aws::String & GetPlatform() const
const NetworkTraffic & GetTraffic() const
const Enrichment & GetEnrichment() const
NetworkActivity & WithBlocked(BlockedT &&value)
NetworkActivity & WithTraffic(TrafficT &&value)
NetworkActivity & WithMethod(MethodT &&value)
NetworkActivity & WithPlatform(PlatformT &&value)
const Aws::String & GetProtocol() const
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
NetworkActivity & WithDirection(DirectionT &&value)
NetworkActivity & WithProtocol(ProtocolT &&value)
void SetDirection(DirectionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue