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

Describes the external metrics preferences for EC2 rightsizing * recommendations.

See Also:

AWS * API Reference

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

Contains the source options for external metrics preferences.

*/ inline const ExternalMetricsSource& GetSource() const{ return m_source; } /** *

Contains the source options for external metrics preferences.

*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *

Contains the source options for external metrics preferences.

*/ inline void SetSource(const ExternalMetricsSource& value) { m_sourceHasBeenSet = true; m_source = value; } /** *

Contains the source options for external metrics preferences.

*/ inline void SetSource(ExternalMetricsSource&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *

Contains the source options for external metrics preferences.

*/ inline ExternalMetricsPreference& WithSource(const ExternalMetricsSource& value) { SetSource(value); return *this;} /** *

Contains the source options for external metrics preferences.

*/ inline ExternalMetricsPreference& WithSource(ExternalMetricsSource&& value) { SetSource(std::move(value)); return *this;} private: ExternalMetricsSource m_source; bool m_sourceHasBeenSet = false; }; } // namespace Model } // namespace ComputeOptimizer } // namespace Aws