// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`GetPlan`](crate::operation::get_plan::builders::GetPlanFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`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>
/// - [`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>
/// - [`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>
/// - [`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>
/// - On success, responds with [`GetPlanOutput`](crate::operation::get_plan::GetPlanOutput) with field(s):
/// - [`plan(Option<Plan>)`](crate::operation::get_plan::GetPlanOutput::plan): The requested plan.
/// - On failure, responds with [`SdkError<GetPlanError>`](crate::operation::get_plan::GetPlanError)
pub fn get_plan(&self) -> crate::operation::get_plan::builders::GetPlanFluentBuilder {
crate::operation::get_plan::builders::GetPlanFluentBuilder::new(self.handle.clone())
}
}