/** * 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 information about finding statistics.

See Also:

AWS * API Reference

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

Represents a map of severity to count statistics for a set of findings.

*/ inline const Aws::Map& GetCountBySeverity() const{ return m_countBySeverity; } /** *

Represents a map of severity to count statistics for a set of findings.

*/ inline bool CountBySeverityHasBeenSet() const { return m_countBySeverityHasBeenSet; } /** *

Represents a map of severity to count statistics for a set of findings.

*/ inline void SetCountBySeverity(const Aws::Map& value) { m_countBySeverityHasBeenSet = true; m_countBySeverity = value; } /** *

Represents a map of severity to count statistics for a set of findings.

*/ inline void SetCountBySeverity(Aws::Map&& value) { m_countBySeverityHasBeenSet = true; m_countBySeverity = std::move(value); } /** *

Represents a map of severity to count statistics for a set of findings.

*/ inline FindingStatistics& WithCountBySeverity(const Aws::Map& value) { SetCountBySeverity(value); return *this;} /** *

Represents a map of severity to count statistics for a set of findings.

*/ inline FindingStatistics& WithCountBySeverity(Aws::Map&& value) { SetCountBySeverity(std::move(value)); return *this;} /** *

Represents a map of severity to count statistics for a set of findings.

*/ inline FindingStatistics& AddCountBySeverity(const Aws::String& key, int value) { m_countBySeverityHasBeenSet = true; m_countBySeverity.emplace(key, value); return *this; } /** *

Represents a map of severity to count statistics for a set of findings.

*/ inline FindingStatistics& AddCountBySeverity(Aws::String&& key, int value) { m_countBySeverityHasBeenSet = true; m_countBySeverity.emplace(std::move(key), value); return *this; } /** *

Represents a map of severity to count statistics for a set of findings.

*/ inline FindingStatistics& AddCountBySeverity(const char* key, int value) { m_countBySeverityHasBeenSet = true; m_countBySeverity.emplace(key, value); return *this; } private: Aws::Map m_countBySeverity; bool m_countBySeverityHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws