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

Describes a projected utilization metric of a recommendation option.

*

The Cpu and Memory metrics are the only * projected utilization metrics returned when you run the * GetEC2RecommendationProjectedMetrics action. Additionally, the * Memory metric is returned only for resources that have the unified * CloudWatch agent installed on them. For more information, see Enabling * Memory Utilization with the CloudWatch Agent.

See * Also:

AWS * API Reference

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

The recommended instance type.

*/ inline const Aws::String& GetRecommendedInstanceType() const{ return m_recommendedInstanceType; } /** *

The recommended instance type.

*/ inline bool RecommendedInstanceTypeHasBeenSet() const { return m_recommendedInstanceTypeHasBeenSet; } /** *

The recommended instance type.

*/ inline void SetRecommendedInstanceType(const Aws::String& value) { m_recommendedInstanceTypeHasBeenSet = true; m_recommendedInstanceType = value; } /** *

The recommended instance type.

*/ inline void SetRecommendedInstanceType(Aws::String&& value) { m_recommendedInstanceTypeHasBeenSet = true; m_recommendedInstanceType = std::move(value); } /** *

The recommended instance type.

*/ inline void SetRecommendedInstanceType(const char* value) { m_recommendedInstanceTypeHasBeenSet = true; m_recommendedInstanceType.assign(value); } /** *

The recommended instance type.

*/ inline RecommendedOptionProjectedMetric& WithRecommendedInstanceType(const Aws::String& value) { SetRecommendedInstanceType(value); return *this;} /** *

The recommended instance type.

*/ inline RecommendedOptionProjectedMetric& WithRecommendedInstanceType(Aws::String&& value) { SetRecommendedInstanceType(std::move(value)); return *this;} /** *

The recommended instance type.

*/ inline RecommendedOptionProjectedMetric& WithRecommendedInstanceType(const char* value) { SetRecommendedInstanceType(value); return *this;} /** *

The rank of the recommendation option projected metric.

The top * recommendation option is ranked as 1.

The projected metric * rank correlates to the recommendation option rank. For example, the projected * metric ranked as 1 is related to the recommendation option that is * also ranked as 1 in the same response.

*/ inline int GetRank() const{ return m_rank; } /** *

The rank of the recommendation option projected metric.

The top * recommendation option is ranked as 1.

The projected metric * rank correlates to the recommendation option rank. For example, the projected * metric ranked as 1 is related to the recommendation option that is * also ranked as 1 in the same response.

*/ inline bool RankHasBeenSet() const { return m_rankHasBeenSet; } /** *

The rank of the recommendation option projected metric.

The top * recommendation option is ranked as 1.

The projected metric * rank correlates to the recommendation option rank. For example, the projected * metric ranked as 1 is related to the recommendation option that is * also ranked as 1 in the same response.

*/ inline void SetRank(int value) { m_rankHasBeenSet = true; m_rank = value; } /** *

The rank of the recommendation option projected metric.

The top * recommendation option is ranked as 1.

The projected metric * rank correlates to the recommendation option rank. For example, the projected * metric ranked as 1 is related to the recommendation option that is * also ranked as 1 in the same response.

*/ inline RecommendedOptionProjectedMetric& WithRank(int value) { SetRank(value); return *this;} /** *

An array of objects that describe a projected utilization metric.

*/ inline const Aws::Vector& GetProjectedMetrics() const{ return m_projectedMetrics; } /** *

An array of objects that describe a projected utilization metric.

*/ inline bool ProjectedMetricsHasBeenSet() const { return m_projectedMetricsHasBeenSet; } /** *

An array of objects that describe a projected utilization metric.

*/ inline void SetProjectedMetrics(const Aws::Vector& value) { m_projectedMetricsHasBeenSet = true; m_projectedMetrics = value; } /** *

An array of objects that describe a projected utilization metric.

*/ inline void SetProjectedMetrics(Aws::Vector&& value) { m_projectedMetricsHasBeenSet = true; m_projectedMetrics = std::move(value); } /** *

An array of objects that describe a projected utilization metric.

*/ inline RecommendedOptionProjectedMetric& WithProjectedMetrics(const Aws::Vector& value) { SetProjectedMetrics(value); return *this;} /** *

An array of objects that describe a projected utilization metric.

*/ inline RecommendedOptionProjectedMetric& WithProjectedMetrics(Aws::Vector&& value) { SetProjectedMetrics(std::move(value)); return *this;} /** *

An array of objects that describe a projected utilization metric.

*/ inline RecommendedOptionProjectedMetric& AddProjectedMetrics(const ProjectedMetric& value) { m_projectedMetricsHasBeenSet = true; m_projectedMetrics.push_back(value); return *this; } /** *

An array of objects that describe a projected utilization metric.

*/ inline RecommendedOptionProjectedMetric& AddProjectedMetrics(ProjectedMetric&& value) { m_projectedMetricsHasBeenSet = true; m_projectedMetrics.push_back(std::move(value)); return *this; } private: Aws::String m_recommendedInstanceType; bool m_recommendedInstanceTypeHasBeenSet = false; int m_rank; bool m_rankHasBeenSet = false; Aws::Vector m_projectedMetrics; bool m_projectedMetricsHasBeenSet = false; }; } // namespace Model } // namespace ComputeOptimizer } // namespace Aws