Struct aws_sdk_macie2::operation::get_usage_statistics::builders::GetUsageStatisticsFluentBuilder
source · pub struct GetUsageStatisticsFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to GetUsageStatistics
.
Retrieves (queries) quotas and aggregated usage data for one or more accounts.
Implementations§
source§impl GetUsageStatisticsFluentBuilder
impl GetUsageStatisticsFluentBuilder
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<GetUsageStatistics, AwsResponseRetryClassifier>, SdkError<GetUsageStatisticsError>>
pub async fn customize( self ) -> Result<CustomizableOperation<GetUsageStatistics, AwsResponseRetryClassifier>, SdkError<GetUsageStatisticsError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<GetUsageStatisticsOutput, SdkError<GetUsageStatisticsError>>
pub async fn send( self ) -> Result<GetUsageStatisticsOutput, SdkError<GetUsageStatisticsError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn into_paginator(self) -> GetUsageStatisticsPaginator
pub fn into_paginator(self) -> GetUsageStatisticsPaginator
Create a paginator for this request
Paginators are used by calling send().await
which returns a Stream
.
sourcepub fn filter_by(self, input: UsageStatisticsFilter) -> Self
pub fn filter_by(self, input: UsageStatisticsFilter) -> Self
Appends an item to filterBy
.
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.
Trait Implementations§
source§impl Clone for GetUsageStatisticsFluentBuilder
impl Clone for GetUsageStatisticsFluentBuilder
source§fn clone(&self) -> GetUsageStatisticsFluentBuilder
fn clone(&self) -> GetUsageStatisticsFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more