#[non_exhaustive]pub struct RelativeAggregationDurationBuilder { /* private fields */ }Expand description
A builder for RelativeAggregationDuration.
Implementations§
source§impl RelativeAggregationDurationBuilder
impl RelativeAggregationDurationBuilder
sourcepub fn time_dimension(self, input: TimeDimension) -> Self
pub fn time_dimension(self, input: TimeDimension) -> Self
The type of time period that the timeValue field represents.
sourcepub fn set_time_dimension(self, input: Option<TimeDimension>) -> Self
pub fn set_time_dimension(self, input: Option<TimeDimension>) -> Self
The type of time period that the timeValue field represents.
sourcepub fn time_value(self, input: i32) -> Self
pub fn time_value(self, input: i32) -> Self
The period of the time window to gather statistics for. The valid value depends on the setting of the timeDimension field.
-
Hours- 1/3/6/12/24 -
Days- 3 -
Weeks- 1/2
sourcepub fn set_time_value(self, input: Option<i32>) -> Self
pub fn set_time_value(self, input: Option<i32>) -> Self
The period of the time window to gather statistics for. The valid value depends on the setting of the timeDimension field.
-
Hours- 1/3/6/12/24 -
Days- 3 -
Weeks- 1/2
sourcepub fn build(self) -> RelativeAggregationDuration
pub fn build(self) -> RelativeAggregationDuration
Consumes the builder and constructs a RelativeAggregationDuration.
Trait Implementations§
source§impl Clone for RelativeAggregationDurationBuilder
impl Clone for RelativeAggregationDurationBuilder
source§fn clone(&self) -> RelativeAggregationDurationBuilder
fn clone(&self) -> RelativeAggregationDurationBuilder
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 Default for RelativeAggregationDurationBuilder
impl Default for RelativeAggregationDurationBuilder
source§fn default() -> RelativeAggregationDurationBuilder
fn default() -> RelativeAggregationDurationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<RelativeAggregationDurationBuilder> for RelativeAggregationDurationBuilder
impl PartialEq<RelativeAggregationDurationBuilder> for RelativeAggregationDurationBuilder
source§fn eq(&self, other: &RelativeAggregationDurationBuilder) -> bool
fn eq(&self, other: &RelativeAggregationDurationBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for RelativeAggregationDurationBuilder
Auto Trait Implementations§
impl RefUnwindSafe for RelativeAggregationDurationBuilder
impl Send for RelativeAggregationDurationBuilder
impl Sync for RelativeAggregationDurationBuilder
impl Unpin for RelativeAggregationDurationBuilder
impl UnwindSafe for RelativeAggregationDurationBuilder
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