Skip to main content

aws_sdk_appmonetization/client/
update_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 [`UpdatePlan`](crate::operation::update_plan::builders::UpdatePlanFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`app_id(impl Into<String>)`](crate::operation::update_plan::builders::UpdatePlanFluentBuilder::app_id) / [`set_app_id(Option<String>)`](crate::operation::update_plan::builders::UpdatePlanFluentBuilder::set_app_id):<br>required: **true**<br>The ID of the app.<br>
7    ///   - [`plan_id(impl Into<String>)`](crate::operation::update_plan::builders::UpdatePlanFluentBuilder::plan_id) / [`set_plan_id(Option<String>)`](crate::operation::update_plan::builders::UpdatePlanFluentBuilder::set_plan_id):<br>required: **true**<br>The identifier of the plan. AWS App Monetization generates this value when you create the plan. It is unique within the app and is never reused. Treat it as opaque.<br>
8    ///   - [`definition(PlanDefinition)`](crate::operation::update_plan::builders::UpdatePlanFluentBuilder::definition) / [`set_definition(Option<PlanDefinition>)`](crate::operation::update_plan::builders::UpdatePlanFluentBuilder::set_definition):<br>required: **true**<br>The plan's updated pricing and packaging definition.<br>
9    /// - On success, responds with [`UpdatePlanOutput`](crate::operation::update_plan::UpdatePlanOutput) with field(s):
10    ///   - [`plan(Option<Plan>)`](crate::operation::update_plan::UpdatePlanOutput::plan): The updated plan.
11    /// - On failure, responds with [`SdkError<UpdatePlanError>`](crate::operation::update_plan::UpdatePlanError)
12    pub fn update_plan(&self) -> crate::operation::update_plan::builders::UpdatePlanFluentBuilder {
13        crate::operation::update_plan::builders::UpdatePlanFluentBuilder::new(self.handle.clone())
14    }
15}