Struct aws_sdk_macie2::input::get_usage_statistics_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for GetUsageStatisticsInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn filter_by(self, input: UsageStatisticsFilter) -> Self
pub fn filter_by(self, input: UsageStatisticsFilter) -> Self
Appends an item to filter_by
.
To override the contents of this collection use set_filter_by
.
An array of objects, one for each condition to use to filter the query results. If you specify more than one condition, Amazon Macie uses an AND operator to join the conditions.
sourcepub fn set_filter_by(self, input: Option<Vec<UsageStatisticsFilter>>) -> Self
pub fn set_filter_by(self, input: Option<Vec<UsageStatisticsFilter>>) -> Self
An array of objects, one for each condition to use to filter the query results. If you specify more than one condition, Amazon Macie uses an AND operator to join the conditions.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of items to include in each page of the response.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of items to include in each page of the response.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
The nextToken string that specifies which page of results to return in a paginated response.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
The nextToken string that specifies which page of results to return in a paginated response.
sourcepub fn sort_by(self, input: UsageStatisticsSortBy) -> Self
pub fn sort_by(self, input: UsageStatisticsSortBy) -> Self
The criteria to use to sort the query results.
sourcepub fn set_sort_by(self, input: Option<UsageStatisticsSortBy>) -> Self
pub fn set_sort_by(self, input: Option<UsageStatisticsSortBy>) -> Self
The criteria to use to sort the query results.
sourcepub fn time_range(self, input: TimeRange) -> Self
pub fn time_range(self, input: TimeRange) -> Self
The inclusive time period to query usage 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, Amazon Macie provides usage data 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 to query usage 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, Amazon Macie provides usage data for the preceding 30 days.
sourcepub fn build(self) -> Result<GetUsageStatisticsInput, BuildError>
pub fn build(self) -> Result<GetUsageStatisticsInput, BuildError>
Consumes the builder and constructs a GetUsageStatisticsInput
.