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

Describes the performance risk ratings for a given resource type.

*

Resources with a high or medium rating are at risk * of not meeting the performance needs of their workloads, while resources with a * low rating are performing well in their workloads.

See * Also:

AWS * API Reference

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

A count of the applicable resource types with a high performance risk * rating.

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

A count of the applicable resource types with a high performance risk * rating.

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

A count of the applicable resource types with a high performance risk * rating.

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

A count of the applicable resource types with a high performance risk * rating.

*/ inline CurrentPerformanceRiskRatings& WithHigh(long long value) { SetHigh(value); return *this;} /** *

A count of the applicable resource types with a medium performance risk * rating.

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

A count of the applicable resource types with a medium performance risk * rating.

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

A count of the applicable resource types with a medium performance risk * rating.

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

A count of the applicable resource types with a medium performance risk * rating.

*/ inline CurrentPerformanceRiskRatings& WithMedium(long long value) { SetMedium(value); return *this;} /** *

A count of the applicable resource types with a low performance risk * rating.

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

A count of the applicable resource types with a low performance risk * rating.

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

A count of the applicable resource types with a low performance risk * rating.

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

A count of the applicable resource types with a low performance risk * rating.

*/ inline CurrentPerformanceRiskRatings& WithLow(long long value) { SetLow(value); return *this;} /** *

A count of the applicable resource types with a very low performance risk * rating.

*/ inline long long GetVeryLow() const{ return m_veryLow; } /** *

A count of the applicable resource types with a very low performance risk * rating.

*/ inline bool VeryLowHasBeenSet() const { return m_veryLowHasBeenSet; } /** *

A count of the applicable resource types with a very low performance risk * rating.

*/ inline void SetVeryLow(long long value) { m_veryLowHasBeenSet = true; m_veryLow = value; } /** *

A count of the applicable resource types with a very low performance risk * rating.

*/ inline CurrentPerformanceRiskRatings& WithVeryLow(long long value) { SetVeryLow(value); return *this;} private: long long m_high; bool m_highHasBeenSet = false; long long m_medium; bool m_mediumHasBeenSet = false; long long m_low; bool m_lowHasBeenSet = false; long long m_veryLow; bool m_veryLowHasBeenSet = false; }; } // namespace Model } // namespace ComputeOptimizer } // namespace Aws