aws-sdk-appmonetization 1.0.0

AWS SDK for AWS App Monetization
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetAppUsageSummary`](crate::operation::get_app_usage_summary::builders::GetAppUsageSummaryFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`app_id(impl Into<String>)`](crate::operation::get_app_usage_summary::builders::GetAppUsageSummaryFluentBuilder::app_id) / [`set_app_id(Option<String>)`](crate::operation::get_app_usage_summary::builders::GetAppUsageSummaryFluentBuilder::set_app_id):<br>required: **true**<br>The ID of the app.<br>
    ///   - [`started_at(DateTime)`](crate::operation::get_app_usage_summary::builders::GetAppUsageSummaryFluentBuilder::started_at) / [`set_started_at(Option<DateTime>)`](crate::operation::get_app_usage_summary::builders::GetAppUsageSummaryFluentBuilder::set_started_at):<br>required: **true**<br>Start of the reporting window.<br>
    ///   - [`ended_at(DateTime)`](crate::operation::get_app_usage_summary::builders::GetAppUsageSummaryFluentBuilder::ended_at) / [`set_ended_at(Option<DateTime>)`](crate::operation::get_app_usage_summary::builders::GetAppUsageSummaryFluentBuilder::set_ended_at):<br>required: **true**<br>End of the reporting window. Must be after startedAt, at most 720 hours after it, and not in the future.<br>
    ///   - [`group_by(UsageSummaryDimension)`](crate::operation::get_app_usage_summary::builders::GetAppUsageSummaryFluentBuilder::group_by) / [`set_group_by(Option<UsageSummaryDimension>)`](crate::operation::get_app_usage_summary::builders::GetAppUsageSummaryFluentBuilder::set_group_by):<br>required: **false**<br>The breakdown dimension. Defaults to METRIC when omitted.<br>
    ///   - [`filter_by(UsageSummaryDimension, Vec::<String>)`](crate::operation::get_app_usage_summary::builders::GetAppUsageSummaryFluentBuilder::filter_by) / [`set_filter_by(Option<HashMap::<UsageSummaryDimension, Vec::<String>>>)`](crate::operation::get_app_usage_summary::builders::GetAppUsageSummaryFluentBuilder::set_filter_by):<br>required: **false**<br>Filter constraints keyed by dimension. A filter dimension may differ from groupBy.<br>
    ///   - [`scope(RequestScope)`](crate::operation::get_app_usage_summary::builders::GetAppUsageSummaryFluentBuilder::scope) / [`set_scope(Option<RequestScope>)`](crate::operation::get_app_usage_summary::builders::GetAppUsageSummaryFluentBuilder::set_scope):<br>required: **true**<br>Required. The environment: live or sandbox.<br>
    /// - On success, responds with [`GetAppUsageSummaryOutput`](crate::operation::get_app_usage_summary::GetAppUsageSummaryOutput) with field(s):
    ///   - [`app_id(String)`](crate::operation::get_app_usage_summary::GetAppUsageSummaryOutput::app_id): The ID of the app.
    ///   - [`group_by(UsageSummaryDimension)`](crate::operation::get_app_usage_summary::GetAppUsageSummaryOutput::group_by): The dimension that the summary is grouped by.
    ///   - [`total_events(i64)`](crate::operation::get_app_usage_summary::GetAppUsageSummaryOutput::total_events): The total number of usage events counted across the window.
    ///   - [`groups(Vec::<UsageGroup>)`](crate::operation::get_app_usage_summary::GetAppUsageSummaryOutput::groups): One row per value of the groupBy dimension (usage per metric, user, or UTC day).
    ///   - [`started_at(DateTime)`](crate::operation::get_app_usage_summary::GetAppUsageSummaryOutput::started_at): Start of the reporting window the summary covers.
    ///   - [`ended_at(DateTime)`](crate::operation::get_app_usage_summary::GetAppUsageSummaryOutput::ended_at): End of the reporting window the summary covers.
    ///   - [`updated_at(DateTime)`](crate::operation::get_app_usage_summary::GetAppUsageSummaryOutput::updated_at): The time the summary was last updated.
    /// - On failure, responds with [`SdkError<GetAppUsageSummaryError>`](crate::operation::get_app_usage_summary::GetAppUsageSummaryError)
    pub fn get_app_usage_summary(&self) -> crate::operation::get_app_usage_summary::builders::GetAppUsageSummaryFluentBuilder {
        crate::operation::get_app_usage_summary::builders::GetAppUsageSummaryFluentBuilder::new(self.handle.clone())
    }
}