#[non_exhaustive]pub struct GetUsageTotalsInputBuilder { /* private fields */ }Expand description
A builder for GetUsageTotalsInput.
Implementations§
source§impl GetUsageTotalsInputBuilder
impl GetUsageTotalsInputBuilder
sourcepub fn time_range(self, input: impl Into<String>) -> Self
pub fn time_range(self, input: impl Into<String>) -> Self
The inclusive time period to retrieve the data for. Valid values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days. If you don't specify a value for this parameter, Amazon Macie provides aggregated usage data for the preceding 30 days.
sourcepub fn set_time_range(self, input: Option<String>) -> Self
pub fn set_time_range(self, input: Option<String>) -> Self
The inclusive time period to retrieve the data for. Valid values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days. If you don't specify a value for this parameter, Amazon Macie provides aggregated usage data for the preceding 30 days.
sourcepub fn get_time_range(&self) -> &Option<String>
pub fn get_time_range(&self) -> &Option<String>
The inclusive time period to retrieve the data for. Valid values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days. If you don't specify a value for this parameter, Amazon Macie provides aggregated usage data for the preceding 30 days.
sourcepub fn build(self) -> Result<GetUsageTotalsInput, BuildError>
pub fn build(self) -> Result<GetUsageTotalsInput, BuildError>
Consumes the builder and constructs a GetUsageTotalsInput.
source§impl GetUsageTotalsInputBuilder
impl GetUsageTotalsInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<GetUsageTotalsOutput, SdkError<GetUsageTotalsError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<GetUsageTotalsOutput, SdkError<GetUsageTotalsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for GetUsageTotalsInputBuilder
impl Clone for GetUsageTotalsInputBuilder
source§fn clone(&self) -> GetUsageTotalsInputBuilder
fn clone(&self) -> GetUsageTotalsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GetUsageTotalsInputBuilder
impl Debug for GetUsageTotalsInputBuilder
source§impl Default for GetUsageTotalsInputBuilder
impl Default for GetUsageTotalsInputBuilder
source§fn default() -> GetUsageTotalsInputBuilder
fn default() -> GetUsageTotalsInputBuilder
source§impl PartialEq for GetUsageTotalsInputBuilder
impl PartialEq for GetUsageTotalsInputBuilder
source§fn eq(&self, other: &GetUsageTotalsInputBuilder) -> bool
fn eq(&self, other: &GetUsageTotalsInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for GetUsageTotalsInputBuilder
Auto Trait Implementations§
impl Freeze for GetUsageTotalsInputBuilder
impl RefUnwindSafe for GetUsageTotalsInputBuilder
impl Send for GetUsageTotalsInputBuilder
impl Sync for GetUsageTotalsInputBuilder
impl Unpin for GetUsageTotalsInputBuilder
impl UnwindSafe for GetUsageTotalsInputBuilder
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