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