Skip to main content

aws_sdk_appmonetization/client/
get_third_party_cost.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 [`GetThirdPartyCost`](crate::operation::get_third_party_cost::builders::GetThirdPartyCostFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`app_id(impl Into<String>)`](crate::operation::get_third_party_cost::builders::GetThirdPartyCostFluentBuilder::app_id) / [`set_app_id(Option<String>)`](crate::operation::get_third_party_cost::builders::GetThirdPartyCostFluentBuilder::set_app_id):<br>required: **true**<br>The ID of the app.<br>
7    ///   - [`cost_id(impl Into<String>)`](crate::operation::get_third_party_cost::builders::GetThirdPartyCostFluentBuilder::cost_id) / [`set_cost_id(Option<String>)`](crate::operation::get_third_party_cost::builders::GetThirdPartyCostFluentBuilder::set_cost_id):<br>required: **true**<br>The ID of the cost to return.<br>
8    /// - On success, responds with [`GetThirdPartyCostOutput`](crate::operation::get_third_party_cost::GetThirdPartyCostOutput) with field(s):
9    ///   - [`item(Option<ThirdPartyCostItem>)`](crate::operation::get_third_party_cost::GetThirdPartyCostOutput::item): The requested third-party cost.
10    /// - On failure, responds with [`SdkError<GetThirdPartyCostError>`](crate::operation::get_third_party_cost::GetThirdPartyCostError)
11    pub fn get_third_party_cost(&self) -> crate::operation::get_third_party_cost::builders::GetThirdPartyCostFluentBuilder {
12        crate::operation::get_third_party_cost::builders::GetThirdPartyCostFluentBuilder::new(self.handle.clone())
13    }
14}