Struct aws_sdk_computeoptimizer::operation::get_effective_recommendation_preferences::builders::GetEffectiveRecommendationPreferencesOutputBuilder
source · #[non_exhaustive]pub struct GetEffectiveRecommendationPreferencesOutputBuilder { /* private fields */ }Expand description
A builder for GetEffectiveRecommendationPreferencesOutput.
Implementations§
source§impl GetEffectiveRecommendationPreferencesOutputBuilder
impl GetEffectiveRecommendationPreferencesOutputBuilder
sourcepub fn enhanced_infrastructure_metrics(
self,
input: EnhancedInfrastructureMetrics
) -> Self
pub fn enhanced_infrastructure_metrics( self, input: EnhancedInfrastructureMetrics ) -> Self
The status of the enhanced infrastructure metrics recommendation preference. Considers all applicable preferences that you might have set at the resource, account, and organization level.
A status of Active confirms that the preference is applied in the latest recommendation refresh, and a status of Inactive confirms that it's not yet applied to recommendations.
To validate whether the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations actions.
For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.
sourcepub fn set_enhanced_infrastructure_metrics(
self,
input: Option<EnhancedInfrastructureMetrics>
) -> Self
pub fn set_enhanced_infrastructure_metrics( self, input: Option<EnhancedInfrastructureMetrics> ) -> Self
The status of the enhanced infrastructure metrics recommendation preference. Considers all applicable preferences that you might have set at the resource, account, and organization level.
A status of Active confirms that the preference is applied in the latest recommendation refresh, and a status of Inactive confirms that it's not yet applied to recommendations.
To validate whether the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations actions.
For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.
sourcepub fn get_enhanced_infrastructure_metrics(
&self
) -> &Option<EnhancedInfrastructureMetrics>
pub fn get_enhanced_infrastructure_metrics( &self ) -> &Option<EnhancedInfrastructureMetrics>
The status of the enhanced infrastructure metrics recommendation preference. Considers all applicable preferences that you might have set at the resource, account, and organization level.
A status of Active confirms that the preference is applied in the latest recommendation refresh, and a status of Inactive confirms that it's not yet applied to recommendations.
To validate whether the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations actions.
For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.
sourcepub fn external_metrics_preference(
self,
input: ExternalMetricsPreference
) -> Self
pub fn external_metrics_preference( self, input: ExternalMetricsPreference ) -> Self
The provider of the external metrics recommendation preference. Considers all applicable preferences that you might have set at the account and organization level.
If the preference is applied in the latest recommendation refresh, an object with a valid source value appears in the response. If the preference isn't applied to the recommendations already, then this object doesn't appear in the response.
To validate whether the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetEC2InstanceRecommendations actions.
For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.
sourcepub fn set_external_metrics_preference(
self,
input: Option<ExternalMetricsPreference>
) -> Self
pub fn set_external_metrics_preference( self, input: Option<ExternalMetricsPreference> ) -> Self
The provider of the external metrics recommendation preference. Considers all applicable preferences that you might have set at the account and organization level.
If the preference is applied in the latest recommendation refresh, an object with a valid source value appears in the response. If the preference isn't applied to the recommendations already, then this object doesn't appear in the response.
To validate whether the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetEC2InstanceRecommendations actions.
For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.
sourcepub fn get_external_metrics_preference(
&self
) -> &Option<ExternalMetricsPreference>
pub fn get_external_metrics_preference( &self ) -> &Option<ExternalMetricsPreference>
The provider of the external metrics recommendation preference. Considers all applicable preferences that you might have set at the account and organization level.
If the preference is applied in the latest recommendation refresh, an object with a valid source value appears in the response. If the preference isn't applied to the recommendations already, then this object doesn't appear in the response.
To validate whether the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetEC2InstanceRecommendations actions.
For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.
sourcepub fn build(self) -> GetEffectiveRecommendationPreferencesOutput
pub fn build(self) -> GetEffectiveRecommendationPreferencesOutput
Consumes the builder and constructs a GetEffectiveRecommendationPreferencesOutput.
Trait Implementations§
source§impl Clone for GetEffectiveRecommendationPreferencesOutputBuilder
impl Clone for GetEffectiveRecommendationPreferencesOutputBuilder
source§fn clone(&self) -> GetEffectiveRecommendationPreferencesOutputBuilder
fn clone(&self) -> GetEffectiveRecommendationPreferencesOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for GetEffectiveRecommendationPreferencesOutputBuilder
impl Default for GetEffectiveRecommendationPreferencesOutputBuilder
source§fn default() -> GetEffectiveRecommendationPreferencesOutputBuilder
fn default() -> GetEffectiveRecommendationPreferencesOutputBuilder
source§impl PartialEq for GetEffectiveRecommendationPreferencesOutputBuilder
impl PartialEq for GetEffectiveRecommendationPreferencesOutputBuilder
source§fn eq(&self, other: &GetEffectiveRecommendationPreferencesOutputBuilder) -> bool
fn eq(&self, other: &GetEffectiveRecommendationPreferencesOutputBuilder) -> bool
self and other values to be equal, and is used
by ==.