/** * 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 recommendation option for an Amazon EC2 instance.

See * Also:

AWS * API Reference

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

The instance type of the instance recommendation.

*/ inline const Aws::String& GetInstanceType() const{ return m_instanceType; } /** *

The instance type of the instance recommendation.

*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** *

The instance type of the instance recommendation.

*/ inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** *

The instance type of the instance recommendation.

*/ inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } /** *

The instance type of the instance recommendation.

*/ inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); } /** *

The instance type of the instance recommendation.

*/ inline InstanceRecommendationOption& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;} /** *

The instance type of the instance recommendation.

*/ inline InstanceRecommendationOption& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;} /** *

The instance type of the instance recommendation.

*/ inline InstanceRecommendationOption& WithInstanceType(const char* value) { SetInstanceType(value); return *this;} /** *

An array of objects that describe the projected utilization metrics of the * instance recommendation option.

*/ inline const Aws::Vector& GetProjectedUtilizationMetrics() const{ return m_projectedUtilizationMetrics; } /** *

An array of objects that describe the projected utilization metrics of the * instance recommendation option.

*/ inline bool ProjectedUtilizationMetricsHasBeenSet() const { return m_projectedUtilizationMetricsHasBeenSet; } /** *

An array of objects that describe the projected utilization metrics of the * instance recommendation option.

*/ inline void SetProjectedUtilizationMetrics(const Aws::Vector& value) { m_projectedUtilizationMetricsHasBeenSet = true; m_projectedUtilizationMetrics = value; } /** *

An array of objects that describe the projected utilization metrics of the * instance recommendation option.

*/ inline void SetProjectedUtilizationMetrics(Aws::Vector&& value) { m_projectedUtilizationMetricsHasBeenSet = true; m_projectedUtilizationMetrics = std::move(value); } /** *

An array of objects that describe the projected utilization metrics of the * instance recommendation option.

*/ inline InstanceRecommendationOption& WithProjectedUtilizationMetrics(const Aws::Vector& value) { SetProjectedUtilizationMetrics(value); return *this;} /** *

An array of objects that describe the projected utilization metrics of the * instance recommendation option.

*/ inline InstanceRecommendationOption& WithProjectedUtilizationMetrics(Aws::Vector&& value) { SetProjectedUtilizationMetrics(std::move(value)); return *this;} /** *

An array of objects that describe the projected utilization metrics of the * instance recommendation option.

*/ inline InstanceRecommendationOption& AddProjectedUtilizationMetrics(const UtilizationMetric& value) { m_projectedUtilizationMetricsHasBeenSet = true; m_projectedUtilizationMetrics.push_back(value); return *this; } /** *

An array of objects that describe the projected utilization metrics of the * instance recommendation option.

*/ inline InstanceRecommendationOption& AddProjectedUtilizationMetrics(UtilizationMetric&& value) { m_projectedUtilizationMetricsHasBeenSet = true; m_projectedUtilizationMetrics.push_back(std::move(value)); return *this; } /** *

The performance risk of the instance recommendation option.

*

Performance risk is the likelihood of the recommended instance type not * meeting the performance requirement of your workload.

The lowest * performance risk is categorized as 0, and the highest as * 5.

*/ inline double GetPerformanceRisk() const{ return m_performanceRisk; } /** *

The performance risk of the instance recommendation option.

*

Performance risk is the likelihood of the recommended instance type not * meeting the performance requirement of your workload.

The lowest * performance risk is categorized as 0, and the highest as * 5.

*/ inline bool PerformanceRiskHasBeenSet() const { return m_performanceRiskHasBeenSet; } /** *

The performance risk of the instance recommendation option.

*

Performance risk is the likelihood of the recommended instance type not * meeting the performance requirement of your workload.

The lowest * performance risk is categorized as 0, and the highest as * 5.

*/ inline void SetPerformanceRisk(double value) { m_performanceRiskHasBeenSet = true; m_performanceRisk = value; } /** *

The performance risk of the instance recommendation option.

*

Performance risk is the likelihood of the recommended instance type not * meeting the performance requirement of your workload.

The lowest * performance risk is categorized as 0, and the highest as * 5.

*/ inline InstanceRecommendationOption& WithPerformanceRisk(double value) { SetPerformanceRisk(value); return *this;} /** *

The rank of the instance recommendation option.

The top recommendation * option is ranked as 1.

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

The rank of the instance recommendation option.

The top recommendation * option is ranked as 1.

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

The rank of the instance recommendation option.

The top recommendation * option is ranked as 1.

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

The rank of the instance recommendation option.

The top recommendation * option is ranked as 1.

*/ inline InstanceRecommendationOption& WithRank(int value) { SetRank(value); return *this;} private: Aws::String m_instanceType; bool m_instanceTypeHasBeenSet; Aws::Vector m_projectedUtilizationMetrics; bool m_projectedUtilizationMetricsHasBeenSet; double m_performanceRisk; bool m_performanceRiskHasBeenSet; int m_rank; bool m_rankHasBeenSet; }; } // namespace Model } // namespace ComputeOptimizer } // namespace Aws