Struct aws_sdk_macie2::input::get_usage_totals_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for GetUsageTotalsInput
.
Implementations§
source§impl Builder
impl Builder
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 build(self) -> Result<GetUsageTotalsInput, BuildError>
pub fn build(self) -> Result<GetUsageTotalsInput, BuildError>
Consumes the builder and constructs a GetUsageTotalsInput
.