// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`ListPlans`](crate::operation::list_plans::builders::ListPlansFluentBuilder) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::operation::list_plans::builders::ListPlansFluentBuilder::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`app_id(impl Into<String>)`](crate::operation::list_plans::builders::ListPlansFluentBuilder::app_id) / [`set_app_id(Option<String>)`](crate::operation::list_plans::builders::ListPlansFluentBuilder::set_app_id):<br>required: **true**<br>The ID of the app.<br>
/// - [`stage(PlanStage)`](crate::operation::list_plans::builders::ListPlansFluentBuilder::stage) / [`set_stage(Option<PlanStage>)`](crate::operation::list_plans::builders::ListPlansFluentBuilder::set_stage):<br>required: **false**<br>Which offering stage to list plans from: DRAFT (the latest authored draft) or PUBLISHED (the published offering customers see). Absent: PUBLISHED when scope=live, DRAFT when scope=sandbox. A stage with nothing published yet lists as empty.<br>
/// - [`max_results(i32)`](crate::operation::list_plans::builders::ListPlansFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_plans::builders::ListPlansFluentBuilder::set_max_results):<br>required: **false**<br>The maximum number of items to return in a single page. Valid range is 1 to 100.<br>
/// - [`next_token(impl Into<String>)`](crate::operation::list_plans::builders::ListPlansFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_plans::builders::ListPlansFluentBuilder::set_next_token):<br>required: **false**<br>An opaque pagination token. Pass the value returned in a response back on the next request to retrieve the following page; absent when there are no more results.<br>
/// - [`scope(RequestScope)`](crate::operation::list_plans::builders::ListPlansFluentBuilder::scope) / [`set_scope(Option<RequestScope>)`](crate::operation::list_plans::builders::ListPlansFluentBuilder::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 [`ListPlansOutput`](crate::operation::list_plans::ListPlansOutput) with field(s):
/// - [`plans(Vec::<Plan>)`](crate::operation::list_plans::ListPlansOutput::plans): The page of plans for the app; each carries the stage it was read from.
/// - [`next_token(Option<String>)`](crate::operation::list_plans::ListPlansOutput::next_token): An opaque pagination token. Pass the value returned in a response back on the next request to retrieve the following page; absent when there are no more results.
/// - On failure, responds with [`SdkError<ListPlansError>`](crate::operation::list_plans::ListPlansError)
pub fn list_plans(&self) -> crate::operation::list_plans::builders::ListPlansFluentBuilder {
crate::operation::list_plans::builders::ListPlansFluentBuilder::new(self.handle.clone())
}
}