Skip to main content

aws_sdk_appmonetization/client/
list_one_time_prices.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`ListOneTimePrices`](crate::operation::list_one_time_prices::builders::ListOneTimePricesFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_one_time_prices::builders::ListOneTimePricesFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`app_id(impl Into<String>)`](crate::operation::list_one_time_prices::builders::ListOneTimePricesFluentBuilder::app_id) / [`set_app_id(Option<String>)`](crate::operation::list_one_time_prices::builders::ListOneTimePricesFluentBuilder::set_app_id):<br>required: **true**<br>The ID of the app whose one-time prices are listed.<br>
8    ///   - [`stage(PlanStage)`](crate::operation::list_one_time_prices::builders::ListOneTimePricesFluentBuilder::stage) / [`set_stage(Option<PlanStage>)`](crate::operation::list_one_time_prices::builders::ListOneTimePricesFluentBuilder::set_stage):<br>required: **false**<br>The offering stage to list one-time prices from: DRAFT (the latest authored draft) or PUBLISHED (the published offering customers see). Absent: PUBLISHED when scope=live, DRAFT when scope=sandbox.<br>
9    ///   - [`max_results(i32)`](crate::operation::list_one_time_prices::builders::ListOneTimePricesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_one_time_prices::builders::ListOneTimePricesFluentBuilder::set_max_results):<br>required: **false**<br>The maximum number of one-time prices to return in a single call. To retrieve the remaining results, make another call with the nextToken value that is returned in the response.<br>
10    ///   - [`next_token(impl Into<String>)`](crate::operation::list_one_time_prices::builders::ListOneTimePricesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_one_time_prices::builders::ListOneTimePricesFluentBuilder::set_next_token):<br>required: **false**<br>The pagination token that is returned by a previous call. Use it to retrieve the next page of results. Omit this parameter on the first call.<br>
11    ///   - [`scope(RequestScope)`](crate::operation::list_one_time_prices::builders::ListOneTimePricesFluentBuilder::scope) / [`set_scope(Option<RequestScope>)`](crate::operation::list_one_time_prices::builders::ListOneTimePricesFluentBuilder::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>
12    /// - On success, responds with [`ListOneTimePricesOutput`](crate::operation::list_one_time_prices::ListOneTimePricesOutput) with field(s):
13    ///   - [`one_time_prices(Vec::<OneTimePrice>)`](crate::operation::list_one_time_prices::ListOneTimePricesOutput::one_time_prices): The one-time prices for the app.
14    ///   - [`next_token(Option<String>)`](crate::operation::list_one_time_prices::ListOneTimePricesOutput::next_token): The pagination token to use in a subsequent call to retrieve the next page of results. This value is absent when there are no more results to return.
15    /// - On failure, responds with [`SdkError<ListOneTimePricesError>`](crate::operation::list_one_time_prices::ListOneTimePricesError)
16    pub fn list_one_time_prices(&self) -> crate::operation::list_one_time_prices::builders::ListOneTimePricesFluentBuilder {
17        crate::operation::list_one_time_prices::builders::ListOneTimePricesFluentBuilder::new(self.handle.clone())
18    }
19}