/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace GuardDuty { namespace Model { /** *

Contains a complete view providing malware scan result details.

See * Also:

AWS * API Reference

*/ class ScanDetections { public: AWS_GUARDDUTY_API ScanDetections(); AWS_GUARDDUTY_API ScanDetections(Aws::Utils::Json::JsonView jsonValue); AWS_GUARDDUTY_API ScanDetections& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Total number of scanned files.

*/ inline const ScannedItemCount& GetScannedItemCount() const{ return m_scannedItemCount; } /** *

Total number of scanned files.

*/ inline bool ScannedItemCountHasBeenSet() const { return m_scannedItemCountHasBeenSet; } /** *

Total number of scanned files.

*/ inline void SetScannedItemCount(const ScannedItemCount& value) { m_scannedItemCountHasBeenSet = true; m_scannedItemCount = value; } /** *

Total number of scanned files.

*/ inline void SetScannedItemCount(ScannedItemCount&& value) { m_scannedItemCountHasBeenSet = true; m_scannedItemCount = std::move(value); } /** *

Total number of scanned files.

*/ inline ScanDetections& WithScannedItemCount(const ScannedItemCount& value) { SetScannedItemCount(value); return *this;} /** *

Total number of scanned files.

*/ inline ScanDetections& WithScannedItemCount(ScannedItemCount&& value) { SetScannedItemCount(std::move(value)); return *this;} /** *

Total number of infected files.

*/ inline const ThreatsDetectedItemCount& GetThreatsDetectedItemCount() const{ return m_threatsDetectedItemCount; } /** *

Total number of infected files.

*/ inline bool ThreatsDetectedItemCountHasBeenSet() const { return m_threatsDetectedItemCountHasBeenSet; } /** *

Total number of infected files.

*/ inline void SetThreatsDetectedItemCount(const ThreatsDetectedItemCount& value) { m_threatsDetectedItemCountHasBeenSet = true; m_threatsDetectedItemCount = value; } /** *

Total number of infected files.

*/ inline void SetThreatsDetectedItemCount(ThreatsDetectedItemCount&& value) { m_threatsDetectedItemCountHasBeenSet = true; m_threatsDetectedItemCount = std::move(value); } /** *

Total number of infected files.

*/ inline ScanDetections& WithThreatsDetectedItemCount(const ThreatsDetectedItemCount& value) { SetThreatsDetectedItemCount(value); return *this;} /** *

Total number of infected files.

*/ inline ScanDetections& WithThreatsDetectedItemCount(ThreatsDetectedItemCount&& value) { SetThreatsDetectedItemCount(std::move(value)); return *this;} /** *

Details of the highest severity threat detected during malware scan and * number of infected files.

*/ inline const HighestSeverityThreatDetails& GetHighestSeverityThreatDetails() const{ return m_highestSeverityThreatDetails; } /** *

Details of the highest severity threat detected during malware scan and * number of infected files.

*/ inline bool HighestSeverityThreatDetailsHasBeenSet() const { return m_highestSeverityThreatDetailsHasBeenSet; } /** *

Details of the highest severity threat detected during malware scan and * number of infected files.

*/ inline void SetHighestSeverityThreatDetails(const HighestSeverityThreatDetails& value) { m_highestSeverityThreatDetailsHasBeenSet = true; m_highestSeverityThreatDetails = value; } /** *

Details of the highest severity threat detected during malware scan and * number of infected files.

*/ inline void SetHighestSeverityThreatDetails(HighestSeverityThreatDetails&& value) { m_highestSeverityThreatDetailsHasBeenSet = true; m_highestSeverityThreatDetails = std::move(value); } /** *

Details of the highest severity threat detected during malware scan and * number of infected files.

*/ inline ScanDetections& WithHighestSeverityThreatDetails(const HighestSeverityThreatDetails& value) { SetHighestSeverityThreatDetails(value); return *this;} /** *

Details of the highest severity threat detected during malware scan and * number of infected files.

*/ inline ScanDetections& WithHighestSeverityThreatDetails(HighestSeverityThreatDetails&& value) { SetHighestSeverityThreatDetails(std::move(value)); return *this;} /** *

Contains details about identified threats organized by threat name.

*/ inline const ThreatDetectedByName& GetThreatDetectedByName() const{ return m_threatDetectedByName; } /** *

Contains details about identified threats organized by threat name.

*/ inline bool ThreatDetectedByNameHasBeenSet() const { return m_threatDetectedByNameHasBeenSet; } /** *

Contains details about identified threats organized by threat name.

*/ inline void SetThreatDetectedByName(const ThreatDetectedByName& value) { m_threatDetectedByNameHasBeenSet = true; m_threatDetectedByName = value; } /** *

Contains details about identified threats organized by threat name.

*/ inline void SetThreatDetectedByName(ThreatDetectedByName&& value) { m_threatDetectedByNameHasBeenSet = true; m_threatDetectedByName = std::move(value); } /** *

Contains details about identified threats organized by threat name.

*/ inline ScanDetections& WithThreatDetectedByName(const ThreatDetectedByName& value) { SetThreatDetectedByName(value); return *this;} /** *

Contains details about identified threats organized by threat name.

*/ inline ScanDetections& WithThreatDetectedByName(ThreatDetectedByName&& value) { SetThreatDetectedByName(std::move(value)); return *this;} private: ScannedItemCount m_scannedItemCount; bool m_scannedItemCountHasBeenSet = false; ThreatsDetectedItemCount m_threatsDetectedItemCount; bool m_threatsDetectedItemCountHasBeenSet = false; HighestSeverityThreatDetails m_highestSeverityThreatDetails; bool m_highestSeverityThreatDetailsHasBeenSet = false; ThreatDetectedByName m_threatDetectedByName; bool m_threatDetectedByNameHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws