#[non_exhaustive]pub struct RecommendationPreferencesDetailBuilder { /* private fields */ }
Expand description
A builder for RecommendationPreferencesDetail
.
Implementations§
source§impl RecommendationPreferencesDetailBuilder
impl RecommendationPreferencesDetailBuilder
sourcepub fn scope(self, input: Scope) -> Self
pub fn scope(self, input: Scope) -> Self
An object that describes the scope of the recommendation preference.
Recommendation preferences can be created at the organization level (for management accounts of an organization only), account level, and resource level. For more information, see Activating enhanced infrastructure metrics in the Compute Optimizer User Guide.
sourcepub fn set_scope(self, input: Option<Scope>) -> Self
pub fn set_scope(self, input: Option<Scope>) -> Self
An object that describes the scope of the recommendation preference.
Recommendation preferences can be created at the organization level (for management accounts of an organization only), account level, and resource level. For more information, see Activating enhanced infrastructure metrics in the Compute Optimizer User Guide.
sourcepub fn get_scope(&self) -> &Option<Scope>
pub fn get_scope(&self) -> &Option<Scope>
An object that describes the scope of the recommendation preference.
Recommendation preferences can be created at the organization level (for management accounts of an organization only), account level, and resource level. For more information, see Activating enhanced infrastructure metrics in the Compute Optimizer User Guide.
sourcepub fn resource_type(self, input: ResourceType) -> Self
pub fn resource_type(self, input: ResourceType) -> Self
The target resource type of the recommendation preference to create.
The Ec2Instance
option encompasses standalone instances and instances that are part of Auto Scaling groups. The AutoScalingGroup
option encompasses only instances that are part of an Auto Scaling group.
sourcepub fn set_resource_type(self, input: Option<ResourceType>) -> Self
pub fn set_resource_type(self, input: Option<ResourceType>) -> Self
The target resource type of the recommendation preference to create.
The Ec2Instance
option encompasses standalone instances and instances that are part of Auto Scaling groups. The AutoScalingGroup
option encompasses only instances that are part of an Auto Scaling group.
sourcepub fn get_resource_type(&self) -> &Option<ResourceType>
pub fn get_resource_type(&self) -> &Option<ResourceType>
The target resource type of the recommendation preference to create.
The Ec2Instance
option encompasses standalone instances and instances that are part of Auto Scaling groups. The AutoScalingGroup
option encompasses only instances that are part of an Auto Scaling group.
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.
When the recommendations page is refreshed, a status of Active
confirms that the preference is applied to the recommendations, and a status of Inactive
confirms that the preference isn't yet applied to recommendations.
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.
When the recommendations page is refreshed, a status of Active
confirms that the preference is applied to the recommendations, and a status of Inactive
confirms that the preference isn't yet applied to recommendations.
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.
When the recommendations page is refreshed, a status of Active
confirms that the preference is applied to the recommendations, and a status of Inactive
confirms that the preference isn't yet applied to recommendations.
For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.
sourcepub fn inferred_workload_types(
self,
input: InferredWorkloadTypesPreference
) -> Self
pub fn inferred_workload_types( self, input: InferredWorkloadTypesPreference ) -> Self
The status of the inferred workload types recommendation preference.
When the recommendations page is refreshed, a status of Active
confirms that the preference is applied to the recommendations, and a status of Inactive
confirms that the preference isn't yet applied to recommendations.
sourcepub fn set_inferred_workload_types(
self,
input: Option<InferredWorkloadTypesPreference>
) -> Self
pub fn set_inferred_workload_types( self, input: Option<InferredWorkloadTypesPreference> ) -> Self
The status of the inferred workload types recommendation preference.
When the recommendations page is refreshed, a status of Active
confirms that the preference is applied to the recommendations, and a status of Inactive
confirms that the preference isn't yet applied to recommendations.
sourcepub fn get_inferred_workload_types(
&self
) -> &Option<InferredWorkloadTypesPreference>
pub fn get_inferred_workload_types( &self ) -> &Option<InferredWorkloadTypesPreference>
The status of the inferred workload types recommendation preference.
When the recommendations page is refreshed, a status of Active
confirms that the preference is applied to the recommendations, and a status of Inactive
confirms that the preference isn't yet applied to recommendations.
sourcepub fn external_metrics_preference(
self,
input: ExternalMetricsPreference
) -> Self
pub fn external_metrics_preference( self, input: ExternalMetricsPreference ) -> Self
An object that describes the external metrics recommendation preference.
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.
sourcepub fn set_external_metrics_preference(
self,
input: Option<ExternalMetricsPreference>
) -> Self
pub fn set_external_metrics_preference( self, input: Option<ExternalMetricsPreference> ) -> Self
An object that describes the external metrics recommendation preference.
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.
sourcepub fn get_external_metrics_preference(
&self
) -> &Option<ExternalMetricsPreference>
pub fn get_external_metrics_preference( &self ) -> &Option<ExternalMetricsPreference>
An object that describes the external metrics recommendation preference.
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.
sourcepub fn build(self) -> RecommendationPreferencesDetail
pub fn build(self) -> RecommendationPreferencesDetail
Consumes the builder and constructs a RecommendationPreferencesDetail
.
Trait Implementations§
source§impl Clone for RecommendationPreferencesDetailBuilder
impl Clone for RecommendationPreferencesDetailBuilder
source§fn clone(&self) -> RecommendationPreferencesDetailBuilder
fn clone(&self) -> RecommendationPreferencesDetailBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for RecommendationPreferencesDetailBuilder
impl Default for RecommendationPreferencesDetailBuilder
source§fn default() -> RecommendationPreferencesDetailBuilder
fn default() -> RecommendationPreferencesDetailBuilder
source§impl PartialEq for RecommendationPreferencesDetailBuilder
impl PartialEq for RecommendationPreferencesDetailBuilder
source§fn eq(&self, other: &RecommendationPreferencesDetailBuilder) -> bool
fn eq(&self, other: &RecommendationPreferencesDetailBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.