#[non_exhaustive]pub struct EcsServiceProjectedMetricBuilder { /* private fields */ }
Expand description
A builder for EcsServiceProjectedMetric
.
Implementations§
source§impl EcsServiceProjectedMetricBuilder
impl EcsServiceProjectedMetricBuilder
sourcepub fn name(self, input: EcsServiceMetricName) -> Self
pub fn name(self, input: EcsServiceMetricName) -> Self
The name of the projected metric.
The following metrics are available:
-
Cpu
— The percentage of allocated compute units that are currently in use on the service tasks. -
Memory
— The percentage of memory that's currently in use on the service tasks.
sourcepub fn set_name(self, input: Option<EcsServiceMetricName>) -> Self
pub fn set_name(self, input: Option<EcsServiceMetricName>) -> Self
The name of the projected metric.
The following metrics are available:
-
Cpu
— The percentage of allocated compute units that are currently in use on the service tasks. -
Memory
— The percentage of memory that's currently in use on the service tasks.
sourcepub fn get_name(&self) -> &Option<EcsServiceMetricName>
pub fn get_name(&self) -> &Option<EcsServiceMetricName>
The name of the projected metric.
The following metrics are available:
-
Cpu
— The percentage of allocated compute units that are currently in use on the service tasks. -
Memory
— The percentage of memory that's currently in use on the service tasks.
sourcepub fn timestamps(self, input: DateTime) -> Self
pub fn timestamps(self, input: DateTime) -> Self
Appends an item to timestamps
.
To override the contents of this collection use set_timestamps
.
The timestamps of the projected metric.
sourcepub fn set_timestamps(self, input: Option<Vec<DateTime>>) -> Self
pub fn set_timestamps(self, input: Option<Vec<DateTime>>) -> Self
The timestamps of the projected metric.
sourcepub fn get_timestamps(&self) -> &Option<Vec<DateTime>>
pub fn get_timestamps(&self) -> &Option<Vec<DateTime>>
The timestamps of the projected metric.
sourcepub fn upper_bound_values(self, input: f64) -> Self
pub fn upper_bound_values(self, input: f64) -> Self
Appends an item to upper_bound_values
.
To override the contents of this collection use set_upper_bound_values
.
The upper bound values for the projected metric.
sourcepub fn set_upper_bound_values(self, input: Option<Vec<f64>>) -> Self
pub fn set_upper_bound_values(self, input: Option<Vec<f64>>) -> Self
The upper bound values for the projected metric.
sourcepub fn get_upper_bound_values(&self) -> &Option<Vec<f64>>
pub fn get_upper_bound_values(&self) -> &Option<Vec<f64>>
The upper bound values for the projected metric.
sourcepub fn lower_bound_values(self, input: f64) -> Self
pub fn lower_bound_values(self, input: f64) -> Self
Appends an item to lower_bound_values
.
To override the contents of this collection use set_lower_bound_values
.
The lower bound values for the projected metric.
sourcepub fn set_lower_bound_values(self, input: Option<Vec<f64>>) -> Self
pub fn set_lower_bound_values(self, input: Option<Vec<f64>>) -> Self
The lower bound values for the projected metric.
sourcepub fn get_lower_bound_values(&self) -> &Option<Vec<f64>>
pub fn get_lower_bound_values(&self) -> &Option<Vec<f64>>
The lower bound values for the projected metric.
sourcepub fn build(self) -> EcsServiceProjectedMetric
pub fn build(self) -> EcsServiceProjectedMetric
Consumes the builder and constructs a EcsServiceProjectedMetric
.
Trait Implementations§
source§impl Clone for EcsServiceProjectedMetricBuilder
impl Clone for EcsServiceProjectedMetricBuilder
source§fn clone(&self) -> EcsServiceProjectedMetricBuilder
fn clone(&self) -> EcsServiceProjectedMetricBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for EcsServiceProjectedMetricBuilder
impl Default for EcsServiceProjectedMetricBuilder
source§fn default() -> EcsServiceProjectedMetricBuilder
fn default() -> EcsServiceProjectedMetricBuilder
source§impl PartialEq for EcsServiceProjectedMetricBuilder
impl PartialEq for EcsServiceProjectedMetricBuilder
source§fn eq(&self, other: &EcsServiceProjectedMetricBuilder) -> bool
fn eq(&self, other: &EcsServiceProjectedMetricBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.