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 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
.
pub fn value(self, input: f32) -> Self
pub fn set_value(self, input: Option<f32>) -> Self
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 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
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 MetricPointBuilder
impl Debug for MetricPointBuilder
source§impl Default for MetricPointBuilder
impl Default for MetricPointBuilder
source§fn default() -> MetricPointBuilder
fn default() -> MetricPointBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<MetricPointBuilder> for MetricPointBuilder
impl PartialEq<MetricPointBuilder> for MetricPointBuilder
source§fn eq(&self, other: &MetricPointBuilder) -> bool
fn eq(&self, other: &MetricPointBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MetricPointBuilder
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more