#[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 ==
.impl StructuralPartialEq for EcsServiceProjectedMetricBuilder
Auto Trait Implementations§
impl Freeze for EcsServiceProjectedMetricBuilder
impl RefUnwindSafe for EcsServiceProjectedMetricBuilder
impl Send for EcsServiceProjectedMetricBuilder
impl Sync for EcsServiceProjectedMetricBuilder
impl Unpin for EcsServiceProjectedMetricBuilder
impl UnwindSafe for EcsServiceProjectedMetricBuilder
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