1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateUsagePlan`](crate::operation::update_usage_plan::builders::UpdateUsagePlanFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`usage_plan_id(impl Into<String>)`](crate::operation::update_usage_plan::builders::UpdateUsagePlanFluentBuilder::usage_plan_id) / [`set_usage_plan_id(Option<String>)`](crate::operation::update_usage_plan::builders::UpdateUsagePlanFluentBuilder::set_usage_plan_id):<br>required: **true**<br><p>The Id of the to-be-updated usage plan.</p><br>
    ///   - [`patch_operations(PatchOperation)`](crate::operation::update_usage_plan::builders::UpdateUsagePlanFluentBuilder::patch_operations) / [`set_patch_operations(Option<Vec::<PatchOperation>>)`](crate::operation::update_usage_plan::builders::UpdateUsagePlanFluentBuilder::set_patch_operations):<br>required: **false**<br><p>For more information about supported patch operations, see <a href="https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html">Patch Operations</a>.</p><br>
    /// - On success, responds with [`UpdateUsagePlanOutput`](crate::operation::update_usage_plan::UpdateUsagePlanOutput) with field(s):
    ///   - [`id(Option<String>)`](crate::operation::update_usage_plan::UpdateUsagePlanOutput::id): <p>The identifier of a UsagePlan resource.</p>
    ///   - [`name(Option<String>)`](crate::operation::update_usage_plan::UpdateUsagePlanOutput::name): <p>The name of a usage plan.</p>
    ///   - [`description(Option<String>)`](crate::operation::update_usage_plan::UpdateUsagePlanOutput::description): <p>The description of a usage plan.</p>
    ///   - [`api_stages(Option<Vec::<ApiStage>>)`](crate::operation::update_usage_plan::UpdateUsagePlanOutput::api_stages): <p>The associated API stages of a usage plan.</p>
    ///   - [`throttle(Option<ThrottleSettings>)`](crate::operation::update_usage_plan::UpdateUsagePlanOutput::throttle): <p>A map containing method level throttling information for API stage in a usage plan.</p>
    ///   - [`quota(Option<QuotaSettings>)`](crate::operation::update_usage_plan::UpdateUsagePlanOutput::quota): <p>The target maximum number of permitted requests per a given unit time interval.</p>
    ///   - [`product_code(Option<String>)`](crate::operation::update_usage_plan::UpdateUsagePlanOutput::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::update_usage_plan::UpdateUsagePlanOutput::tags): <p>The collection of tags. Each tag element is associated with a given resource.</p>
    /// - On failure, responds with [`SdkError<UpdateUsagePlanError>`](crate::operation::update_usage_plan::UpdateUsagePlanError)
    pub fn update_usage_plan(&self) -> crate::operation::update_usage_plan::builders::UpdateUsagePlanFluentBuilder {
        crate::operation::update_usage_plan::builders::UpdateUsagePlanFluentBuilder::new(self.handle.clone())
    }
}