1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListRoutes`](crate::operation::list_routes::builders::ListRoutesFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_routes::builders::ListRoutesFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`mesh_name(impl Into<String>)`](crate::operation::list_routes::builders::ListRoutesFluentBuilder::mesh_name) / [`set_mesh_name(Option<String>)`](crate::operation::list_routes::builders::ListRoutesFluentBuilder::set_mesh_name):<br>required: **true**<br><p>The name of the service mesh to list routes in.</p><br>
    ///   - [`virtual_router_name(impl Into<String>)`](crate::operation::list_routes::builders::ListRoutesFluentBuilder::virtual_router_name) / [`set_virtual_router_name(Option<String>)`](crate::operation::list_routes::builders::ListRoutesFluentBuilder::set_virtual_router_name):<br>required: **true**<br><p>The name of the virtual router to list routes in.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_routes::builders::ListRoutesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_routes::builders::ListRoutesFluentBuilder::set_next_token):<br>required: **false**<br><p>The <code>nextToken</code> value returned from a previous paginated <code>ListRoutes</code> request where <code>limit</code> was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the <code>nextToken</code> value.</p><br>
    ///   - [`limit(i32)`](crate::operation::list_routes::builders::ListRoutesFluentBuilder::limit) / [`set_limit(Option<i32>)`](crate::operation::list_routes::builders::ListRoutesFluentBuilder::set_limit):<br>required: **false**<br><p>The maximum number of results returned by <code>ListRoutes</code> in paginated output. When you use this parameter, <code>ListRoutes</code> returns only <code>limit</code> results in a single page along with a <code>nextToken</code> response element. You can see the remaining results of the initial request by sending another <code>ListRoutes</code> request with the returned <code>nextToken</code> value. This value can be between 1 and 100. If you don't use this parameter, <code>ListRoutes</code> returns up to 100 results and a <code>nextToken</code> value if applicable.</p><br>
    ///   - [`mesh_owner(impl Into<String>)`](crate::operation::list_routes::builders::ListRoutesFluentBuilder::mesh_owner) / [`set_mesh_owner(Option<String>)`](crate::operation::list_routes::builders::ListRoutesFluentBuilder::set_mesh_owner):<br>required: **false**<br><p>The Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see <a href="https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html">Working with shared meshes</a>.</p><br>
    /// - On success, responds with [`ListRoutesOutput`](crate::operation::list_routes::ListRoutesOutput) with field(s):
    ///   - [`routes(Vec::<RouteRef>)`](crate::operation::list_routes::ListRoutesOutput::routes): <p>The list of existing routes for the specified service mesh and virtual router.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_routes::ListRoutesOutput::next_token): <p>The <code>nextToken</code> value to include in a future <code>ListRoutes</code> request. When the results of a <code>ListRoutes</code> request exceed <code>limit</code>, you can use this value to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>
    /// - On failure, responds with [`SdkError<ListRoutesError>`](crate::operation::list_routes::ListRoutesError)
    pub fn list_routes(&self) -> crate::operation::list_routes::builders::ListRoutesFluentBuilder {
        crate::operation::list_routes::builders::ListRoutesFluentBuilder::new(self.handle.clone())
    }
}