aws_sdk_arcregionswitch/client/
list_plans_in_region.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 [`ListPlansInRegion`](crate::operation::list_plans_in_region::builders::ListPlansInRegionFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_plans_in_region::builders::ListPlansInRegionFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`max_results(i32)`](crate::operation::list_plans_in_region::builders::ListPlansInRegionFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_plans_in_region::builders::ListPlansInRegionFluentBuilder::set_max_results):<br>required: **false**<br><p>The number of objects that you want to return with this call.</p><br>
8    ///   - [`next_token(impl Into<String>)`](crate::operation::list_plans_in_region::builders::ListPlansInRegionFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_plans_in_region::builders::ListPlansInRegionFluentBuilder::set_next_token):<br>required: **false**<br><p>Specifies that you want to receive the next page of results. Valid only if you received a <code>nextToken</code> response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's <code>nextToken</code> response to request the next page of results.</p><br>
9    /// - On success, responds with [`ListPlansInRegionOutput`](crate::operation::list_plans_in_region::ListPlansInRegionOutput) with field(s):
10    ///   - [`plans(Option<Vec::<AbbreviatedPlan>>)`](crate::operation::list_plans_in_region::ListPlansInRegionOutput::plans): <p>The plans that were requested.</p>
11    ///   - [`next_token(Option<String>)`](crate::operation::list_plans_in_region::ListPlansInRegionOutput::next_token): <p>Specifies that you want to receive the next page of results. Valid only if you received a <code>nextToken</code> response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's <code>nextToken</code> response to request the next page of results.</p>
12    /// - On failure, responds with [`SdkError<ListPlansInRegionError>`](crate::operation::list_plans_in_region::ListPlansInRegionError)
13    pub fn list_plans_in_region(&self) -> crate::operation::list_plans_in_region::builders::ListPlansInRegionFluentBuilder {
14        crate::operation::list_plans_in_region::builders::ListPlansInRegionFluentBuilder::new(self.handle.clone())
15    }
16}