aws_sdk_iottwinmaker/client/
get_pricing_plan.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 [`GetPricingPlan`](crate::operation::get_pricing_plan::builders::GetPricingPlanFluentBuilder) operation.
4    ///
5    /// - The fluent builder takes no input, just [`send`](crate::operation::get_pricing_plan::builders::GetPricingPlanFluentBuilder::send) it.
6    /// - On success, responds with [`GetPricingPlanOutput`](crate::operation::get_pricing_plan::GetPricingPlanOutput) with field(s):
7    ///   - [`current_pricing_plan(Option<PricingPlan>)`](crate::operation::get_pricing_plan::GetPricingPlanOutput::current_pricing_plan): <p>The chosen pricing plan for the current billing cycle.</p>
8    ///   - [`pending_pricing_plan(Option<PricingPlan>)`](crate::operation::get_pricing_plan::GetPricingPlanOutput::pending_pricing_plan): <p>The pending pricing plan.</p>
9    /// - On failure, responds with [`SdkError<GetPricingPlanError>`](crate::operation::get_pricing_plan::GetPricingPlanError)
10    pub fn get_pricing_plan(&self) -> crate::operation::get_pricing_plan::builders::GetPricingPlanFluentBuilder {
11        crate::operation::get_pricing_plan::builders::GetPricingPlanFluentBuilder::new(self.handle.clone())
12    }
13}