#[non_exhaustive]pub struct UsageMetricBasisBuilder { /* private fields */ }Expand description
A builder for UsageMetricBasis.
Implementations§
source§impl UsageMetricBasisBuilder
impl UsageMetricBasisBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A utilization metric that is used by the recommendations.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
A utilization metric that is used by the recommendations.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
A utilization metric that is used by the recommendations.
sourcepub fn percentage_adjust(self, input: f64) -> Self
pub fn percentage_adjust(self, input: f64) -> Self
Specifies the percentage of the specified utilization metric that is used by the recommendations.
sourcepub fn set_percentage_adjust(self, input: Option<f64>) -> Self
pub fn set_percentage_adjust(self, input: Option<f64>) -> Self
Specifies the percentage of the specified utilization metric that is used by the recommendations.
sourcepub fn get_percentage_adjust(&self) -> &Option<f64>
pub fn get_percentage_adjust(&self) -> &Option<f64>
Specifies the percentage of the specified utilization metric that is used by the recommendations.
sourcepub fn build(self) -> UsageMetricBasis
pub fn build(self) -> UsageMetricBasis
Consumes the builder and constructs a UsageMetricBasis.
Trait Implementations§
source§impl Clone for UsageMetricBasisBuilder
impl Clone for UsageMetricBasisBuilder
source§fn clone(&self) -> UsageMetricBasisBuilder
fn clone(&self) -> UsageMetricBasisBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for UsageMetricBasisBuilder
impl Debug for UsageMetricBasisBuilder
source§impl Default for UsageMetricBasisBuilder
impl Default for UsageMetricBasisBuilder
source§fn default() -> UsageMetricBasisBuilder
fn default() -> UsageMetricBasisBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for UsageMetricBasisBuilder
impl PartialEq for UsageMetricBasisBuilder
source§fn eq(&self, other: &UsageMetricBasisBuilder) -> bool
fn eq(&self, other: &UsageMetricBasisBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for UsageMetricBasisBuilder
Auto Trait Implementations§
impl RefUnwindSafe for UsageMetricBasisBuilder
impl Send for UsageMetricBasisBuilder
impl Sync for UsageMetricBasisBuilder
impl Unpin for UsageMetricBasisBuilder
impl UnwindSafe for UsageMetricBasisBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.