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

Contains files infected with the given threat providing details of malware * name and severity.

See Also:

AWS * API Reference

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

The name of the identified threat.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the identified threat.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the identified threat.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the identified threat.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the identified threat.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the identified threat.

*/ inline ScanThreatName& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the identified threat.

*/ inline ScanThreatName& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the identified threat.

*/ inline ScanThreatName& WithName(const char* value) { SetName(value); return *this;} /** *

Severity of threat identified as part of the malware scan.

*/ inline const Aws::String& GetSeverity() const{ return m_severity; } /** *

Severity of threat identified as part of the malware scan.

*/ inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; } /** *

Severity of threat identified as part of the malware scan.

*/ inline void SetSeverity(const Aws::String& value) { m_severityHasBeenSet = true; m_severity = value; } /** *

Severity of threat identified as part of the malware scan.

*/ inline void SetSeverity(Aws::String&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); } /** *

Severity of threat identified as part of the malware scan.

*/ inline void SetSeverity(const char* value) { m_severityHasBeenSet = true; m_severity.assign(value); } /** *

Severity of threat identified as part of the malware scan.

*/ inline ScanThreatName& WithSeverity(const Aws::String& value) { SetSeverity(value); return *this;} /** *

Severity of threat identified as part of the malware scan.

*/ inline ScanThreatName& WithSeverity(Aws::String&& value) { SetSeverity(std::move(value)); return *this;} /** *

Severity of threat identified as part of the malware scan.

*/ inline ScanThreatName& WithSeverity(const char* value) { SetSeverity(value); return *this;} /** *

Total number of files infected with given threat.

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

Total number of files infected with given threat.

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

Total number of files infected with given threat.

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

Total number of files infected with given threat.

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

List of infected files in EBS volume with details.

*/ inline const Aws::Vector& GetFilePaths() const{ return m_filePaths; } /** *

List of infected files in EBS volume with details.

*/ inline bool FilePathsHasBeenSet() const { return m_filePathsHasBeenSet; } /** *

List of infected files in EBS volume with details.

*/ inline void SetFilePaths(const Aws::Vector& value) { m_filePathsHasBeenSet = true; m_filePaths = value; } /** *

List of infected files in EBS volume with details.

*/ inline void SetFilePaths(Aws::Vector&& value) { m_filePathsHasBeenSet = true; m_filePaths = std::move(value); } /** *

List of infected files in EBS volume with details.

*/ inline ScanThreatName& WithFilePaths(const Aws::Vector& value) { SetFilePaths(value); return *this;} /** *

List of infected files in EBS volume with details.

*/ inline ScanThreatName& WithFilePaths(Aws::Vector&& value) { SetFilePaths(std::move(value)); return *this;} /** *

List of infected files in EBS volume with details.

*/ inline ScanThreatName& AddFilePaths(const ScanFilePath& value) { m_filePathsHasBeenSet = true; m_filePaths.push_back(value); return *this; } /** *

List of infected files in EBS volume with details.

*/ inline ScanThreatName& AddFilePaths(ScanFilePath&& value) { m_filePathsHasBeenSet = true; m_filePaths.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_severity; bool m_severityHasBeenSet = false; int m_itemCount; bool m_itemCountHasBeenSet = false; Aws::Vector m_filePaths; bool m_filePathsHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws