#[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 ==.impl StructuralPartialEq for GetUsageTotalsOutputBuilder
Auto Trait Implementations§
impl Freeze for GetUsageTotalsOutputBuilder
impl RefUnwindSafe for GetUsageTotalsOutputBuilder
impl Send for GetUsageTotalsOutputBuilder
impl Sync for GetUsageTotalsOutputBuilder
impl Unpin for GetUsageTotalsOutputBuilder
impl UnwindSafe for GetUsageTotalsOutputBuilder
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> 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