AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
ExternalMetricsPreference.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/ExternalMetricsSource.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ComputeOptimizer {
20namespace Model {
21
29 public:
30 AWS_COMPUTEOPTIMIZER_API ExternalMetricsPreference() = default;
31 AWS_COMPUTEOPTIMIZER_API ExternalMetricsPreference(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline ExternalMetricsSource GetSource() const { return m_source; }
40 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
41 inline void SetSource(ExternalMetricsSource value) {
42 m_sourceHasBeenSet = true;
43 m_source = value;
44 }
46 SetSource(value);
47 return *this;
48 }
50 private:
52 bool m_sourceHasBeenSet = false;
53};
54
55} // namespace Model
56} // namespace ComputeOptimizer
57} // namespace Aws
AWS_COMPUTEOPTIMIZER_API ExternalMetricsPreference(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZER_API ExternalMetricsPreference & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZER_API ExternalMetricsPreference()=default
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
ExternalMetricsPreference & WithSource(ExternalMetricsSource value)
Aws::Utils::Json::JsonValue JsonValue