Struct aws_sdk_computeoptimizer::types::builders::RdsEffectiveRecommendationPreferencesBuilder
source · #[non_exhaustive]pub struct RdsEffectiveRecommendationPreferencesBuilder { /* private fields */ }
Expand description
A builder for RdsEffectiveRecommendationPreferences
.
Implementations§
source§impl RdsEffectiveRecommendationPreferencesBuilder
impl RdsEffectiveRecommendationPreferencesBuilder
sourcepub fn cpu_vendor_architectures(self, input: CpuVendorArchitecture) -> Self
pub fn cpu_vendor_architectures(self, input: CpuVendorArchitecture) -> Self
Appends an item to cpu_vendor_architectures
.
To override the contents of this collection use set_cpu_vendor_architectures
.
Describes the CPU vendor and architecture for Amazon RDS recommendations.
sourcepub fn set_cpu_vendor_architectures(
self,
input: Option<Vec<CpuVendorArchitecture>>,
) -> Self
pub fn set_cpu_vendor_architectures( self, input: Option<Vec<CpuVendorArchitecture>>, ) -> Self
Describes the CPU vendor and architecture for Amazon RDS recommendations.
sourcepub fn get_cpu_vendor_architectures(
&self,
) -> &Option<Vec<CpuVendorArchitecture>>
pub fn get_cpu_vendor_architectures( &self, ) -> &Option<Vec<CpuVendorArchitecture>>
Describes the CPU vendor and architecture for Amazon RDS recommendations.
sourcepub fn enhanced_infrastructure_metrics(
self,
input: EnhancedInfrastructureMetrics,
) -> Self
pub fn enhanced_infrastructure_metrics( self, input: EnhancedInfrastructureMetrics, ) -> Self
Describes the activation status of the enhanced infrastructure metrics preference.
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.
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
Describes the activation status of the enhanced infrastructure metrics preference.
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.
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>
Describes the activation status of the enhanced infrastructure metrics preference.
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.
For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.
sourcepub fn look_back_period(self, input: LookBackPeriodPreference) -> Self
pub fn look_back_period(self, input: LookBackPeriodPreference) -> Self
The number of days the utilization metrics of the Amazon RDS are analyzed.
sourcepub fn set_look_back_period(
self,
input: Option<LookBackPeriodPreference>,
) -> Self
pub fn set_look_back_period( self, input: Option<LookBackPeriodPreference>, ) -> Self
The number of days the utilization metrics of the Amazon RDS are analyzed.
sourcepub fn get_look_back_period(&self) -> &Option<LookBackPeriodPreference>
pub fn get_look_back_period(&self) -> &Option<LookBackPeriodPreference>
The number of days the utilization metrics of the Amazon RDS are analyzed.
sourcepub fn savings_estimation_mode(self, input: RdsSavingsEstimationMode) -> Self
pub fn savings_estimation_mode(self, input: RdsSavingsEstimationMode) -> Self
Describes the savings estimation mode preference applied for calculating savings opportunity for Amazon RDS.
sourcepub fn set_savings_estimation_mode(
self,
input: Option<RdsSavingsEstimationMode>,
) -> Self
pub fn set_savings_estimation_mode( self, input: Option<RdsSavingsEstimationMode>, ) -> Self
Describes the savings estimation mode preference applied for calculating savings opportunity for Amazon RDS.
sourcepub fn get_savings_estimation_mode(&self) -> &Option<RdsSavingsEstimationMode>
pub fn get_savings_estimation_mode(&self) -> &Option<RdsSavingsEstimationMode>
Describes the savings estimation mode preference applied for calculating savings opportunity for Amazon RDS.
sourcepub fn build(self) -> RdsEffectiveRecommendationPreferences
pub fn build(self) -> RdsEffectiveRecommendationPreferences
Consumes the builder and constructs a RdsEffectiveRecommendationPreferences
.
Trait Implementations§
source§impl Clone for RdsEffectiveRecommendationPreferencesBuilder
impl Clone for RdsEffectiveRecommendationPreferencesBuilder
source§fn clone(&self) -> RdsEffectiveRecommendationPreferencesBuilder
fn clone(&self) -> RdsEffectiveRecommendationPreferencesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for RdsEffectiveRecommendationPreferencesBuilder
impl Default for RdsEffectiveRecommendationPreferencesBuilder
source§fn default() -> RdsEffectiveRecommendationPreferencesBuilder
fn default() -> RdsEffectiveRecommendationPreferencesBuilder
source§impl PartialEq for RdsEffectiveRecommendationPreferencesBuilder
impl PartialEq for RdsEffectiveRecommendationPreferencesBuilder
source§fn eq(&self, other: &RdsEffectiveRecommendationPreferencesBuilder) -> bool
fn eq(&self, other: &RdsEffectiveRecommendationPreferencesBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RdsEffectiveRecommendationPreferencesBuilder
Auto Trait Implementations§
impl Freeze for RdsEffectiveRecommendationPreferencesBuilder
impl RefUnwindSafe for RdsEffectiveRecommendationPreferencesBuilder
impl Send for RdsEffectiveRecommendationPreferencesBuilder
impl Sync for RdsEffectiveRecommendationPreferencesBuilder
impl Unpin for RdsEffectiveRecommendationPreferencesBuilder
impl UnwindSafe for RdsEffectiveRecommendationPreferencesBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more