Struct aws_sdk_ec2::types::builders::MetricPointBuilder
source · #[non_exhaustive]pub struct MetricPointBuilder { /* private fields */ }
Expand description
A builder for MetricPoint
.
Implementations§
source§impl MetricPointBuilder
impl MetricPointBuilder
sourcepub fn start_date(self, input: DateTime) -> Self
pub fn start_date(self, input: DateTime) -> Self
The start date for the metric point. The starting date for the metric point. The starting time must be formatted as yyyy-mm-ddThh:mm:ss
. For example, 2022-06-10T12:00:00.000Z
.
sourcepub fn set_start_date(self, input: Option<DateTime>) -> Self
pub fn set_start_date(self, input: Option<DateTime>) -> Self
The start date for the metric point. The starting date for the metric point. The starting time must be formatted as yyyy-mm-ddThh:mm:ss
. For example, 2022-06-10T12:00:00.000Z
.
sourcepub fn get_start_date(&self) -> &Option<DateTime>
pub fn get_start_date(&self) -> &Option<DateTime>
The start date for the metric point. The starting date for the metric point. The starting time must be formatted as yyyy-mm-ddThh:mm:ss
. For example, 2022-06-10T12:00:00.000Z
.
sourcepub fn end_date(self, input: DateTime) -> Self
pub fn end_date(self, input: DateTime) -> Self
The end date for the metric point. The ending time must be formatted as yyyy-mm-ddThh:mm:ss
. For example, 2022-06-12T12:00:00.000Z
.
sourcepub fn set_end_date(self, input: Option<DateTime>) -> Self
pub fn set_end_date(self, input: Option<DateTime>) -> Self
The end date for the metric point. The ending time must be formatted as yyyy-mm-ddThh:mm:ss
. For example, 2022-06-12T12:00:00.000Z
.
sourcepub fn get_end_date(&self) -> &Option<DateTime>
pub fn get_end_date(&self) -> &Option<DateTime>
The end date for the metric point. The ending time must be formatted as yyyy-mm-ddThh:mm:ss
. For example, 2022-06-12T12:00:00.000Z
.
pub fn value(self, input: f32) -> Self
pub fn set_value(self, input: Option<f32>) -> Self
pub fn get_value(&self) -> &Option<f32>
sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
The status of the metric point.
sourcepub fn get_status(&self) -> &Option<String>
pub fn get_status(&self) -> &Option<String>
The status of the metric point.
sourcepub fn build(self) -> MetricPoint
pub fn build(self) -> MetricPoint
Consumes the builder and constructs a MetricPoint
.
Trait Implementations§
source§impl Clone for MetricPointBuilder
impl Clone for MetricPointBuilder
source§fn clone(&self) -> MetricPointBuilder
fn clone(&self) -> MetricPointBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MetricPointBuilder
impl Debug for MetricPointBuilder
source§impl Default for MetricPointBuilder
impl Default for MetricPointBuilder
source§fn default() -> MetricPointBuilder
fn default() -> MetricPointBuilder
source§impl PartialEq for MetricPointBuilder
impl PartialEq for MetricPointBuilder
source§fn eq(&self, other: &MetricPointBuilder) -> bool
fn eq(&self, other: &MetricPointBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MetricPointBuilder
Auto Trait Implementations§
impl Freeze for MetricPointBuilder
impl RefUnwindSafe for MetricPointBuilder
impl Send for MetricPointBuilder
impl Sync for MetricPointBuilder
impl Unpin for MetricPointBuilder
impl UnwindSafe for MetricPointBuilder
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> 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