#[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 ==.