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

Information about summary metrics in an account.

See Also:

* AWS * API Reference

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

A list of CategoryWithFindingNum objects for the top 5 finding * categories with the most open findings in an account.

*/ inline const Aws::Vector& GetCategoriesWithMostFindings() const{ return m_categoriesWithMostFindings; } /** *

A list of CategoryWithFindingNum objects for the top 5 finding * categories with the most open findings in an account.

*/ inline bool CategoriesWithMostFindingsHasBeenSet() const { return m_categoriesWithMostFindingsHasBeenSet; } /** *

A list of CategoryWithFindingNum objects for the top 5 finding * categories with the most open findings in an account.

*/ inline void SetCategoriesWithMostFindings(const Aws::Vector& value) { m_categoriesWithMostFindingsHasBeenSet = true; m_categoriesWithMostFindings = value; } /** *

A list of CategoryWithFindingNum objects for the top 5 finding * categories with the most open findings in an account.

*/ inline void SetCategoriesWithMostFindings(Aws::Vector&& value) { m_categoriesWithMostFindingsHasBeenSet = true; m_categoriesWithMostFindings = std::move(value); } /** *

A list of CategoryWithFindingNum objects for the top 5 finding * categories with the most open findings in an account.

*/ inline MetricsSummary& WithCategoriesWithMostFindings(const Aws::Vector& value) { SetCategoriesWithMostFindings(value); return *this;} /** *

A list of CategoryWithFindingNum objects for the top 5 finding * categories with the most open findings in an account.

*/ inline MetricsSummary& WithCategoriesWithMostFindings(Aws::Vector&& value) { SetCategoriesWithMostFindings(std::move(value)); return *this;} /** *

A list of CategoryWithFindingNum objects for the top 5 finding * categories with the most open findings in an account.

*/ inline MetricsSummary& AddCategoriesWithMostFindings(const CategoryWithFindingNum& value) { m_categoriesWithMostFindingsHasBeenSet = true; m_categoriesWithMostFindings.push_back(value); return *this; } /** *

A list of CategoryWithFindingNum objects for the top 5 finding * categories with the most open findings in an account.

*/ inline MetricsSummary& AddCategoriesWithMostFindings(CategoryWithFindingNum&& value) { m_categoriesWithMostFindingsHasBeenSet = true; m_categoriesWithMostFindings.push_back(std::move(value)); return *this; } /** *

The date from which the metrics summary information was retrieved.

*/ inline const Aws::Utils::DateTime& GetDate() const{ return m_date; } /** *

The date from which the metrics summary information was retrieved.

*/ inline bool DateHasBeenSet() const { return m_dateHasBeenSet; } /** *

The date from which the metrics summary information was retrieved.

*/ inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; } /** *

The date from which the metrics summary information was retrieved.

*/ inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); } /** *

The date from which the metrics summary information was retrieved.

*/ inline MetricsSummary& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;} /** *

The date from which the metrics summary information was retrieved.

*/ inline MetricsSummary& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(value)); return *this;} /** *

The number of open findings of each severity in an account.

*/ inline const FindingMetricsValuePerSeverity& GetOpenFindings() const{ return m_openFindings; } /** *

The number of open findings of each severity in an account.

*/ inline bool OpenFindingsHasBeenSet() const { return m_openFindingsHasBeenSet; } /** *

The number of open findings of each severity in an account.

*/ inline void SetOpenFindings(const FindingMetricsValuePerSeverity& value) { m_openFindingsHasBeenSet = true; m_openFindings = value; } /** *

The number of open findings of each severity in an account.

*/ inline void SetOpenFindings(FindingMetricsValuePerSeverity&& value) { m_openFindingsHasBeenSet = true; m_openFindings = std::move(value); } /** *

The number of open findings of each severity in an account.

*/ inline MetricsSummary& WithOpenFindings(const FindingMetricsValuePerSeverity& value) { SetOpenFindings(value); return *this;} /** *

The number of open findings of each severity in an account.

*/ inline MetricsSummary& WithOpenFindings(FindingMetricsValuePerSeverity&& value) { SetOpenFindings(std::move(value)); return *this;} /** *

A list of ScanNameWithFindingNum objects for the top 3 scans * with the most number of open findings in an account.

*/ inline const Aws::Vector& GetScansWithMostOpenCriticalFindings() const{ return m_scansWithMostOpenCriticalFindings; } /** *

A list of ScanNameWithFindingNum objects for the top 3 scans * with the most number of open findings in an account.

*/ inline bool ScansWithMostOpenCriticalFindingsHasBeenSet() const { return m_scansWithMostOpenCriticalFindingsHasBeenSet; } /** *

A list of ScanNameWithFindingNum objects for the top 3 scans * with the most number of open findings in an account.

*/ inline void SetScansWithMostOpenCriticalFindings(const Aws::Vector& value) { m_scansWithMostOpenCriticalFindingsHasBeenSet = true; m_scansWithMostOpenCriticalFindings = value; } /** *

A list of ScanNameWithFindingNum objects for the top 3 scans * with the most number of open findings in an account.

*/ inline void SetScansWithMostOpenCriticalFindings(Aws::Vector&& value) { m_scansWithMostOpenCriticalFindingsHasBeenSet = true; m_scansWithMostOpenCriticalFindings = std::move(value); } /** *

A list of ScanNameWithFindingNum objects for the top 3 scans * with the most number of open findings in an account.

*/ inline MetricsSummary& WithScansWithMostOpenCriticalFindings(const Aws::Vector& value) { SetScansWithMostOpenCriticalFindings(value); return *this;} /** *

A list of ScanNameWithFindingNum objects for the top 3 scans * with the most number of open findings in an account.

*/ inline MetricsSummary& WithScansWithMostOpenCriticalFindings(Aws::Vector&& value) { SetScansWithMostOpenCriticalFindings(std::move(value)); return *this;} /** *

A list of ScanNameWithFindingNum objects for the top 3 scans * with the most number of open findings in an account.

*/ inline MetricsSummary& AddScansWithMostOpenCriticalFindings(const ScanNameWithFindingNum& value) { m_scansWithMostOpenCriticalFindingsHasBeenSet = true; m_scansWithMostOpenCriticalFindings.push_back(value); return *this; } /** *

A list of ScanNameWithFindingNum objects for the top 3 scans * with the most number of open findings in an account.

*/ inline MetricsSummary& AddScansWithMostOpenCriticalFindings(ScanNameWithFindingNum&& value) { m_scansWithMostOpenCriticalFindingsHasBeenSet = true; m_scansWithMostOpenCriticalFindings.push_back(std::move(value)); return *this; } /** *

A list of ScanNameWithFindingNum objects for the top 3 scans * with the most number of open critical findings in an account.

*/ inline const Aws::Vector& GetScansWithMostOpenFindings() const{ return m_scansWithMostOpenFindings; } /** *

A list of ScanNameWithFindingNum objects for the top 3 scans * with the most number of open critical findings in an account.

*/ inline bool ScansWithMostOpenFindingsHasBeenSet() const { return m_scansWithMostOpenFindingsHasBeenSet; } /** *

A list of ScanNameWithFindingNum objects for the top 3 scans * with the most number of open critical findings in an account.

*/ inline void SetScansWithMostOpenFindings(const Aws::Vector& value) { m_scansWithMostOpenFindingsHasBeenSet = true; m_scansWithMostOpenFindings = value; } /** *

A list of ScanNameWithFindingNum objects for the top 3 scans * with the most number of open critical findings in an account.

*/ inline void SetScansWithMostOpenFindings(Aws::Vector&& value) { m_scansWithMostOpenFindingsHasBeenSet = true; m_scansWithMostOpenFindings = std::move(value); } /** *

A list of ScanNameWithFindingNum objects for the top 3 scans * with the most number of open critical findings in an account.

*/ inline MetricsSummary& WithScansWithMostOpenFindings(const Aws::Vector& value) { SetScansWithMostOpenFindings(value); return *this;} /** *

A list of ScanNameWithFindingNum objects for the top 3 scans * with the most number of open critical findings in an account.

*/ inline MetricsSummary& WithScansWithMostOpenFindings(Aws::Vector&& value) { SetScansWithMostOpenFindings(std::move(value)); return *this;} /** *

A list of ScanNameWithFindingNum objects for the top 3 scans * with the most number of open critical findings in an account.

*/ inline MetricsSummary& AddScansWithMostOpenFindings(const ScanNameWithFindingNum& value) { m_scansWithMostOpenFindingsHasBeenSet = true; m_scansWithMostOpenFindings.push_back(value); return *this; } /** *

A list of ScanNameWithFindingNum objects for the top 3 scans * with the most number of open critical findings in an account.

*/ inline MetricsSummary& AddScansWithMostOpenFindings(ScanNameWithFindingNum&& value) { m_scansWithMostOpenFindingsHasBeenSet = true; m_scansWithMostOpenFindings.push_back(std::move(value)); return *this; } private: Aws::Vector m_categoriesWithMostFindings; bool m_categoriesWithMostFindingsHasBeenSet = false; Aws::Utils::DateTime m_date; bool m_dateHasBeenSet = false; FindingMetricsValuePerSeverity m_openFindings; bool m_openFindingsHasBeenSet = false; Aws::Vector m_scansWithMostOpenCriticalFindings; bool m_scansWithMostOpenCriticalFindingsHasBeenSet = false; Aws::Vector m_scansWithMostOpenFindings; bool m_scansWithMostOpenFindingsHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruSecurity } // namespace Aws