/** * 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 CodeGuruSecurity { namespace Model { /** *

A summary of findings metrics in an account.

See Also:

AWS * API Reference

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

The number of closed findings of each severity in an account on the specified * date.

*/ inline const FindingMetricsValuePerSeverity& GetClosedFindings() const{ return m_closedFindings; } /** *

The number of closed findings of each severity in an account on the specified * date.

*/ inline bool ClosedFindingsHasBeenSet() const { return m_closedFindingsHasBeenSet; } /** *

The number of closed findings of each severity in an account on the specified * date.

*/ inline void SetClosedFindings(const FindingMetricsValuePerSeverity& value) { m_closedFindingsHasBeenSet = true; m_closedFindings = value; } /** *

The number of closed findings of each severity in an account on the specified * date.

*/ inline void SetClosedFindings(FindingMetricsValuePerSeverity&& value) { m_closedFindingsHasBeenSet = true; m_closedFindings = std::move(value); } /** *

The number of closed findings of each severity in an account on the specified * date.

*/ inline AccountFindingsMetric& WithClosedFindings(const FindingMetricsValuePerSeverity& value) { SetClosedFindings(value); return *this;} /** *

The number of closed findings of each severity in an account on the specified * date.

*/ inline AccountFindingsMetric& WithClosedFindings(FindingMetricsValuePerSeverity&& value) { SetClosedFindings(std::move(value)); return *this;} /** *

The date from which the finding metrics were retrieved.

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

The date from which the finding metrics were retrieved.

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

The date from which the finding metrics were retrieved.

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

The date from which the finding metrics were retrieved.

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

The date from which the finding metrics were retrieved.

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

The date from which the finding metrics were retrieved.

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

The average time it takes to close findings of each severity in days.

*/ inline const FindingMetricsValuePerSeverity& GetMeanTimeToClose() const{ return m_meanTimeToClose; } /** *

The average time it takes to close findings of each severity in days.

*/ inline bool MeanTimeToCloseHasBeenSet() const { return m_meanTimeToCloseHasBeenSet; } /** *

The average time it takes to close findings of each severity in days.

*/ inline void SetMeanTimeToClose(const FindingMetricsValuePerSeverity& value) { m_meanTimeToCloseHasBeenSet = true; m_meanTimeToClose = value; } /** *

The average time it takes to close findings of each severity in days.

*/ inline void SetMeanTimeToClose(FindingMetricsValuePerSeverity&& value) { m_meanTimeToCloseHasBeenSet = true; m_meanTimeToClose = std::move(value); } /** *

The average time it takes to close findings of each severity in days.

*/ inline AccountFindingsMetric& WithMeanTimeToClose(const FindingMetricsValuePerSeverity& value) { SetMeanTimeToClose(value); return *this;} /** *

The average time it takes to close findings of each severity in days.

*/ inline AccountFindingsMetric& WithMeanTimeToClose(FindingMetricsValuePerSeverity&& value) { SetMeanTimeToClose(std::move(value)); return *this;} /** *

The number of new findings of each severity in account on the specified * date.

*/ inline const FindingMetricsValuePerSeverity& GetNewFindings() const{ return m_newFindings; } /** *

The number of new findings of each severity in account on the specified * date.

*/ inline bool NewFindingsHasBeenSet() const { return m_newFindingsHasBeenSet; } /** *

The number of new findings of each severity in account on the specified * date.

*/ inline void SetNewFindings(const FindingMetricsValuePerSeverity& value) { m_newFindingsHasBeenSet = true; m_newFindings = value; } /** *

The number of new findings of each severity in account on the specified * date.

*/ inline void SetNewFindings(FindingMetricsValuePerSeverity&& value) { m_newFindingsHasBeenSet = true; m_newFindings = std::move(value); } /** *

The number of new findings of each severity in account on the specified * date.

*/ inline AccountFindingsMetric& WithNewFindings(const FindingMetricsValuePerSeverity& value) { SetNewFindings(value); return *this;} /** *

The number of new findings of each severity in account on the specified * date.

*/ inline AccountFindingsMetric& WithNewFindings(FindingMetricsValuePerSeverity&& value) { SetNewFindings(std::move(value)); return *this;} /** *

The number of open findings of each severity in an account as of the * specified date.

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

The number of open findings of each severity in an account as of the * specified date.

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

The number of open findings of each severity in an account as of the * specified date.

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

The number of open findings of each severity in an account as of the * specified date.

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

The number of open findings of each severity in an account as of the * specified date.

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

The number of open findings of each severity in an account as of the * specified date.

*/ inline AccountFindingsMetric& WithOpenFindings(FindingMetricsValuePerSeverity&& value) { SetOpenFindings(std::move(value)); return *this;} private: FindingMetricsValuePerSeverity m_closedFindings; bool m_closedFindingsHasBeenSet = false; Aws::Utils::DateTime m_date; bool m_dateHasBeenSet = false; FindingMetricsValuePerSeverity m_meanTimeToClose; bool m_meanTimeToCloseHasBeenSet = false; FindingMetricsValuePerSeverity m_newFindings; bool m_newFindingsHasBeenSet = false; FindingMetricsValuePerSeverity m_openFindings; bool m_openFindingsHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruSecurity } // namespace Aws