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

The severity of the issue in the code that generated a finding.

See * Also:

AWS * API Reference

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

The severity of the finding is critical and should be addressed * immediately.

*/ inline double GetCritical() const{ return m_critical; } /** *

The severity of the finding is critical and should be addressed * immediately.

*/ inline bool CriticalHasBeenSet() const { return m_criticalHasBeenSet; } /** *

The severity of the finding is critical and should be addressed * immediately.

*/ inline void SetCritical(double value) { m_criticalHasBeenSet = true; m_critical = value; } /** *

The severity of the finding is critical and should be addressed * immediately.

*/ inline FindingMetricsValuePerSeverity& WithCritical(double value) { SetCritical(value); return *this;} /** *

The severity of the finding is high and should be addressed as a near-term * priority.

*/ inline double GetHigh() const{ return m_high; } /** *

The severity of the finding is high and should be addressed as a near-term * priority.

*/ inline bool HighHasBeenSet() const { return m_highHasBeenSet; } /** *

The severity of the finding is high and should be addressed as a near-term * priority.

*/ inline void SetHigh(double value) { m_highHasBeenSet = true; m_high = value; } /** *

The severity of the finding is high and should be addressed as a near-term * priority.

*/ inline FindingMetricsValuePerSeverity& WithHigh(double value) { SetHigh(value); return *this;} /** *

The finding is related to quality or readability improvements and not * considered actionable.

*/ inline double GetInfo() const{ return m_info; } /** *

The finding is related to quality or readability improvements and not * considered actionable.

*/ inline bool InfoHasBeenSet() const { return m_infoHasBeenSet; } /** *

The finding is related to quality or readability improvements and not * considered actionable.

*/ inline void SetInfo(double value) { m_infoHasBeenSet = true; m_info = value; } /** *

The finding is related to quality or readability improvements and not * considered actionable.

*/ inline FindingMetricsValuePerSeverity& WithInfo(double value) { SetInfo(value); return *this;} /** *

The severity of the finding is low and does require action on its own.

*/ inline double GetLow() const{ return m_low; } /** *

The severity of the finding is low and does require action on its own.

*/ inline bool LowHasBeenSet() const { return m_lowHasBeenSet; } /** *

The severity of the finding is low and does require action on its own.

*/ inline void SetLow(double value) { m_lowHasBeenSet = true; m_low = value; } /** *

The severity of the finding is low and does require action on its own.

*/ inline FindingMetricsValuePerSeverity& WithLow(double value) { SetLow(value); return *this;} /** *

The severity of the finding is medium and should be addressed as a mid-term * priority.

*/ inline double GetMedium() const{ return m_medium; } /** *

The severity of the finding is medium and should be addressed as a mid-term * priority.

*/ inline bool MediumHasBeenSet() const { return m_mediumHasBeenSet; } /** *

The severity of the finding is medium and should be addressed as a mid-term * priority.

*/ inline void SetMedium(double value) { m_mediumHasBeenSet = true; m_medium = value; } /** *

The severity of the finding is medium and should be addressed as a mid-term * priority.

*/ inline FindingMetricsValuePerSeverity& WithMedium(double value) { SetMedium(value); return *this;} private: double m_critical; bool m_criticalHasBeenSet = false; double m_high; bool m_highHasBeenSet = false; double m_info; bool m_infoHasBeenSet = false; double m_low; bool m_lowHasBeenSet = false; double m_medium; bool m_mediumHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruSecurity } // namespace Aws