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<MetricPointBuilder> for MetricPointBuilder
impl PartialEq<MetricPointBuilder> 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 ==
.