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 [`ListMetrics`](crate::operation::list_metrics::builders::ListMetricsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_metrics::builders::ListMetricsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`app_id(impl Into<String>)`](crate::operation::list_metrics::builders::ListMetricsFluentBuilder::app_id) / [`set_app_id(Option<String>)`](crate::operation::list_metrics::builders::ListMetricsFluentBuilder::set_app_id):<br>required: **true**<br>The ID of the app.<br>
    ///   - [`stage(PlanStage)`](crate::operation::list_metrics::builders::ListMetricsFluentBuilder::stage) / [`set_stage(Option<PlanStage>)`](crate::operation::list_metrics::builders::ListMetricsFluentBuilder::set_stage):<br>required: **false**<br>The offering stage to list metrics from: DRAFT (the latest authored draft) or PUBLISHED (the published offering customers see). Absent: PUBLISHED when scope=live, DRAFT when scope=sandbox. A stage with nothing published lists as empty.<br>
    ///   - [`max_results(i32)`](crate::operation::list_metrics::builders::ListMetricsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_metrics::builders::ListMetricsFluentBuilder::set_max_results):<br>required: **false**<br>The maximum number of items to return in a single page. Valid range is 1 to 100.<br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_metrics::builders::ListMetricsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_metrics::builders::ListMetricsFluentBuilder::set_next_token):<br>required: **false**<br>An opaque pagination token. Pass the value returned in a response back on the next request to retrieve the following page; absent when there are no more results.<br>
    ///   - [`scope(RequestScope)`](crate::operation::list_metrics::builders::ListMetricsFluentBuilder::scope) / [`set_scope(Option<RequestScope>)`](crate::operation::list_metrics::builders::ListMetricsFluentBuilder::set_scope):<br>required: **true**<br>Required. The environment: live or sandbox. live reads the published offering by default; sandbox reads the app's draft (what the sandbox runs).<br>
    /// - On success, responds with [`ListMetricsOutput`](crate::operation::list_metrics::ListMetricsOutput) with field(s):
    ///   - [`metrics(Vec::<Metric>)`](crate::operation::list_metrics::ListMetricsOutput::metrics): A list of metrics.
    ///   - [`next_token(Option<String>)`](crate::operation::list_metrics::ListMetricsOutput::next_token): An opaque pagination token. Pass the value returned in a response back on the next request to retrieve the following page; absent when there are no more results.
    /// - On failure, responds with [`SdkError<ListMetricsError>`](crate::operation::list_metrics::ListMetricsError)
    pub fn list_metrics(&self) -> crate::operation::list_metrics::builders::ListMetricsFluentBuilder {
        crate::operation::list_metrics::builders::ListMetricsFluentBuilder::new(self.handle.clone())
    }
}