// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`GetUsageTotals`](crate::operation::get_usage_totals::builders::GetUsageTotalsFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`time_range(impl ::std::convert::Into<String>)`](crate::operation::get_usage_totals::builders::GetUsageTotalsFluentBuilder::time_range) / [`set_time_range(Option<String>)`](crate::operation::get_usage_totals::builders::GetUsageTotalsFluentBuilder::set_time_range): <p>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.</p>
/// - On success, responds with [`GetUsageTotalsOutput`](crate::operation::get_usage_totals::GetUsageTotalsOutput) with field(s):
/// - [`time_range(Option<TimeRange>)`](crate::operation::get_usage_totals::GetUsageTotalsOutput::time_range): <p>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.</p>
/// - [`usage_totals(Option<Vec<UsageTotal>>)`](crate::operation::get_usage_totals::GetUsageTotalsOutput::usage_totals): <p>An array of objects that contains the results of the query. Each object contains the data for a specific usage metric.</p>
/// - On failure, responds with [`SdkError<GetUsageTotalsError>`](crate::operation::get_usage_totals::GetUsageTotalsError)
pub fn get_usage_totals(&self) -> crate::operation::get_usage_totals::builders::GetUsageTotalsFluentBuilder {
crate::operation::get_usage_totals::builders::GetUsageTotalsFluentBuilder::new(self.handle.clone())
}
}