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

Describes the recommendation preferences to return in the response of a * GetAutoScalingGroupRecommendations, GetEC2InstanceRecommendations, * and GetEC2RecommendationProjectedMetrics request.

See * Also:

AWS * API Reference

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

Specifies the CPU vendor and architecture for Amazon EC2 instance and Auto * Scaling group recommendations.

For example, when you specify * AWS_ARM64 with:

*/ inline const Aws::Vector& GetCpuVendorArchitectures() const{ return m_cpuVendorArchitectures; } /** *

Specifies the CPU vendor and architecture for Amazon EC2 instance and Auto * Scaling group recommendations.

For example, when you specify * AWS_ARM64 with:

*/ inline bool CpuVendorArchitecturesHasBeenSet() const { return m_cpuVendorArchitecturesHasBeenSet; } /** *

Specifies the CPU vendor and architecture for Amazon EC2 instance and Auto * Scaling group recommendations.

For example, when you specify * AWS_ARM64 with:

*/ inline void SetCpuVendorArchitectures(const Aws::Vector& value) { m_cpuVendorArchitecturesHasBeenSet = true; m_cpuVendorArchitectures = value; } /** *

Specifies the CPU vendor and architecture for Amazon EC2 instance and Auto * Scaling group recommendations.

For example, when you specify * AWS_ARM64 with:

*/ inline void SetCpuVendorArchitectures(Aws::Vector&& value) { m_cpuVendorArchitecturesHasBeenSet = true; m_cpuVendorArchitectures = std::move(value); } /** *

Specifies the CPU vendor and architecture for Amazon EC2 instance and Auto * Scaling group recommendations.

For example, when you specify * AWS_ARM64 with:

*/ inline RecommendationPreferences& WithCpuVendorArchitectures(const Aws::Vector& value) { SetCpuVendorArchitectures(value); return *this;} /** *

Specifies the CPU vendor and architecture for Amazon EC2 instance and Auto * Scaling group recommendations.

For example, when you specify * AWS_ARM64 with:

*/ inline RecommendationPreferences& WithCpuVendorArchitectures(Aws::Vector&& value) { SetCpuVendorArchitectures(std::move(value)); return *this;} /** *

Specifies the CPU vendor and architecture for Amazon EC2 instance and Auto * Scaling group recommendations.

For example, when you specify * AWS_ARM64 with:

*/ inline RecommendationPreferences& AddCpuVendorArchitectures(const CpuVendorArchitecture& value) { m_cpuVendorArchitecturesHasBeenSet = true; m_cpuVendorArchitectures.push_back(value); return *this; } /** *

Specifies the CPU vendor and architecture for Amazon EC2 instance and Auto * Scaling group recommendations.

For example, when you specify * AWS_ARM64 with:

*/ inline RecommendationPreferences& AddCpuVendorArchitectures(CpuVendorArchitecture&& value) { m_cpuVendorArchitecturesHasBeenSet = true; m_cpuVendorArchitectures.push_back(std::move(value)); return *this; } private: Aws::Vector m_cpuVendorArchitectures; bool m_cpuVendorArchitecturesHasBeenSet = false; }; } // namespace Model } // namespace ComputeOptimizer } // namespace Aws