7#include <aws/compute-optimizer/ComputeOptimizerRequest.h>
8#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
9#include <aws/compute-optimizer/model/EnhancedInfrastructureMetrics.h>
10#include <aws/compute-optimizer/model/ExternalMetricsPreference.h>
11#include <aws/compute-optimizer/model/InferredWorkloadTypesPreference.h>
12#include <aws/compute-optimizer/model/LookBackPeriodPreference.h>
13#include <aws/compute-optimizer/model/PreferredResource.h>
14#include <aws/compute-optimizer/model/ResourceType.h>
15#include <aws/compute-optimizer/model/SavingsEstimationMode.h>
16#include <aws/compute-optimizer/model/Scope.h>
17#include <aws/compute-optimizer/model/UtilizationPreference.h>
18#include <aws/core/utils/memory/stl/AWSVector.h>
23namespace ComputeOptimizer {
53 m_resourceTypeHasBeenSet =
true;
54 m_resourceType = value;
83 template <
typename ScopeT = Scope>
85 m_scopeHasBeenSet =
true;
86 m_scope = std::forward<ScopeT>(value);
88 template <
typename ScopeT = Scope>
90 SetScope(std::forward<ScopeT>(value));
107 m_enhancedInfrastructureMetricsHasBeenSet =
true;
108 m_enhancedInfrastructureMetrics = value;
129 m_inferredWorkloadTypesHasBeenSet =
true;
130 m_inferredWorkloadTypes = value;
151 template <
typename ExternalMetricsPreferenceT = ExternalMetricsPreference>
153 m_externalMetricsPreferenceHasBeenSet =
true;
154 m_externalMetricsPreference = std::forward<ExternalMetricsPreferenceT>(value);
156 template <
typename ExternalMetricsPreferenceT = ExternalMetricsPreference>
177 m_lookBackPeriodHasBeenSet =
true;
178 m_lookBackPeriod = value;
201 template <
typename UtilizationPreferencesT = Aws::Vector<UtilizationPreference>>
203 m_utilizationPreferencesHasBeenSet =
true;
204 m_utilizationPreferences = std::forward<UtilizationPreferencesT>(value);
206 template <
typename UtilizationPreferencesT = Aws::Vector<UtilizationPreference>>
211 template <
typename UtilizationPreferencesT = UtilizationPreference>
213 m_utilizationPreferencesHasBeenSet =
true;
214 m_utilizationPreferences.emplace_back(std::forward<UtilizationPreferencesT>(value));
231 template <
typename PreferredResourcesT = Aws::Vector<PreferredResource>>
233 m_preferredResourcesHasBeenSet =
true;
234 m_preferredResources = std::forward<PreferredResourcesT>(value);
236 template <
typename PreferredResourcesT = Aws::Vector<PreferredResource>>
241 template <
typename PreferredResourcesT = PreferredResource>
243 m_preferredResourcesHasBeenSet =
true;
244 m_preferredResources.emplace_back(std::forward<PreferredResourcesT>(value));
262 m_savingsEstimationModeHasBeenSet =
true;
263 m_savingsEstimationMode = value;
279 ExternalMetricsPreference m_externalMetricsPreference;
288 bool m_resourceTypeHasBeenSet =
false;
289 bool m_scopeHasBeenSet =
false;
290 bool m_enhancedInfrastructureMetricsHasBeenSet =
false;
291 bool m_inferredWorkloadTypesHasBeenSet =
false;
292 bool m_externalMetricsPreferenceHasBeenSet =
false;
293 bool m_lookBackPeriodHasBeenSet =
false;
294 bool m_utilizationPreferencesHasBeenSet =
false;
295 bool m_preferredResourcesHasBeenSet =
false;
296 bool m_savingsEstimationModeHasBeenSet =
false;
void SetSavingsEstimationMode(SavingsEstimationMode value)
bool ExternalMetricsPreferenceHasBeenSet() const
PutRecommendationPreferencesRequest & WithPreferredResources(PreferredResourcesT &&value)
ResourceType GetResourceType() const
PutRecommendationPreferencesRequest & WithExternalMetricsPreference(ExternalMetricsPreferenceT &&value)
bool EnhancedInfrastructureMetricsHasBeenSet() const
bool ResourceTypeHasBeenSet() const
AWS_COMPUTEOPTIMIZER_API PutRecommendationPreferencesRequest()=default
void SetLookBackPeriod(LookBackPeriodPreference value)
PutRecommendationPreferencesRequest & WithUtilizationPreferences(UtilizationPreferencesT &&value)
void SetPreferredResources(PreferredResourcesT &&value)
bool InferredWorkloadTypesHasBeenSet() const
void SetUtilizationPreferences(UtilizationPreferencesT &&value)
bool LookBackPeriodHasBeenSet() const
PutRecommendationPreferencesRequest & WithInferredWorkloadTypes(InferredWorkloadTypesPreference value)
void SetScope(ScopeT &&value)
PutRecommendationPreferencesRequest & AddPreferredResources(PreferredResourcesT &&value)
bool PreferredResourcesHasBeenSet() const
const Aws::Vector< PreferredResource > & GetPreferredResources() const
AWS_COMPUTEOPTIMIZER_API Aws::String SerializePayload() const override
bool UtilizationPreferencesHasBeenSet() const
bool SavingsEstimationModeHasBeenSet() const
void SetEnhancedInfrastructureMetrics(EnhancedInfrastructureMetrics value)
EnhancedInfrastructureMetrics GetEnhancedInfrastructureMetrics() const
const ExternalMetricsPreference & GetExternalMetricsPreference() const
LookBackPeriodPreference GetLookBackPeriod() const
InferredWorkloadTypesPreference GetInferredWorkloadTypes() const
PutRecommendationPreferencesRequest & WithSavingsEstimationMode(SavingsEstimationMode value)
void SetExternalMetricsPreference(ExternalMetricsPreferenceT &&value)
PutRecommendationPreferencesRequest & WithResourceType(ResourceType value)
void SetInferredWorkloadTypes(InferredWorkloadTypesPreference value)
const Scope & GetScope() const
SavingsEstimationMode GetSavingsEstimationMode() const
PutRecommendationPreferencesRequest & WithScope(ScopeT &&value)
PutRecommendationPreferencesRequest & WithEnhancedInfrastructureMetrics(EnhancedInfrastructureMetrics value)
virtual const char * GetServiceRequestName() const override
PutRecommendationPreferencesRequest & WithLookBackPeriod(LookBackPeriodPreference value)
const Aws::Vector< UtilizationPreference > & GetUtilizationPreferences() const
bool ScopeHasBeenSet() const
AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetResourceType(ResourceType value)
PutRecommendationPreferencesRequest & AddUtilizationPreferences(UtilizationPreferencesT &&value)
InferredWorkloadTypesPreference
EnhancedInfrastructureMetrics
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector