AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RDSEffectiveRecommendationPreferences.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/compute-optimizer/model/EnhancedInfrastructureMetrics.h>
10#include <aws/compute-optimizer/model/LookBackPeriodPreference.h>
11#include <aws/compute-optimizer/model/RDSSavingsEstimationMode.h>
12#include <aws/compute-optimizer/model/CpuVendorArchitecture.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ComputeOptimizer
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_COMPUTEOPTIMIZER_API RDSEffectiveRecommendationPreferences();
42 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::Vector<CpuVendorArchitecture>& GetCpuVendorArchitectures() const{ return m_cpuVendorArchitectures; }
51 inline bool CpuVendorArchitecturesHasBeenSet() const { return m_cpuVendorArchitecturesHasBeenSet; }
52 inline void SetCpuVendorArchitectures(const Aws::Vector<CpuVendorArchitecture>& value) { m_cpuVendorArchitecturesHasBeenSet = true; m_cpuVendorArchitectures = value; }
53 inline void SetCpuVendorArchitectures(Aws::Vector<CpuVendorArchitecture>&& value) { m_cpuVendorArchitecturesHasBeenSet = true; m_cpuVendorArchitectures = std::move(value); }
56 inline RDSEffectiveRecommendationPreferences& AddCpuVendorArchitectures(const CpuVendorArchitecture& value) { m_cpuVendorArchitecturesHasBeenSet = true; m_cpuVendorArchitectures.push_back(value); return *this; }
57 inline RDSEffectiveRecommendationPreferences& AddCpuVendorArchitectures(CpuVendorArchitecture&& value) { m_cpuVendorArchitecturesHasBeenSet = true; m_cpuVendorArchitectures.push_back(std::move(value)); return *this; }
59
61
70 inline const EnhancedInfrastructureMetrics& GetEnhancedInfrastructureMetrics() const{ return m_enhancedInfrastructureMetrics; }
71 inline bool EnhancedInfrastructureMetricsHasBeenSet() const { return m_enhancedInfrastructureMetricsHasBeenSet; }
72 inline void SetEnhancedInfrastructureMetrics(const EnhancedInfrastructureMetrics& value) { m_enhancedInfrastructureMetricsHasBeenSet = true; m_enhancedInfrastructureMetrics = value; }
73 inline void SetEnhancedInfrastructureMetrics(EnhancedInfrastructureMetrics&& value) { m_enhancedInfrastructureMetricsHasBeenSet = true; m_enhancedInfrastructureMetrics = std::move(value); }
77
79
83 inline const LookBackPeriodPreference& GetLookBackPeriod() const{ return m_lookBackPeriod; }
84 inline bool LookBackPeriodHasBeenSet() const { return m_lookBackPeriodHasBeenSet; }
85 inline void SetLookBackPeriod(const LookBackPeriodPreference& value) { m_lookBackPeriodHasBeenSet = true; m_lookBackPeriod = value; }
86 inline void SetLookBackPeriod(LookBackPeriodPreference&& value) { m_lookBackPeriodHasBeenSet = true; m_lookBackPeriod = std::move(value); }
90
92
96 inline const RDSSavingsEstimationMode& GetSavingsEstimationMode() const{ return m_savingsEstimationMode; }
97 inline bool SavingsEstimationModeHasBeenSet() const { return m_savingsEstimationModeHasBeenSet; }
98 inline void SetSavingsEstimationMode(const RDSSavingsEstimationMode& value) { m_savingsEstimationModeHasBeenSet = true; m_savingsEstimationMode = value; }
99 inline void SetSavingsEstimationMode(RDSSavingsEstimationMode&& value) { m_savingsEstimationModeHasBeenSet = true; m_savingsEstimationMode = std::move(value); }
103 private:
104
105 Aws::Vector<CpuVendorArchitecture> m_cpuVendorArchitectures;
106 bool m_cpuVendorArchitecturesHasBeenSet = false;
107
108 EnhancedInfrastructureMetrics m_enhancedInfrastructureMetrics;
109 bool m_enhancedInfrastructureMetricsHasBeenSet = false;
110
111 LookBackPeriodPreference m_lookBackPeriod;
112 bool m_lookBackPeriodHasBeenSet = false;
113
114 RDSSavingsEstimationMode m_savingsEstimationMode;
115 bool m_savingsEstimationModeHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace ComputeOptimizer
120} // namespace Aws
AWS_COMPUTEOPTIMIZER_API RDSEffectiveRecommendationPreferences(Aws::Utils::Json::JsonView jsonValue)
RDSEffectiveRecommendationPreferences & WithCpuVendorArchitectures(Aws::Vector< CpuVendorArchitecture > &&value)
RDSEffectiveRecommendationPreferences & WithEnhancedInfrastructureMetrics(const EnhancedInfrastructureMetrics &value)
RDSEffectiveRecommendationPreferences & WithSavingsEstimationMode(RDSSavingsEstimationMode &&value)
RDSEffectiveRecommendationPreferences & WithEnhancedInfrastructureMetrics(EnhancedInfrastructureMetrics &&value)
RDSEffectiveRecommendationPreferences & WithSavingsEstimationMode(const RDSSavingsEstimationMode &value)
RDSEffectiveRecommendationPreferences & AddCpuVendorArchitectures(const CpuVendorArchitecture &value)
RDSEffectiveRecommendationPreferences & WithCpuVendorArchitectures(const Aws::Vector< CpuVendorArchitecture > &value)
RDSEffectiveRecommendationPreferences & WithLookBackPeriod(LookBackPeriodPreference &&value)
void SetCpuVendorArchitectures(const Aws::Vector< CpuVendorArchitecture > &value)
RDSEffectiveRecommendationPreferences & AddCpuVendorArchitectures(CpuVendorArchitecture &&value)
AWS_COMPUTEOPTIMIZER_API RDSEffectiveRecommendationPreferences & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
RDSEffectiveRecommendationPreferences & WithLookBackPeriod(const LookBackPeriodPreference &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue