#[non_exhaustive]pub struct AnalyticsBinBySpecificationBuilder { /* private fields */ }Expand description
A builder for AnalyticsBinBySpecification.
Implementations§
source§impl AnalyticsBinBySpecificationBuilder
impl AnalyticsBinBySpecificationBuilder
sourcepub fn name(self, input: AnalyticsBinByName) -> Self
pub fn name(self, input: AnalyticsBinByName) -> Self
Specifies the time metric by which to bin the analytics data.
This field is required.sourcepub fn set_name(self, input: Option<AnalyticsBinByName>) -> Self
pub fn set_name(self, input: Option<AnalyticsBinByName>) -> Self
Specifies the time metric by which to bin the analytics data.
sourcepub fn get_name(&self) -> &Option<AnalyticsBinByName>
pub fn get_name(&self) -> &Option<AnalyticsBinByName>
Specifies the time metric by which to bin the analytics data.
sourcepub fn interval(self, input: AnalyticsInterval) -> Self
pub fn interval(self, input: AnalyticsInterval) -> Self
Specifies the interval of time by which to bin the analytics data.
This field is required.sourcepub fn set_interval(self, input: Option<AnalyticsInterval>) -> Self
pub fn set_interval(self, input: Option<AnalyticsInterval>) -> Self
Specifies the interval of time by which to bin the analytics data.
sourcepub fn get_interval(&self) -> &Option<AnalyticsInterval>
pub fn get_interval(&self) -> &Option<AnalyticsInterval>
Specifies the interval of time by which to bin the analytics data.
sourcepub fn order(self, input: AnalyticsSortOrder) -> Self
pub fn order(self, input: AnalyticsSortOrder) -> Self
Specifies whether to bin the analytics data in ascending or descending order. If this field is left blank, the default order is by the key of the bin in descending order.
sourcepub fn set_order(self, input: Option<AnalyticsSortOrder>) -> Self
pub fn set_order(self, input: Option<AnalyticsSortOrder>) -> Self
Specifies whether to bin the analytics data in ascending or descending order. If this field is left blank, the default order is by the key of the bin in descending order.
sourcepub fn get_order(&self) -> &Option<AnalyticsSortOrder>
pub fn get_order(&self) -> &Option<AnalyticsSortOrder>
Specifies whether to bin the analytics data in ascending or descending order. If this field is left blank, the default order is by the key of the bin in descending order.
sourcepub fn build(self) -> Result<AnalyticsBinBySpecification, BuildError>
pub fn build(self) -> Result<AnalyticsBinBySpecification, BuildError>
Consumes the builder and constructs a AnalyticsBinBySpecification.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AnalyticsBinBySpecificationBuilder
impl Clone for AnalyticsBinBySpecificationBuilder
source§fn clone(&self) -> AnalyticsBinBySpecificationBuilder
fn clone(&self) -> AnalyticsBinBySpecificationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AnalyticsBinBySpecificationBuilder
impl Default for AnalyticsBinBySpecificationBuilder
source§fn default() -> AnalyticsBinBySpecificationBuilder
fn default() -> AnalyticsBinBySpecificationBuilder
source§impl PartialEq for AnalyticsBinBySpecificationBuilder
impl PartialEq for AnalyticsBinBySpecificationBuilder
source§fn eq(&self, other: &AnalyticsBinBySpecificationBuilder) -> bool
fn eq(&self, other: &AnalyticsBinBySpecificationBuilder) -> bool
self and other values to be equal, and is used
by ==.