#[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 get_time_dimension(&self) -> &Option<TimeDimension>
pub fn get_time_dimension(&self) -> &Option<TimeDimension>
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 get_time_value(&self) -> &Option<i32>
pub fn get_time_value(&self) -> &Option<i32>
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) -> Result<RelativeAggregationDuration, BuildError>
pub fn build(self) -> Result<RelativeAggregationDuration, BuildError>
Consumes the builder and constructs a RelativeAggregationDuration.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RelativeAggregationDurationBuilder
impl Clone for RelativeAggregationDurationBuilder
source§fn clone(&self) -> RelativeAggregationDurationBuilder
fn clone(&self) -> RelativeAggregationDurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for RelativeAggregationDurationBuilder
impl Default for RelativeAggregationDurationBuilder
source§fn default() -> RelativeAggregationDurationBuilder
fn default() -> RelativeAggregationDurationBuilder
source§impl PartialEq for RelativeAggregationDurationBuilder
impl PartialEq for RelativeAggregationDurationBuilder
source§fn eq(&self, other: &RelativeAggregationDurationBuilder) -> bool
fn eq(&self, other: &RelativeAggregationDurationBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RelativeAggregationDurationBuilder
Auto Trait Implementations§
impl Freeze for RelativeAggregationDurationBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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