#[non_exhaustive]pub struct GetUsageTotalsOutputBuilder { /* private fields */ }
Expand description
A builder for GetUsageTotalsOutput
.
Implementations§
source§impl GetUsageTotalsOutputBuilder
impl GetUsageTotalsOutputBuilder
sourcepub fn time_range(self, input: TimeRange) -> Self
pub fn time_range(self, input: TimeRange) -> Self
The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.
sourcepub fn set_time_range(self, input: Option<TimeRange>) -> Self
pub fn set_time_range(self, input: Option<TimeRange>) -> Self
The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.
sourcepub fn get_time_range(&self) -> &Option<TimeRange>
pub fn get_time_range(&self) -> &Option<TimeRange>
The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.
sourcepub fn usage_totals(self, input: UsageTotal) -> Self
pub fn usage_totals(self, input: UsageTotal) -> Self
Appends an item to usage_totals
.
To override the contents of this collection use set_usage_totals
.
An array of objects that contains the results of the query. Each object contains the data for a specific usage metric.
sourcepub fn set_usage_totals(self, input: Option<Vec<UsageTotal>>) -> Self
pub fn set_usage_totals(self, input: Option<Vec<UsageTotal>>) -> Self
An array of objects that contains the results of the query. Each object contains the data for a specific usage metric.
sourcepub fn get_usage_totals(&self) -> &Option<Vec<UsageTotal>>
pub fn get_usage_totals(&self) -> &Option<Vec<UsageTotal>>
An array of objects that contains the results of the query. Each object contains the data for a specific usage metric.
sourcepub fn build(self) -> GetUsageTotalsOutput
pub fn build(self) -> GetUsageTotalsOutput
Consumes the builder and constructs a GetUsageTotalsOutput
.
Trait Implementations§
source§impl Clone for GetUsageTotalsOutputBuilder
impl Clone for GetUsageTotalsOutputBuilder
source§fn clone(&self) -> GetUsageTotalsOutputBuilder
fn clone(&self) -> GetUsageTotalsOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetUsageTotalsOutputBuilder
impl Debug for GetUsageTotalsOutputBuilder
source§impl Default for GetUsageTotalsOutputBuilder
impl Default for GetUsageTotalsOutputBuilder
source§fn default() -> GetUsageTotalsOutputBuilder
fn default() -> GetUsageTotalsOutputBuilder
source§impl PartialEq for GetUsageTotalsOutputBuilder
impl PartialEq for GetUsageTotalsOutputBuilder
source§fn eq(&self, other: &GetUsageTotalsOutputBuilder) -> bool
fn eq(&self, other: &GetUsageTotalsOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.