AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
InvestigationMalwareScan.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/guardduty/GuardDuty_EXPORTS.h>
11#include <aws/guardduty/model/MalwareProtectionScanType.h>
12#include <aws/guardduty/model/MalwareThreat.h>
13#include <aws/guardduty/model/ScanCategory.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GuardDuty {
25namespace Model {
26
33 public:
34 AWS_GUARDDUTY_API InvestigationMalwareScan() = default;
37 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetScanId() const { return m_scanId; }
44 inline bool ScanIdHasBeenSet() const { return m_scanIdHasBeenSet; }
45 template <typename ScanIdT = Aws::String>
46 void SetScanId(ScanIdT&& value) {
47 m_scanIdHasBeenSet = true;
48 m_scanId = std::forward<ScanIdT>(value);
49 }
50 template <typename ScanIdT = Aws::String>
52 SetScanId(std::forward<ScanIdT>(value));
53 return *this;
54 }
56
58
62 inline MalwareProtectionScanType GetScanType() const { return m_scanType; }
63 inline bool ScanTypeHasBeenSet() const { return m_scanTypeHasBeenSet; }
65 m_scanTypeHasBeenSet = true;
66 m_scanType = value;
67 }
69 SetScanType(value);
70 return *this;
71 }
73
75
79 inline ScanCategory GetScanCategory() const { return m_scanCategory; }
80 inline bool ScanCategoryHasBeenSet() const { return m_scanCategoryHasBeenSet; }
81 inline void SetScanCategory(ScanCategory value) {
82 m_scanCategoryHasBeenSet = true;
83 m_scanCategory = value;
84 }
86 SetScanCategory(value);
87 return *this;
88 }
90
92
95 inline const Aws::String& GetTriggerFindingId() const { return m_triggerFindingId; }
96 inline bool TriggerFindingIdHasBeenSet() const { return m_triggerFindingIdHasBeenSet; }
97 template <typename TriggerFindingIdT = Aws::String>
98 void SetTriggerFindingId(TriggerFindingIdT&& value) {
99 m_triggerFindingIdHasBeenSet = true;
100 m_triggerFindingId = std::forward<TriggerFindingIdT>(value);
101 }
102 template <typename TriggerFindingIdT = Aws::String>
103 InvestigationMalwareScan& WithTriggerFindingId(TriggerFindingIdT&& value) {
104 SetTriggerFindingId(std::forward<TriggerFindingIdT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetEngineSources() const { return m_engineSources; }
114 inline bool EngineSourcesHasBeenSet() const { return m_engineSourcesHasBeenSet; }
115 template <typename EngineSourcesT = Aws::String>
116 void SetEngineSources(EngineSourcesT&& value) {
117 m_engineSourcesHasBeenSet = true;
118 m_engineSources = std::forward<EngineSourcesT>(value);
119 }
120 template <typename EngineSourcesT = Aws::String>
122 SetEngineSources(std::forward<EngineSourcesT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Utils::DateTime& GetScanStartedAt() const { return m_scanStartedAt; }
132 inline bool ScanStartedAtHasBeenSet() const { return m_scanStartedAtHasBeenSet; }
133 template <typename ScanStartedAtT = Aws::Utils::DateTime>
134 void SetScanStartedAt(ScanStartedAtT&& value) {
135 m_scanStartedAtHasBeenSet = true;
136 m_scanStartedAt = std::forward<ScanStartedAtT>(value);
137 }
138 template <typename ScanStartedAtT = Aws::Utils::DateTime>
140 SetScanStartedAt(std::forward<ScanStartedAtT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::Utils::DateTime& GetScanCompletedAt() const { return m_scanCompletedAt; }
150 inline bool ScanCompletedAtHasBeenSet() const { return m_scanCompletedAtHasBeenSet; }
151 template <typename ScanCompletedAtT = Aws::Utils::DateTime>
152 void SetScanCompletedAt(ScanCompletedAtT&& value) {
153 m_scanCompletedAtHasBeenSet = true;
154 m_scanCompletedAt = std::forward<ScanCompletedAtT>(value);
155 }
156 template <typename ScanCompletedAtT = Aws::Utils::DateTime>
158 SetScanCompletedAt(std::forward<ScanCompletedAtT>(value));
159 return *this;
160 }
162
164
167 inline long long GetFilesScanned() const { return m_filesScanned; }
168 inline bool FilesScannedHasBeenSet() const { return m_filesScannedHasBeenSet; }
169 inline void SetFilesScanned(long long value) {
170 m_filesScannedHasBeenSet = true;
171 m_filesScanned = value;
172 }
174 SetFilesScanned(value);
175 return *this;
176 }
178
180
183 inline double GetGigabytesScanned() const { return m_gigabytesScanned; }
184 inline bool GigabytesScannedHasBeenSet() const { return m_gigabytesScannedHasBeenSet; }
185 inline void SetGigabytesScanned(double value) {
186 m_gigabytesScannedHasBeenSet = true;
187 m_gigabytesScanned = value;
188 }
190 SetGigabytesScanned(value);
191 return *this;
192 }
194
196
199 inline long long GetVolumesScanned() const { return m_volumesScanned; }
200 inline bool VolumesScannedHasBeenSet() const { return m_volumesScannedHasBeenSet; }
201 inline void SetVolumesScanned(long long value) {
202 m_volumesScannedHasBeenSet = true;
203 m_volumesScanned = value;
204 }
206 SetVolumesScanned(value);
207 return *this;
208 }
210
212
215 inline long long GetInfectedFileCount() const { return m_infectedFileCount; }
216 inline bool InfectedFileCountHasBeenSet() const { return m_infectedFileCountHasBeenSet; }
217 inline void SetInfectedFileCount(long long value) {
218 m_infectedFileCountHasBeenSet = true;
219 m_infectedFileCount = value;
220 }
223 return *this;
224 }
226
228
231 inline const Aws::String& GetResourceType() const { return m_resourceType; }
232 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
233 template <typename ResourceTypeT = Aws::String>
234 void SetResourceType(ResourceTypeT&& value) {
235 m_resourceTypeHasBeenSet = true;
236 m_resourceType = std::forward<ResourceTypeT>(value);
237 }
238 template <typename ResourceTypeT = Aws::String>
240 SetResourceType(std::forward<ResourceTypeT>(value));
241 return *this;
242 }
244
246
249 inline const Aws::String& GetResourceIdentifier() const { return m_resourceIdentifier; }
250 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
251 template <typename ResourceIdentifierT = Aws::String>
252 void SetResourceIdentifier(ResourceIdentifierT&& value) {
253 m_resourceIdentifierHasBeenSet = true;
254 m_resourceIdentifier = std::forward<ResourceIdentifierT>(value);
255 }
256 template <typename ResourceIdentifierT = Aws::String>
257 InvestigationMalwareScan& WithResourceIdentifier(ResourceIdentifierT&& value) {
258 SetResourceIdentifier(std::forward<ResourceIdentifierT>(value));
259 return *this;
260 }
262
264
267 inline const Aws::String& GetHighestSeverity() const { return m_highestSeverity; }
268 inline bool HighestSeverityHasBeenSet() const { return m_highestSeverityHasBeenSet; }
269 template <typename HighestSeverityT = Aws::String>
270 void SetHighestSeverity(HighestSeverityT&& value) {
271 m_highestSeverityHasBeenSet = true;
272 m_highestSeverity = std::forward<HighestSeverityT>(value);
273 }
274 template <typename HighestSeverityT = Aws::String>
276 SetHighestSeverity(std::forward<HighestSeverityT>(value));
277 return *this;
278 }
280
282
285 inline const Aws::String& GetHighestSeverityThreatName() const { return m_highestSeverityThreatName; }
286 inline bool HighestSeverityThreatNameHasBeenSet() const { return m_highestSeverityThreatNameHasBeenSet; }
287 template <typename HighestSeverityThreatNameT = Aws::String>
288 void SetHighestSeverityThreatName(HighestSeverityThreatNameT&& value) {
289 m_highestSeverityThreatNameHasBeenSet = true;
290 m_highestSeverityThreatName = std::forward<HighestSeverityThreatNameT>(value);
291 }
292 template <typename HighestSeverityThreatNameT = Aws::String>
293 InvestigationMalwareScan& WithHighestSeverityThreatName(HighestSeverityThreatNameT&& value) {
294 SetHighestSeverityThreatName(std::forward<HighestSeverityThreatNameT>(value));
295 return *this;
296 }
298
300
303 inline long long GetUniqueThreatCount() const { return m_uniqueThreatCount; }
304 inline bool UniqueThreatCountHasBeenSet() const { return m_uniqueThreatCountHasBeenSet; }
305 inline void SetUniqueThreatCount(long long value) {
306 m_uniqueThreatCountHasBeenSet = true;
307 m_uniqueThreatCount = value;
308 }
311 return *this;
312 }
314
316
319 inline long long GetTotalInfectedItems() const { return m_totalInfectedItems; }
320 inline bool TotalInfectedItemsHasBeenSet() const { return m_totalInfectedItemsHasBeenSet; }
321 inline void SetTotalInfectedItems(long long value) {
322 m_totalInfectedItemsHasBeenSet = true;
323 m_totalInfectedItems = value;
324 }
327 return *this;
328 }
330
332
335 inline const Aws::Vector<MalwareThreat>& GetThreats() const { return m_threats; }
336 inline bool ThreatsHasBeenSet() const { return m_threatsHasBeenSet; }
337 template <typename ThreatsT = Aws::Vector<MalwareThreat>>
338 void SetThreats(ThreatsT&& value) {
339 m_threatsHasBeenSet = true;
340 m_threats = std::forward<ThreatsT>(value);
341 }
342 template <typename ThreatsT = Aws::Vector<MalwareThreat>>
344 SetThreats(std::forward<ThreatsT>(value));
345 return *this;
346 }
347 template <typename ThreatsT = MalwareThreat>
349 m_threatsHasBeenSet = true;
350 m_threats.emplace_back(std::forward<ThreatsT>(value));
351 return *this;
352 }
354 private:
355 Aws::String m_scanId;
356
358
359 ScanCategory m_scanCategory{ScanCategory::NOT_SET};
360
361 Aws::String m_triggerFindingId;
362
363 Aws::String m_engineSources;
364
365 Aws::Utils::DateTime m_scanStartedAt{};
366
367 Aws::Utils::DateTime m_scanCompletedAt{};
368
369 long long m_filesScanned{0};
370
371 double m_gigabytesScanned{0.0};
372
373 long long m_volumesScanned{0};
374
375 long long m_infectedFileCount{0};
376
377 Aws::String m_resourceType;
378
379 Aws::String m_resourceIdentifier;
380
381 Aws::String m_highestSeverity;
382
383 Aws::String m_highestSeverityThreatName;
384
385 long long m_uniqueThreatCount{0};
386
387 long long m_totalInfectedItems{0};
388
390 bool m_scanIdHasBeenSet = false;
391 bool m_scanTypeHasBeenSet = false;
392 bool m_scanCategoryHasBeenSet = false;
393 bool m_triggerFindingIdHasBeenSet = false;
394 bool m_engineSourcesHasBeenSet = false;
395 bool m_scanStartedAtHasBeenSet = false;
396 bool m_scanCompletedAtHasBeenSet = false;
397 bool m_filesScannedHasBeenSet = false;
398 bool m_gigabytesScannedHasBeenSet = false;
399 bool m_volumesScannedHasBeenSet = false;
400 bool m_infectedFileCountHasBeenSet = false;
401 bool m_resourceTypeHasBeenSet = false;
402 bool m_resourceIdentifierHasBeenSet = false;
403 bool m_highestSeverityHasBeenSet = false;
404 bool m_highestSeverityThreatNameHasBeenSet = false;
405 bool m_uniqueThreatCountHasBeenSet = false;
406 bool m_totalInfectedItemsHasBeenSet = false;
407 bool m_threatsHasBeenSet = false;
408};
409
410} // namespace Model
411} // namespace GuardDuty
412} // namespace Aws
AWS_GUARDDUTY_API InvestigationMalwareScan & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetScanType(MalwareProtectionScanType value)
InvestigationMalwareScan & WithUniqueThreatCount(long long value)
InvestigationMalwareScan & WithThreats(ThreatsT &&value)
InvestigationMalwareScan & WithTriggerFindingId(TriggerFindingIdT &&value)
InvestigationMalwareScan & AddThreats(ThreatsT &&value)
InvestigationMalwareScan & WithScanCategory(ScanCategory value)
InvestigationMalwareScan & WithHighestSeverityThreatName(HighestSeverityThreatNameT &&value)
InvestigationMalwareScan & WithResourceIdentifier(ResourceIdentifierT &&value)
void SetHighestSeverityThreatName(HighestSeverityThreatNameT &&value)
AWS_GUARDDUTY_API InvestigationMalwareScan(Aws::Utils::Json::JsonView jsonValue)
InvestigationMalwareScan & WithFilesScanned(long long value)
InvestigationMalwareScan & WithScanId(ScanIdT &&value)
const Aws::Utils::DateTime & GetScanCompletedAt() const
InvestigationMalwareScan & WithHighestSeverity(HighestSeverityT &&value)
InvestigationMalwareScan & WithEngineSources(EngineSourcesT &&value)
InvestigationMalwareScan & WithGigabytesScanned(double value)
InvestigationMalwareScan & WithVolumesScanned(long long value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetScanStartedAt() const
InvestigationMalwareScan & WithScanCompletedAt(ScanCompletedAtT &&value)
InvestigationMalwareScan & WithTotalInfectedItems(long long value)
InvestigationMalwareScan & WithScanType(MalwareProtectionScanType value)
InvestigationMalwareScan & WithResourceType(ResourceTypeT &&value)
const Aws::Vector< MalwareThreat > & GetThreats() const
InvestigationMalwareScan & WithInfectedFileCount(long long value)
InvestigationMalwareScan & WithScanStartedAt(ScanStartedAtT &&value)
AWS_GUARDDUTY_API InvestigationMalwareScan()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue