#[non_exhaustive]pub struct CustomizableMetricParametersBuilder { /* private fields */ }Expand description
A builder for CustomizableMetricParameters.
Implementations§
source§impl CustomizableMetricParametersBuilder
impl CustomizableMetricParametersBuilder
sourcepub fn threshold(self, input: CustomizableMetricThreshold) -> Self
pub fn threshold(self, input: CustomizableMetricThreshold) -> Self
The threshold value used for the specified metric parameter.
You can only specify the threshold value for CPU utilization.
sourcepub fn set_threshold(self, input: Option<CustomizableMetricThreshold>) -> Self
pub fn set_threshold(self, input: Option<CustomizableMetricThreshold>) -> Self
The threshold value used for the specified metric parameter.
You can only specify the threshold value for CPU utilization.
sourcepub fn get_threshold(&self) -> &Option<CustomizableMetricThreshold>
pub fn get_threshold(&self) -> &Option<CustomizableMetricThreshold>
The threshold value used for the specified metric parameter.
You can only specify the threshold value for CPU utilization.
sourcepub fn headroom(self, input: CustomizableMetricHeadroom) -> Self
pub fn headroom(self, input: CustomizableMetricHeadroom) -> Self
The headroom value in percentage used for the specified metric parameter.
The following lists the valid values for CPU and memory utilization.
-
CPU utilization:
PERCENT_30 | PERCENT_20 | PERCENT_0 -
Memory utilization:
PERCENT_30 | PERCENT_20 | PERCENT_10
sourcepub fn set_headroom(self, input: Option<CustomizableMetricHeadroom>) -> Self
pub fn set_headroom(self, input: Option<CustomizableMetricHeadroom>) -> Self
The headroom value in percentage used for the specified metric parameter.
The following lists the valid values for CPU and memory utilization.
-
CPU utilization:
PERCENT_30 | PERCENT_20 | PERCENT_0 -
Memory utilization:
PERCENT_30 | PERCENT_20 | PERCENT_10
sourcepub fn get_headroom(&self) -> &Option<CustomizableMetricHeadroom>
pub fn get_headroom(&self) -> &Option<CustomizableMetricHeadroom>
The headroom value in percentage used for the specified metric parameter.
The following lists the valid values for CPU and memory utilization.
-
CPU utilization:
PERCENT_30 | PERCENT_20 | PERCENT_0 -
Memory utilization:
PERCENT_30 | PERCENT_20 | PERCENT_10
sourcepub fn build(self) -> CustomizableMetricParameters
pub fn build(self) -> CustomizableMetricParameters
Consumes the builder and constructs a CustomizableMetricParameters.
Trait Implementations§
source§impl Clone for CustomizableMetricParametersBuilder
impl Clone for CustomizableMetricParametersBuilder
source§fn clone(&self) -> CustomizableMetricParametersBuilder
fn clone(&self) -> CustomizableMetricParametersBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CustomizableMetricParametersBuilder
impl Default for CustomizableMetricParametersBuilder
source§fn default() -> CustomizableMetricParametersBuilder
fn default() -> CustomizableMetricParametersBuilder
source§impl PartialEq for CustomizableMetricParametersBuilder
impl PartialEq for CustomizableMetricParametersBuilder
source§fn eq(&self, other: &CustomizableMetricParametersBuilder) -> bool
fn eq(&self, other: &CustomizableMetricParametersBuilder) -> bool
self and other values to be equal, and is used
by ==.