7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/ComputeOptimizerRequest.h>
9#include <aws/compute-optimizer/model/ResourceType.h>
10#include <aws/compute-optimizer/model/Scope.h>
11#include <aws/compute-optimizer/model/EnhancedInfrastructureMetrics.h>
12#include <aws/compute-optimizer/model/InferredWorkloadTypesPreference.h>
13#include <aws/compute-optimizer/model/ExternalMetricsPreference.h>
14#include <aws/compute-optimizer/model/LookBackPeriodPreference.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16#include <aws/compute-optimizer/model/SavingsEstimationMode.h>
17#include <aws/compute-optimizer/model/UtilizationPreference.h>
18#include <aws/compute-optimizer/model/PreferredResource.h>
23namespace ComputeOptimizer
80 template<
typename ScopeT = Scope>
81 void SetScope(ScopeT&& value) { m_scopeHasBeenSet =
true; m_scope = std::forward<ScopeT>(value); }
82 template<
typename ScopeT = Scope>
130 template<
typename ExternalMetricsPreferenceT = ExternalMetricsPreference>
131 void SetExternalMetricsPreference(ExternalMetricsPreferenceT&& value) { m_externalMetricsPreferenceHasBeenSet =
true; m_externalMetricsPreference = std::forward<ExternalMetricsPreferenceT>(value); }
132 template<
typename ExternalMetricsPreferenceT = ExternalMetricsPreference>
168 template<
typename UtilizationPreferencesT = Aws::Vector<UtilizationPreference>>
169 void SetUtilizationPreferences(UtilizationPreferencesT&& value) { m_utilizationPreferencesHasBeenSet =
true; m_utilizationPreferences = std::forward<UtilizationPreferencesT>(value); }
170 template<
typename UtilizationPreferencesT = Aws::Vector<UtilizationPreference>>
172 template<
typename UtilizationPreferencesT = UtilizationPreference>
188 template<
typename PreferredResourcesT = Aws::Vector<PreferredResource>>
189 void SetPreferredResources(PreferredResourcesT&& value) { m_preferredResourcesHasBeenSet =
true; m_preferredResources = std::forward<PreferredResourcesT>(value); }
190 template<
typename PreferredResourcesT = Aws::Vector<PreferredResource>>
192 template<
typename PreferredResourcesT = PreferredResource>
214 bool m_resourceTypeHasBeenSet =
false;
217 bool m_scopeHasBeenSet =
false;
220 bool m_enhancedInfrastructureMetricsHasBeenSet =
false;
223 bool m_inferredWorkloadTypesHasBeenSet =
false;
225 ExternalMetricsPreference m_externalMetricsPreference;
226 bool m_externalMetricsPreferenceHasBeenSet =
false;
229 bool m_lookBackPeriodHasBeenSet =
false;
232 bool m_utilizationPreferencesHasBeenSet =
false;
235 bool m_preferredResourcesHasBeenSet =
false;
238 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