AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetEffectiveRecommendationPreferencesResult.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/EnhancedInfrastructureMetrics.h>
9#include <aws/compute-optimizer/model/ExternalMetricsPreference.h>
10#include <aws/compute-optimizer/model/LookBackPeriodPreference.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/compute-optimizer/model/UtilizationPreference.h>
14#include <aws/compute-optimizer/model/EffectivePreferredResource.h>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace ComputeOptimizer
30{
31namespace Model
32{
34 {
35 public:
39
40
42
57 inline const EnhancedInfrastructureMetrics& GetEnhancedInfrastructureMetrics() const{ return m_enhancedInfrastructureMetrics; }
58 inline void SetEnhancedInfrastructureMetrics(const EnhancedInfrastructureMetrics& value) { m_enhancedInfrastructureMetrics = value; }
59 inline void SetEnhancedInfrastructureMetrics(EnhancedInfrastructureMetrics&& value) { m_enhancedInfrastructureMetrics = std::move(value); }
63
65
79 inline const ExternalMetricsPreference& GetExternalMetricsPreference() const{ return m_externalMetricsPreference; }
80 inline void SetExternalMetricsPreference(const ExternalMetricsPreference& value) { m_externalMetricsPreference = value; }
81 inline void SetExternalMetricsPreference(ExternalMetricsPreference&& value) { m_externalMetricsPreference = std::move(value); }
85
87
94 inline const LookBackPeriodPreference& GetLookBackPeriod() const{ return m_lookBackPeriod; }
95 inline void SetLookBackPeriod(const LookBackPeriodPreference& value) { m_lookBackPeriod = value; }
96 inline void SetLookBackPeriod(LookBackPeriodPreference&& value) { m_lookBackPeriod = std::move(value); }
100
102
111 inline const Aws::Vector<UtilizationPreference>& GetUtilizationPreferences() const{ return m_utilizationPreferences; }
112 inline void SetUtilizationPreferences(const Aws::Vector<UtilizationPreference>& value) { m_utilizationPreferences = value; }
113 inline void SetUtilizationPreferences(Aws::Vector<UtilizationPreference>&& value) { m_utilizationPreferences = std::move(value); }
116 inline GetEffectiveRecommendationPreferencesResult& AddUtilizationPreferences(const UtilizationPreference& value) { m_utilizationPreferences.push_back(value); return *this; }
117 inline GetEffectiveRecommendationPreferencesResult& AddUtilizationPreferences(UtilizationPreference&& value) { m_utilizationPreferences.push_back(std::move(value)); return *this; }
119
121
131 inline const Aws::Vector<EffectivePreferredResource>& GetPreferredResources() const{ return m_preferredResources; }
132 inline void SetPreferredResources(const Aws::Vector<EffectivePreferredResource>& value) { m_preferredResources = value; }
133 inline void SetPreferredResources(Aws::Vector<EffectivePreferredResource>&& value) { m_preferredResources = std::move(value); }
136 inline GetEffectiveRecommendationPreferencesResult& AddPreferredResources(const EffectivePreferredResource& value) { m_preferredResources.push_back(value); return *this; }
137 inline GetEffectiveRecommendationPreferencesResult& AddPreferredResources(EffectivePreferredResource&& value) { m_preferredResources.push_back(std::move(value)); return *this; }
139
141
142 inline const Aws::String& GetRequestId() const{ return m_requestId; }
143 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
144 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
145 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
147 inline GetEffectiveRecommendationPreferencesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
148 inline GetEffectiveRecommendationPreferencesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
150 private:
151
152 EnhancedInfrastructureMetrics m_enhancedInfrastructureMetrics;
153
154 ExternalMetricsPreference m_externalMetricsPreference;
155
156 LookBackPeriodPreference m_lookBackPeriod;
157
158 Aws::Vector<UtilizationPreference> m_utilizationPreferences;
159
160 Aws::Vector<EffectivePreferredResource> m_preferredResources;
161
162 Aws::String m_requestId;
163 };
164
165} // namespace Model
166} // namespace ComputeOptimizer
167} // namespace Aws
GetEffectiveRecommendationPreferencesResult & WithLookBackPeriod(const LookBackPeriodPreference &value)
GetEffectiveRecommendationPreferencesResult & WithEnhancedInfrastructureMetrics(const EnhancedInfrastructureMetrics &value)
GetEffectiveRecommendationPreferencesResult & AddUtilizationPreferences(const UtilizationPreference &value)
GetEffectiveRecommendationPreferencesResult & WithEnhancedInfrastructureMetrics(EnhancedInfrastructureMetrics &&value)
GetEffectiveRecommendationPreferencesResult & WithUtilizationPreferences(const Aws::Vector< UtilizationPreference > &value)
GetEffectiveRecommendationPreferencesResult & AddUtilizationPreferences(UtilizationPreference &&value)
AWS_COMPUTEOPTIMIZER_API GetEffectiveRecommendationPreferencesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetEffectiveRecommendationPreferencesResult & WithExternalMetricsPreference(ExternalMetricsPreference &&value)
GetEffectiveRecommendationPreferencesResult & AddPreferredResources(const EffectivePreferredResource &value)
GetEffectiveRecommendationPreferencesResult & WithRequestId(const Aws::String &value)
GetEffectiveRecommendationPreferencesResult & WithPreferredResources(Aws::Vector< EffectivePreferredResource > &&value)
GetEffectiveRecommendationPreferencesResult & WithUtilizationPreferences(Aws::Vector< UtilizationPreference > &&value)
GetEffectiveRecommendationPreferencesResult & WithLookBackPeriod(LookBackPeriodPreference &&value)
GetEffectiveRecommendationPreferencesResult & AddPreferredResources(EffectivePreferredResource &&value)
GetEffectiveRecommendationPreferencesResult & WithExternalMetricsPreference(const ExternalMetricsPreference &value)
GetEffectiveRecommendationPreferencesResult & WithPreferredResources(const Aws::Vector< EffectivePreferredResource > &value)
AWS_COMPUTEOPTIMIZER_API GetEffectiveRecommendationPreferencesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue