/** * 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 Auto Scaling group.

See * Also:

AWS * API Reference

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

An array of objects that describe an Auto Scaling group configuration.

*/ inline const AutoScalingGroupConfiguration& GetConfiguration() const{ return m_configuration; } /** *

An array of objects that describe an Auto Scaling group configuration.

*/ inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; } /** *

An array of objects that describe an Auto Scaling group configuration.

*/ inline void SetConfiguration(const AutoScalingGroupConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; } /** *

An array of objects that describe an Auto Scaling group configuration.

*/ inline void SetConfiguration(AutoScalingGroupConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); } /** *

An array of objects that describe an Auto Scaling group configuration.

*/ inline AutoScalingGroupRecommendationOption& WithConfiguration(const AutoScalingGroupConfiguration& value) { SetConfiguration(value); return *this;} /** *

An array of objects that describe an Auto Scaling group configuration.

*/ inline AutoScalingGroupRecommendationOption& WithConfiguration(AutoScalingGroupConfiguration&& value) { SetConfiguration(std::move(value)); return *this;} /** *

An array of objects that describe the projected utilization metrics of the * Auto Scaling group recommendation option.

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

An array of objects that describe the projected utilization metrics of the * Auto Scaling group recommendation option.

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

An array of objects that describe the projected utilization metrics of the * Auto Scaling group 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 * Auto Scaling group 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 * Auto Scaling group recommendation option.

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

An array of objects that describe the projected utilization metrics of the * Auto Scaling group recommendation option.

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

An array of objects that describe the projected utilization metrics of the * Auto Scaling group recommendation option.

*/ inline AutoScalingGroupRecommendationOption& 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 * Auto Scaling group recommendation option.

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

The performance risk of the Auto Scaling group configuration * recommendation.

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 Auto Scaling group configuration * recommendation.

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 Auto Scaling group configuration * recommendation.

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 Auto Scaling group configuration * recommendation.

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 AutoScalingGroupRecommendationOption& WithPerformanceRisk(double value) { SetPerformanceRisk(value); return *this;} /** *

The rank of the Auto Scaling group recommendation option.

The top * recommendation option is ranked as 1.

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

The rank of the Auto Scaling group recommendation option.

The top * recommendation option is ranked as 1.

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

The rank of the Auto Scaling group 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 Auto Scaling group recommendation option.

The top * recommendation option is ranked as 1.

*/ inline AutoScalingGroupRecommendationOption& WithRank(int value) { SetRank(value); return *this;} private: AutoScalingGroupConfiguration m_configuration; bool m_configurationHasBeenSet; 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