/** * 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 { /** *

Information about the coverage statistics for a resource.

See * Also:

AWS * API Reference

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

Represents coverage statistics for EKS clusters aggregated by resource * type.

*/ inline const Aws::Map& GetCountByResourceType() const{ return m_countByResourceType; } /** *

Represents coverage statistics for EKS clusters aggregated by resource * type.

*/ inline bool CountByResourceTypeHasBeenSet() const { return m_countByResourceTypeHasBeenSet; } /** *

Represents coverage statistics for EKS clusters aggregated by resource * type.

*/ inline void SetCountByResourceType(const Aws::Map& value) { m_countByResourceTypeHasBeenSet = true; m_countByResourceType = value; } /** *

Represents coverage statistics for EKS clusters aggregated by resource * type.

*/ inline void SetCountByResourceType(Aws::Map&& value) { m_countByResourceTypeHasBeenSet = true; m_countByResourceType = std::move(value); } /** *

Represents coverage statistics for EKS clusters aggregated by resource * type.

*/ inline CoverageStatistics& WithCountByResourceType(const Aws::Map& value) { SetCountByResourceType(value); return *this;} /** *

Represents coverage statistics for EKS clusters aggregated by resource * type.

*/ inline CoverageStatistics& WithCountByResourceType(Aws::Map&& value) { SetCountByResourceType(std::move(value)); return *this;} /** *

Represents coverage statistics for EKS clusters aggregated by resource * type.

*/ inline CoverageStatistics& AddCountByResourceType(const ResourceType& key, long long value) { m_countByResourceTypeHasBeenSet = true; m_countByResourceType.emplace(key, value); return *this; } /** *

Represents coverage statistics for EKS clusters aggregated by resource * type.

*/ inline CoverageStatistics& AddCountByResourceType(ResourceType&& key, long long value) { m_countByResourceTypeHasBeenSet = true; m_countByResourceType.emplace(std::move(key), value); return *this; } /** *

Represents coverage statistics for EKS clusters aggregated by coverage * status.

*/ inline const Aws::Map& GetCountByCoverageStatus() const{ return m_countByCoverageStatus; } /** *

Represents coverage statistics for EKS clusters aggregated by coverage * status.

*/ inline bool CountByCoverageStatusHasBeenSet() const { return m_countByCoverageStatusHasBeenSet; } /** *

Represents coverage statistics for EKS clusters aggregated by coverage * status.

*/ inline void SetCountByCoverageStatus(const Aws::Map& value) { m_countByCoverageStatusHasBeenSet = true; m_countByCoverageStatus = value; } /** *

Represents coverage statistics for EKS clusters aggregated by coverage * status.

*/ inline void SetCountByCoverageStatus(Aws::Map&& value) { m_countByCoverageStatusHasBeenSet = true; m_countByCoverageStatus = std::move(value); } /** *

Represents coverage statistics for EKS clusters aggregated by coverage * status.

*/ inline CoverageStatistics& WithCountByCoverageStatus(const Aws::Map& value) { SetCountByCoverageStatus(value); return *this;} /** *

Represents coverage statistics for EKS clusters aggregated by coverage * status.

*/ inline CoverageStatistics& WithCountByCoverageStatus(Aws::Map&& value) { SetCountByCoverageStatus(std::move(value)); return *this;} /** *

Represents coverage statistics for EKS clusters aggregated by coverage * status.

*/ inline CoverageStatistics& AddCountByCoverageStatus(const CoverageStatus& key, long long value) { m_countByCoverageStatusHasBeenSet = true; m_countByCoverageStatus.emplace(key, value); return *this; } /** *

Represents coverage statistics for EKS clusters aggregated by coverage * status.

*/ inline CoverageStatistics& AddCountByCoverageStatus(CoverageStatus&& key, long long value) { m_countByCoverageStatusHasBeenSet = true; m_countByCoverageStatus.emplace(std::move(key), value); return *this; } private: Aws::Map m_countByResourceType; bool m_countByResourceTypeHasBeenSet = false; Aws::Map m_countByCoverageStatus; bool m_countByCoverageStatusHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws