Struct aws_sdk_connect::types::builders::MetricIntervalBuilder
source · #[non_exhaustive]pub struct MetricIntervalBuilder { /* private fields */ }
Expand description
A builder for MetricInterval
.
Implementations§
source§impl MetricIntervalBuilder
impl MetricIntervalBuilder
sourcepub fn interval(self, input: IntervalPeriod) -> Self
pub fn interval(self, input: IntervalPeriod) -> Self
The interval period provided in the API request.
sourcepub fn set_interval(self, input: Option<IntervalPeriod>) -> Self
pub fn set_interval(self, input: Option<IntervalPeriod>) -> Self
The interval period provided in the API request.
sourcepub fn get_interval(&self) -> &Option<IntervalPeriod>
pub fn get_interval(&self) -> &Option<IntervalPeriod>
The interval period provided in the API request.
sourcepub fn start_time(self, input: DateTime) -> Self
pub fn start_time(self, input: DateTime) -> Self
The timestamp, in UNIX Epoch time format. Start time is based on the interval period selected.
sourcepub fn set_start_time(self, input: Option<DateTime>) -> Self
pub fn set_start_time(self, input: Option<DateTime>) -> Self
The timestamp, in UNIX Epoch time format. Start time is based on the interval period selected.
sourcepub fn get_start_time(&self) -> &Option<DateTime>
pub fn get_start_time(&self) -> &Option<DateTime>
The timestamp, in UNIX Epoch time format. Start time is based on the interval period selected.
sourcepub fn end_time(self, input: DateTime) -> Self
pub fn end_time(self, input: DateTime) -> Self
The timestamp, in UNIX Epoch time format. End time is based on the interval period selected. For example, If IntervalPeriod
is selected THIRTY_MIN
, StartTime
and EndTime
in the API request differs by 1 day, then 48 results are returned in the response. Each result is aggregated by the 30 minutes period, with each StartTime
and EndTime
differing by 30 minutes.
sourcepub fn set_end_time(self, input: Option<DateTime>) -> Self
pub fn set_end_time(self, input: Option<DateTime>) -> Self
The timestamp, in UNIX Epoch time format. End time is based on the interval period selected. For example, If IntervalPeriod
is selected THIRTY_MIN
, StartTime
and EndTime
in the API request differs by 1 day, then 48 results are returned in the response. Each result is aggregated by the 30 minutes period, with each StartTime
and EndTime
differing by 30 minutes.
sourcepub fn get_end_time(&self) -> &Option<DateTime>
pub fn get_end_time(&self) -> &Option<DateTime>
The timestamp, in UNIX Epoch time format. End time is based on the interval period selected. For example, If IntervalPeriod
is selected THIRTY_MIN
, StartTime
and EndTime
in the API request differs by 1 day, then 48 results are returned in the response. Each result is aggregated by the 30 minutes period, with each StartTime
and EndTime
differing by 30 minutes.
sourcepub fn build(self) -> MetricInterval
pub fn build(self) -> MetricInterval
Consumes the builder and constructs a MetricInterval
.
Trait Implementations§
source§impl Clone for MetricIntervalBuilder
impl Clone for MetricIntervalBuilder
source§fn clone(&self) -> MetricIntervalBuilder
fn clone(&self) -> MetricIntervalBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MetricIntervalBuilder
impl Debug for MetricIntervalBuilder
source§impl Default for MetricIntervalBuilder
impl Default for MetricIntervalBuilder
source§fn default() -> MetricIntervalBuilder
fn default() -> MetricIntervalBuilder
source§impl PartialEq for MetricIntervalBuilder
impl PartialEq for MetricIntervalBuilder
source§fn eq(&self, other: &MetricIntervalBuilder) -> bool
fn eq(&self, other: &MetricIntervalBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.