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

Contains details about identified threats organized by threat * name.

See Also:

AWS * API Reference

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

Total number of infected files identified.

*/ inline int GetItemCount() const{ return m_itemCount; } /** *

Total number of infected files identified.

*/ inline bool ItemCountHasBeenSet() const { return m_itemCountHasBeenSet; } /** *

Total number of infected files identified.

*/ inline void SetItemCount(int value) { m_itemCountHasBeenSet = true; m_itemCount = value; } /** *

Total number of infected files identified.

*/ inline ThreatDetectedByName& WithItemCount(int value) { SetItemCount(value); return *this;} /** *

Total number of unique threats by name identified, as part of the malware * scan.

*/ inline int GetUniqueThreatNameCount() const{ return m_uniqueThreatNameCount; } /** *

Total number of unique threats by name identified, as part of the malware * scan.

*/ inline bool UniqueThreatNameCountHasBeenSet() const { return m_uniqueThreatNameCountHasBeenSet; } /** *

Total number of unique threats by name identified, as part of the malware * scan.

*/ inline void SetUniqueThreatNameCount(int value) { m_uniqueThreatNameCountHasBeenSet = true; m_uniqueThreatNameCount = value; } /** *

Total number of unique threats by name identified, as part of the malware * scan.

*/ inline ThreatDetectedByName& WithUniqueThreatNameCount(int value) { SetUniqueThreatNameCount(value); return *this;} /** *

Flag to determine if the finding contains every single infected file-path * and/or every threat.

*/ inline bool GetShortened() const{ return m_shortened; } /** *

Flag to determine if the finding contains every single infected file-path * and/or every threat.

*/ inline bool ShortenedHasBeenSet() const { return m_shortenedHasBeenSet; } /** *

Flag to determine if the finding contains every single infected file-path * and/or every threat.

*/ inline void SetShortened(bool value) { m_shortenedHasBeenSet = true; m_shortened = value; } /** *

Flag to determine if the finding contains every single infected file-path * and/or every threat.

*/ inline ThreatDetectedByName& WithShortened(bool value) { SetShortened(value); return *this;} /** *

List of identified threats with details, organized by threat name.

*/ inline const Aws::Vector& GetThreatNames() const{ return m_threatNames; } /** *

List of identified threats with details, organized by threat name.

*/ inline bool ThreatNamesHasBeenSet() const { return m_threatNamesHasBeenSet; } /** *

List of identified threats with details, organized by threat name.

*/ inline void SetThreatNames(const Aws::Vector& value) { m_threatNamesHasBeenSet = true; m_threatNames = value; } /** *

List of identified threats with details, organized by threat name.

*/ inline void SetThreatNames(Aws::Vector&& value) { m_threatNamesHasBeenSet = true; m_threatNames = std::move(value); } /** *

List of identified threats with details, organized by threat name.

*/ inline ThreatDetectedByName& WithThreatNames(const Aws::Vector& value) { SetThreatNames(value); return *this;} /** *

List of identified threats with details, organized by threat name.

*/ inline ThreatDetectedByName& WithThreatNames(Aws::Vector&& value) { SetThreatNames(std::move(value)); return *this;} /** *

List of identified threats with details, organized by threat name.

*/ inline ThreatDetectedByName& AddThreatNames(const ScanThreatName& value) { m_threatNamesHasBeenSet = true; m_threatNames.push_back(value); return *this; } /** *

List of identified threats with details, organized by threat name.

*/ inline ThreatDetectedByName& AddThreatNames(ScanThreatName&& value) { m_threatNamesHasBeenSet = true; m_threatNames.push_back(std::move(value)); return *this; } private: int m_itemCount; bool m_itemCountHasBeenSet = false; int m_uniqueThreatNameCount; bool m_uniqueThreatNameCountHasBeenSet = false; bool m_shortened; bool m_shortenedHasBeenSet = false; Aws::Vector m_threatNames; bool m_threatNamesHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws