1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetUsagePlan`](crate::operation::get_usage_plan::builders::GetUsagePlanFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`usage_plan_id(impl Into<String>)`](crate::operation::get_usage_plan::builders::GetUsagePlanFluentBuilder::usage_plan_id) / [`set_usage_plan_id(Option<String>)`](crate::operation::get_usage_plan::builders::GetUsagePlanFluentBuilder::set_usage_plan_id):<br>required: **true**<br><p>The identifier of the UsagePlan resource to be retrieved.</p><br>
    /// - On success, responds with [`GetUsagePlanOutput`](crate::operation::get_usage_plan::GetUsagePlanOutput) with field(s):
    ///   - [`id(Option<String>)`](crate::operation::get_usage_plan::GetUsagePlanOutput::id): <p>The identifier of a UsagePlan resource.</p>
    ///   - [`name(Option<String>)`](crate::operation::get_usage_plan::GetUsagePlanOutput::name): <p>The name of a usage plan.</p>
    ///   - [`description(Option<String>)`](crate::operation::get_usage_plan::GetUsagePlanOutput::description): <p>The description of a usage plan.</p>
    ///   - [`api_stages(Option<Vec::<ApiStage>>)`](crate::operation::get_usage_plan::GetUsagePlanOutput::api_stages): <p>The associated API stages of a usage plan.</p>
    ///   - [`throttle(Option<ThrottleSettings>)`](crate::operation::get_usage_plan::GetUsagePlanOutput::throttle): <p>A map containing method level throttling information for API stage in a usage plan.</p>
    ///   - [`quota(Option<QuotaSettings>)`](crate::operation::get_usage_plan::GetUsagePlanOutput::quota): <p>The target maximum number of permitted requests per a given unit time interval.</p>
    ///   - [`product_code(Option<String>)`](crate::operation::get_usage_plan::GetUsagePlanOutput::product_code): <p>The Amazon Web Services Marketplace product identifier to associate with the usage plan as a SaaS product on the Amazon Web Services Marketplace.</p>
    ///   - [`tags(Option<HashMap::<String, String>>)`](crate::operation::get_usage_plan::GetUsagePlanOutput::tags): <p>The collection of tags. Each tag element is associated with a given resource.</p>
    /// - On failure, responds with [`SdkError<GetUsagePlanError>`](crate::operation::get_usage_plan::GetUsagePlanError)
    pub fn get_usage_plan(&self) -> crate::operation::get_usage_plan::builders::GetUsagePlanFluentBuilder {
        crate::operation::get_usage_plan::builders::GetUsagePlanFluentBuilder::new(self.handle.clone())
    }
}