aws_sdk_appmonetization/client/get_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 [`GetPlan`](crate::operation::get_plan::builders::GetPlanFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`app_id(impl Into<String>)`](crate::operation::get_plan::builders::GetPlanFluentBuilder::app_id) / [`set_app_id(Option<String>)`](crate::operation::get_plan::builders::GetPlanFluentBuilder::set_app_id):<br>required: **true**<br>The ID of the app.<br>
7 /// - [`plan_id(impl Into<String>)`](crate::operation::get_plan::builders::GetPlanFluentBuilder::plan_id) / [`set_plan_id(Option<String>)`](crate::operation::get_plan::builders::GetPlanFluentBuilder::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 /// - [`stage(PlanStage)`](crate::operation::get_plan::builders::GetPlanFluentBuilder::stage) / [`set_stage(Option<PlanStage>)`](crate::operation::get_plan::builders::GetPlanFluentBuilder::set_stage):<br>required: **false**<br>The offering stage to read the plan from: DRAFT (the latest draft) or PUBLISHED (the offering customers see). Absent: PUBLISHED when scope=live, DRAFT when scope=sandbox.<br>
9 /// - [`scope(RequestScope)`](crate::operation::get_plan::builders::GetPlanFluentBuilder::scope) / [`set_scope(Option<RequestScope>)`](crate::operation::get_plan::builders::GetPlanFluentBuilder::set_scope):<br>required: **true**<br>Required. The environment: live or sandbox. live reads the published offering by default; sandbox reads the app's draft (what the sandbox runs).<br>
10 /// - On success, responds with [`GetPlanOutput`](crate::operation::get_plan::GetPlanOutput) with field(s):
11 /// - [`plan(Option<Plan>)`](crate::operation::get_plan::GetPlanOutput::plan): The requested plan.
12 /// - On failure, responds with [`SdkError<GetPlanError>`](crate::operation::get_plan::GetPlanError)
13 pub fn get_plan(&self) -> crate::operation::get_plan::builders::GetPlanFluentBuilder {
14 crate::operation::get_plan::builders::GetPlanFluentBuilder::new(self.handle.clone())
15 }
16}