Skip to main content

aws_sdk_appmonetization/client/
delete_one_time_price.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 [`DeleteOneTimePrice`](crate::operation::delete_one_time_price::builders::DeleteOneTimePriceFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`app_id(impl Into<String>)`](crate::operation::delete_one_time_price::builders::DeleteOneTimePriceFluentBuilder::app_id) / [`set_app_id(Option<String>)`](crate::operation::delete_one_time_price::builders::DeleteOneTimePriceFluentBuilder::set_app_id):<br>required: **true**<br>The ID of the app the one-time price belongs to.<br>
7    ///   - [`one_time_price_id(impl Into<String>)`](crate::operation::delete_one_time_price::builders::DeleteOneTimePriceFluentBuilder::one_time_price_id) / [`set_one_time_price_id(Option<String>)`](crate::operation::delete_one_time_price::builders::DeleteOneTimePriceFluentBuilder::set_one_time_price_id):<br>required: **true**<br>The ID of the one-time price to delete.<br>
8    ///   - [`client_token(impl Into<String>)`](crate::operation::delete_one_time_price::builders::DeleteOneTimePriceFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::delete_one_time_price::builders::DeleteOneTimePriceFluentBuilder::set_client_token):<br>required: **false**<br>A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the service ignores the request but does not return an error.<br>
9    /// - On success, responds with [`DeleteOneTimePriceOutput`](crate::operation::delete_one_time_price::DeleteOneTimePriceOutput)
10    /// - On failure, responds with [`SdkError<DeleteOneTimePriceError>`](crate::operation::delete_one_time_price::DeleteOneTimePriceError)
11    pub fn delete_one_time_price(&self) -> crate::operation::delete_one_time_price::builders::DeleteOneTimePriceFluentBuilder {
12        crate::operation::delete_one_time_price::builders::DeleteOneTimePriceFluentBuilder::new(self.handle.clone())
13    }
14}