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

Describes an Auto Scaling group recommendation.

See Also:

AWS * API Reference

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

The AWS account ID of the Auto Scaling group.

*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *

The AWS account ID of the Auto Scaling group.

*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *

The AWS account ID of the Auto Scaling group.

*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *

The AWS account ID of the Auto Scaling group.

*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *

The AWS account ID of the Auto Scaling group.

*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *

The AWS account ID of the Auto Scaling group.

*/ inline AutoScalingGroupRecommendation& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *

The AWS account ID of the Auto Scaling group.

*/ inline AutoScalingGroupRecommendation& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *

The AWS account ID of the Auto Scaling group.

*/ inline AutoScalingGroupRecommendation& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Auto Scaling group.

*/ inline const Aws::String& GetAutoScalingGroupArn() const{ return m_autoScalingGroupArn; } /** *

The Amazon Resource Name (ARN) of the Auto Scaling group.

*/ inline bool AutoScalingGroupArnHasBeenSet() const { return m_autoScalingGroupArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Auto Scaling group.

*/ inline void SetAutoScalingGroupArn(const Aws::String& value) { m_autoScalingGroupArnHasBeenSet = true; m_autoScalingGroupArn = value; } /** *

The Amazon Resource Name (ARN) of the Auto Scaling group.

*/ inline void SetAutoScalingGroupArn(Aws::String&& value) { m_autoScalingGroupArnHasBeenSet = true; m_autoScalingGroupArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Auto Scaling group.

*/ inline void SetAutoScalingGroupArn(const char* value) { m_autoScalingGroupArnHasBeenSet = true; m_autoScalingGroupArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the Auto Scaling group.

*/ inline AutoScalingGroupRecommendation& WithAutoScalingGroupArn(const Aws::String& value) { SetAutoScalingGroupArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Auto Scaling group.

*/ inline AutoScalingGroupRecommendation& WithAutoScalingGroupArn(Aws::String&& value) { SetAutoScalingGroupArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Auto Scaling group.

*/ inline AutoScalingGroupRecommendation& WithAutoScalingGroupArn(const char* value) { SetAutoScalingGroupArn(value); return *this;} /** *

The name of the Auto Scaling group.

*/ inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; } /** *

The name of the Auto Scaling group.

*/ inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; } /** *

The name of the Auto Scaling group.

*/ inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; } /** *

The name of the Auto Scaling group.

*/ inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); } /** *

The name of the Auto Scaling group.

*/ inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); } /** *

The name of the Auto Scaling group.

*/ inline AutoScalingGroupRecommendation& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;} /** *

The name of the Auto Scaling group.

*/ inline AutoScalingGroupRecommendation& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(std::move(value)); return *this;} /** *

The name of the Auto Scaling group.

*/ inline AutoScalingGroupRecommendation& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;} /** *

The finding classification for the Auto Scaling group.

Findings for * Auto Scaling groups include:

  • NotOptimized * —An Auto Scaling group is considered not optimized when AWS Compute * Optimizer identifies a recommendation that can provide better performance for * your workload.

  • Optimized —An Auto * Scaling group is considered optimized when Compute Optimizer determines that the * group is correctly provisioned to run your workload based on the chosen instance * type. For optimized resources, Compute Optimizer might recommend a new * generation instance type.

The values that are returned * might be NOT_OPTIMIZED or OPTIMIZED.

*/ inline const Finding& GetFinding() const{ return m_finding; } /** *

The finding classification for the Auto Scaling group.

Findings for * Auto Scaling groups include:

  • NotOptimized * —An Auto Scaling group is considered not optimized when AWS Compute * Optimizer identifies a recommendation that can provide better performance for * your workload.

  • Optimized —An Auto * Scaling group is considered optimized when Compute Optimizer determines that the * group is correctly provisioned to run your workload based on the chosen instance * type. For optimized resources, Compute Optimizer might recommend a new * generation instance type.

The values that are returned * might be NOT_OPTIMIZED or OPTIMIZED.

*/ inline bool FindingHasBeenSet() const { return m_findingHasBeenSet; } /** *

The finding classification for the Auto Scaling group.

Findings for * Auto Scaling groups include:

  • NotOptimized * —An Auto Scaling group is considered not optimized when AWS Compute * Optimizer identifies a recommendation that can provide better performance for * your workload.

  • Optimized —An Auto * Scaling group is considered optimized when Compute Optimizer determines that the * group is correctly provisioned to run your workload based on the chosen instance * type. For optimized resources, Compute Optimizer might recommend a new * generation instance type.

The values that are returned * might be NOT_OPTIMIZED or OPTIMIZED.

*/ inline void SetFinding(const Finding& value) { m_findingHasBeenSet = true; m_finding = value; } /** *

The finding classification for the Auto Scaling group.

Findings for * Auto Scaling groups include:

  • NotOptimized * —An Auto Scaling group is considered not optimized when AWS Compute * Optimizer identifies a recommendation that can provide better performance for * your workload.

  • Optimized —An Auto * Scaling group is considered optimized when Compute Optimizer determines that the * group is correctly provisioned to run your workload based on the chosen instance * type. For optimized resources, Compute Optimizer might recommend a new * generation instance type.

The values that are returned * might be NOT_OPTIMIZED or OPTIMIZED.

*/ inline void SetFinding(Finding&& value) { m_findingHasBeenSet = true; m_finding = std::move(value); } /** *

The finding classification for the Auto Scaling group.

Findings for * Auto Scaling groups include:

  • NotOptimized * —An Auto Scaling group is considered not optimized when AWS Compute * Optimizer identifies a recommendation that can provide better performance for * your workload.

  • Optimized —An Auto * Scaling group is considered optimized when Compute Optimizer determines that the * group is correctly provisioned to run your workload based on the chosen instance * type. For optimized resources, Compute Optimizer might recommend a new * generation instance type.

The values that are returned * might be NOT_OPTIMIZED or OPTIMIZED.

*/ inline AutoScalingGroupRecommendation& WithFinding(const Finding& value) { SetFinding(value); return *this;} /** *

The finding classification for the Auto Scaling group.

Findings for * Auto Scaling groups include:

  • NotOptimized * —An Auto Scaling group is considered not optimized when AWS Compute * Optimizer identifies a recommendation that can provide better performance for * your workload.

  • Optimized —An Auto * Scaling group is considered optimized when Compute Optimizer determines that the * group is correctly provisioned to run your workload based on the chosen instance * type. For optimized resources, Compute Optimizer might recommend a new * generation instance type.

The values that are returned * might be NOT_OPTIMIZED or OPTIMIZED.

*/ inline AutoScalingGroupRecommendation& WithFinding(Finding&& value) { SetFinding(std::move(value)); return *this;} /** *

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

*/ inline const Aws::Vector& GetUtilizationMetrics() const{ return m_utilizationMetrics; } /** *

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

*/ inline bool UtilizationMetricsHasBeenSet() const { return m_utilizationMetricsHasBeenSet; } /** *

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

*/ inline void SetUtilizationMetrics(const Aws::Vector& value) { m_utilizationMetricsHasBeenSet = true; m_utilizationMetrics = value; } /** *

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

*/ inline void SetUtilizationMetrics(Aws::Vector&& value) { m_utilizationMetricsHasBeenSet = true; m_utilizationMetrics = std::move(value); } /** *

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

*/ inline AutoScalingGroupRecommendation& WithUtilizationMetrics(const Aws::Vector& value) { SetUtilizationMetrics(value); return *this;} /** *

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

*/ inline AutoScalingGroupRecommendation& WithUtilizationMetrics(Aws::Vector&& value) { SetUtilizationMetrics(std::move(value)); return *this;} /** *

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

*/ inline AutoScalingGroupRecommendation& AddUtilizationMetrics(const UtilizationMetric& value) { m_utilizationMetricsHasBeenSet = true; m_utilizationMetrics.push_back(value); return *this; } /** *

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

*/ inline AutoScalingGroupRecommendation& AddUtilizationMetrics(UtilizationMetric&& value) { m_utilizationMetricsHasBeenSet = true; m_utilizationMetrics.push_back(std::move(value)); return *this; } /** *

The number of days for which utilization metrics were analyzed for the Auto * Scaling group.

*/ inline double GetLookBackPeriodInDays() const{ return m_lookBackPeriodInDays; } /** *

The number of days for which utilization metrics were analyzed for the Auto * Scaling group.

*/ inline bool LookBackPeriodInDaysHasBeenSet() const { return m_lookBackPeriodInDaysHasBeenSet; } /** *

The number of days for which utilization metrics were analyzed for the Auto * Scaling group.

*/ inline void SetLookBackPeriodInDays(double value) { m_lookBackPeriodInDaysHasBeenSet = true; m_lookBackPeriodInDays = value; } /** *

The number of days for which utilization metrics were analyzed for the Auto * Scaling group.

*/ inline AutoScalingGroupRecommendation& WithLookBackPeriodInDays(double value) { SetLookBackPeriodInDays(value); return *this;} /** *

An array of objects that describe the current configuration of the Auto * Scaling group.

*/ inline const AutoScalingGroupConfiguration& GetCurrentConfiguration() const{ return m_currentConfiguration; } /** *

An array of objects that describe the current configuration of the Auto * Scaling group.

*/ inline bool CurrentConfigurationHasBeenSet() const { return m_currentConfigurationHasBeenSet; } /** *

An array of objects that describe the current configuration of the Auto * Scaling group.

*/ inline void SetCurrentConfiguration(const AutoScalingGroupConfiguration& value) { m_currentConfigurationHasBeenSet = true; m_currentConfiguration = value; } /** *

An array of objects that describe the current configuration of the Auto * Scaling group.

*/ inline void SetCurrentConfiguration(AutoScalingGroupConfiguration&& value) { m_currentConfigurationHasBeenSet = true; m_currentConfiguration = std::move(value); } /** *

An array of objects that describe the current configuration of the Auto * Scaling group.

*/ inline AutoScalingGroupRecommendation& WithCurrentConfiguration(const AutoScalingGroupConfiguration& value) { SetCurrentConfiguration(value); return *this;} /** *

An array of objects that describe the current configuration of the Auto * Scaling group.

*/ inline AutoScalingGroupRecommendation& WithCurrentConfiguration(AutoScalingGroupConfiguration&& value) { SetCurrentConfiguration(std::move(value)); return *this;} /** *

An array of objects that describe the recommendation options for the Auto * Scaling group.

*/ inline const Aws::Vector& GetRecommendationOptions() const{ return m_recommendationOptions; } /** *

An array of objects that describe the recommendation options for the Auto * Scaling group.

*/ inline bool RecommendationOptionsHasBeenSet() const { return m_recommendationOptionsHasBeenSet; } /** *

An array of objects that describe the recommendation options for the Auto * Scaling group.

*/ inline void SetRecommendationOptions(const Aws::Vector& value) { m_recommendationOptionsHasBeenSet = true; m_recommendationOptions = value; } /** *

An array of objects that describe the recommendation options for the Auto * Scaling group.

*/ inline void SetRecommendationOptions(Aws::Vector&& value) { m_recommendationOptionsHasBeenSet = true; m_recommendationOptions = std::move(value); } /** *

An array of objects that describe the recommendation options for the Auto * Scaling group.

*/ inline AutoScalingGroupRecommendation& WithRecommendationOptions(const Aws::Vector& value) { SetRecommendationOptions(value); return *this;} /** *

An array of objects that describe the recommendation options for the Auto * Scaling group.

*/ inline AutoScalingGroupRecommendation& WithRecommendationOptions(Aws::Vector&& value) { SetRecommendationOptions(std::move(value)); return *this;} /** *

An array of objects that describe the recommendation options for the Auto * Scaling group.

*/ inline AutoScalingGroupRecommendation& AddRecommendationOptions(const AutoScalingGroupRecommendationOption& value) { m_recommendationOptionsHasBeenSet = true; m_recommendationOptions.push_back(value); return *this; } /** *

An array of objects that describe the recommendation options for the Auto * Scaling group.

*/ inline AutoScalingGroupRecommendation& AddRecommendationOptions(AutoScalingGroupRecommendationOption&& value) { m_recommendationOptionsHasBeenSet = true; m_recommendationOptions.push_back(std::move(value)); return *this; } /** *

The time stamp of when the Auto Scaling group recommendation was last * refreshed.

*/ inline const Aws::Utils::DateTime& GetLastRefreshTimestamp() const{ return m_lastRefreshTimestamp; } /** *

The time stamp of when the Auto Scaling group recommendation was last * refreshed.

*/ inline bool LastRefreshTimestampHasBeenSet() const { return m_lastRefreshTimestampHasBeenSet; } /** *

The time stamp of when the Auto Scaling group recommendation was last * refreshed.

*/ inline void SetLastRefreshTimestamp(const Aws::Utils::DateTime& value) { m_lastRefreshTimestampHasBeenSet = true; m_lastRefreshTimestamp = value; } /** *

The time stamp of when the Auto Scaling group recommendation was last * refreshed.

*/ inline void SetLastRefreshTimestamp(Aws::Utils::DateTime&& value) { m_lastRefreshTimestampHasBeenSet = true; m_lastRefreshTimestamp = std::move(value); } /** *

The time stamp of when the Auto Scaling group recommendation was last * refreshed.

*/ inline AutoScalingGroupRecommendation& WithLastRefreshTimestamp(const Aws::Utils::DateTime& value) { SetLastRefreshTimestamp(value); return *this;} /** *

The time stamp of when the Auto Scaling group recommendation was last * refreshed.

*/ inline AutoScalingGroupRecommendation& WithLastRefreshTimestamp(Aws::Utils::DateTime&& value) { SetLastRefreshTimestamp(std::move(value)); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet; Aws::String m_autoScalingGroupArn; bool m_autoScalingGroupArnHasBeenSet; Aws::String m_autoScalingGroupName; bool m_autoScalingGroupNameHasBeenSet; Finding m_finding; bool m_findingHasBeenSet; Aws::Vector m_utilizationMetrics; bool m_utilizationMetricsHasBeenSet; double m_lookBackPeriodInDays; bool m_lookBackPeriodInDaysHasBeenSet; AutoScalingGroupConfiguration m_currentConfiguration; bool m_currentConfigurationHasBeenSet; Aws::Vector m_recommendationOptions; bool m_recommendationOptionsHasBeenSet; Aws::Utils::DateTime m_lastRefreshTimestamp; bool m_lastRefreshTimestampHasBeenSet; }; } // namespace Model } // namespace ComputeOptimizer } // namespace Aws