aws-sdk-appmonetization 1.0.0

AWS SDK for AWS App Monetization
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetOneTimePrice`](crate::operation::get_one_time_price::builders::GetOneTimePriceFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`app_id(impl Into<String>)`](crate::operation::get_one_time_price::builders::GetOneTimePriceFluentBuilder::app_id) / [`set_app_id(Option<String>)`](crate::operation::get_one_time_price::builders::GetOneTimePriceFluentBuilder::set_app_id):<br>required: **true**<br>The ID of the app the one-time price belongs to.<br>
    ///   - [`one_time_price_id(impl Into<String>)`](crate::operation::get_one_time_price::builders::GetOneTimePriceFluentBuilder::one_time_price_id) / [`set_one_time_price_id(Option<String>)`](crate::operation::get_one_time_price::builders::GetOneTimePriceFluentBuilder::set_one_time_price_id):<br>required: **true**<br>The ID of the one-time price to return.<br>
    ///   - [`scope(RequestScope)`](crate::operation::get_one_time_price::builders::GetOneTimePriceFluentBuilder::scope) / [`set_scope(Option<RequestScope>)`](crate::operation::get_one_time_price::builders::GetOneTimePriceFluentBuilder::set_scope):<br>required: **true**<br>Required. The environment: live or sandbox. live reads the published offering; sandbox reads the app's draft (what the sandbox runs).<br>
    /// - On success, responds with [`GetOneTimePriceOutput`](crate::operation::get_one_time_price::GetOneTimePriceOutput) with field(s):
    ///   - [`one_time_price(Option<OneTimePrice>)`](crate::operation::get_one_time_price::GetOneTimePriceOutput::one_time_price): The requested one-time price.
    /// - On failure, responds with [`SdkError<GetOneTimePriceError>`](crate::operation::get_one_time_price::GetOneTimePriceError)
    pub fn get_one_time_price(&self) -> crate::operation::get_one_time_price::builders::GetOneTimePriceFluentBuilder {
        crate::operation::get_one_time_price::builders::GetOneTimePriceFluentBuilder::new(self.handle.clone())
    }
}